Lines 52-59
Link Here
|
52 |
# |
52 |
# |
53 |
# Note: unless you know your package works with wxbase (which is very |
53 |
# Note: unless you know your package works with wxbase (which is very |
54 |
# doubtful), always depend on wxGTK[X]. |
54 |
# doubtful), always depend on wxGTK[X]. |
|
|
55 |
# |
56 |
# Debugging: In wxGTK 3.0 and later debugging support is enabled in the |
57 |
# library by default and needs to be controlled at the package level. |
58 |
# Use the -DNDEBUG preprocessor flag to disable debugging features. |
59 |
# (Using need-wxwidgets will do this for you, see below.) |
55 |
|
60 |
|
56 |
inherit eutils multilib |
61 |
inherit eutils flag-o-matic multilib |
57 |
|
62 |
|
58 |
# We do this in global scope so ebuilds can get sane defaults just by |
63 |
# We do this in global scope so ebuilds can get sane defaults just by |
59 |
# inheriting. |
64 |
# inheriting. |
Lines 80-89
fi
Link Here
|
80 |
# @USAGE: <profile> |
85 |
# @USAGE: <profile> |
81 |
# @DESCRIPTION: |
86 |
# @DESCRIPTION: |
82 |
# |
87 |
# |
83 |
# Available configurations are: |
88 |
# Available profiles are: |
84 |
# |
89 |
# |
85 |
# unicode (USE="X") |
90 |
# unicode (USE="X") |
86 |
# base-unicode (USE="-X") |
91 |
# base-unicode (USE="-X") |
|
|
92 |
# |
93 |
# This lets you choose which config file from /usr/lib/wx/config is used when |
94 |
# building the package. It also exports ${WX_CONFIG} with the full path to |
95 |
# that config. |
96 |
# |
97 |
# If your ebuild does not have a debug USE flag, or it has one and it is |
98 |
# disabled, -DNDEBUG will be automatically added to CPPFLAGS. This can be |
99 |
# overridden by setting WX_DISABLE_DEBUG if you want to handle it yourself. |
87 |
|
100 |
|
88 |
need-wxwidgets() { |
101 |
need-wxwidgets() { |
89 |
local wxtoolkit wxdebug wxconf |
102 |
local wxtoolkit wxdebug wxconf |
Lines 124-129
need-wxwidgets() {
Link Here
|
124 |
else |
137 |
else |
125 |
wxdebug="release-" |
138 |
wxdebug="release-" |
126 |
fi |
139 |
fi |
|
|
140 |
else |
141 |
if [[ -z ${WX_DISABLE_DEBUG} ]]; then |
142 |
use_if_iuse debug || append-cppflags -DNDEBUG |
143 |
fi |
127 |
fi |
144 |
fi |
128 |
|
145 |
|
129 |
wxconf="${wxtoolkit}-unicode-${wxdebug}${WX_GTK_VER}" |
146 |
wxconf="${wxtoolkit}-unicode-${wxdebug}${WX_GTK_VER}" |