Lines 11-35
Link Here
|
11 |
LICENSE="wxWinLL-3" |
11 |
LICENSE="wxWinLL-3" |
12 |
SLOT="2.5" |
12 |
SLOT="2.5" |
13 |
KEYWORDS="~x86" |
13 |
KEYWORDS="~x86" |
14 |
IUSE="debug no_wxgtk1 gtk2 odbc opengl unicode" |
14 |
IUSE="debug no_wxgtk1 gtk gtk2 odbc opengl unicode X png jpeg tiff |
|
|
15 |
xpm dmalloc sdl zlib wine motif joystick" |
15 |
|
16 |
|
16 |
RDEPEND="virtual/x11 |
17 |
RDEPEND="X? ( virtual/x11 ) |
17 |
sys-libs/zlib |
18 |
sys-libs/zlib |
18 |
media-libs/libpng |
19 |
png? ( media-libs/libpng ) |
19 |
media-libs/jpeg |
20 |
jpeg? ( media-libs/jpeg ) |
20 |
media-libs/tiff |
21 |
tiff? ( media-libs/tiff ) |
|
|
22 |
xpm? ( virtual/x11 ) |
21 |
!unicode? ( odbc? ( dev-db/unixODBC ) ) |
23 |
!unicode? ( odbc? ( dev-db/unixODBC ) ) |
22 |
opengl? ( virtual/opengl ) |
24 |
opengl? ( virtual/opengl ) |
23 |
gtk2? ( >=x11-libs/gtk+-2.0 >=dev-libs/glib-2.0 ) |
25 |
gtk? ( |
24 |
!no_wxgtk1? ( =x11-libs/gtk+-1.2* =dev-libs/glib-1.2* )" |
26 |
gtk2? ( >=x11-libs/gtk+-2.0 |
|
|
27 |
>=dev-libs/glib-2.0 ) |
28 |
!no_wxgtk1? ( =x11-libs/gtk+-1.2* |
29 |
=dev-libs/glib-1.2* ) |
30 |
) |
31 |
dmalloc? ( dev-libs/dmalloc ) |
32 |
sdl? ( media-libs/libsdl ) |
33 |
zlib? ( sys-libs/zlib ) |
34 |
wine? ( app-emulation/wine ) |
35 |
motif? ( virtual/motif )" |
36 |
|
25 |
DEPEND="${RDEPEND} |
37 |
DEPEND="${RDEPEND} |
26 |
gtk2? ( dev-util/pkgconfig ) |
38 |
gtk? ( gtk2? ( dev-util/pkgconfig ) ) |
27 |
sys-apps/sed" |
39 |
sys-apps/sed" |
28 |
|
40 |
|
29 |
# Note 1: Gettext is not runtime dependency even if nls? because wxWidgets |
41 |
# Note 1: Gettext is not runtime dependency even if nls? because wxWidgets |
30 |
# has its own implementation of it |
42 |
# has its own implementation of it |
31 |
# Note 2: PCX support is enabled if the correct libraries are detected. |
43 |
# Note 2: PCX support is enabled if the correct libraries are detected. |
32 |
# There is no USE flag for this. |
44 |
# There is no USE flag for this. |
|
|
45 |
# Note 3: This ebuild will install many variants of wxWindows libraries: |
46 |
# base version (no gui), base version with unicode, gtk version |
47 |
# gtk2 version, gtk2 version with unicode |
33 |
|
48 |
|
34 |
pkg_setup() { |
49 |
pkg_setup() { |
35 |
einfo "New in >=wxGTK-2.4.2-r2:" |
50 |
einfo "New in >=wxGTK-2.4.2-r2:" |
Lines 42-49
Link Here
|
42 |
einfo "NOTE:" |
57 |
einfo "NOTE:" |
43 |
einfo "You can also get debug versions of any of those, but not debug" |
58 |
einfo "You can also get debug versions of any of those, but not debug" |
44 |
einfo "and normal installed at the same time." |
59 |
einfo "and normal installed at the same time." |
45 |
if use unicode; then |
60 |
if use unicode; then |
46 |
! use gtk2 && die "You must put gtk2 in your USE if you need unicode support" |
61 |
! use gtk2 && einfo "Unicode support will be built only for base library" |
47 |
fi |
62 |
fi |
48 |
if use no_wxgtk1 && ! use gtk2; then |
63 |
if use no_wxgtk1 && ! use gtk2; then |
49 |
die "You must have at least gtk2 or -no_wxgtk1 in your USE" |
64 |
die "You must have at least gtk2 or -no_wxgtk1 in your USE" |
Lines 57-117
Link Here
|
57 |
export LANG='C' |
72 |
export LANG='C' |
58 |
sed -i "s/-O2//g" configure || die "sed configure failed" |
73 |
sed -i "s/-O2//g" configure || die "sed configure failed" |
59 |
|
74 |
|
60 |
myconf="${myconf} `use_with opengl`" |
75 |
myconf="${myconf} |
61 |
myconf="${myconf} --with-gtk" |
76 |
$(use_with opengl) |
62 |
myconf="${myconf} `use_enable debug`" |
77 |
$(use_with gtk) |
|
|
78 |
$(use_enable debug) |
79 |
$(use_with png libpng) |
80 |
$(use_with jpeg libjpeg) |
81 |
$(use_with tiff libtiff) |
82 |
$(use_with xpm libxpm) $(use_enable xpm) |
83 |
$(use_with dmalloc) |
84 |
$(use_with sdl) |
85 |
$(use_with ppc-macos mac) |
86 |
$(use_with motif) |
87 |
$(use_with zlib) |
88 |
$(use_with motif) |
89 |
$(use_enable joystick) |
90 |
--enable-monolithic |
91 |
--prefix=/usr |
92 |
--infodir=/usr/share/info |
93 |
--mandir=/usr/share/man" |
94 |
|
95 |
mkdir build_base |
96 |
einfo "Building base version" |
97 |
cd build_base |
98 |
../configure ${myconf} --disable-gui \ |
99 |
$(use_with odbc) || die "../configure for base filed" |
100 |
emake || die "make base failed" |
101 |
cd contrib/src |
102 |
emake || die "make contrib base failed" |
103 |
cd ${S} |
104 |
|
105 |
if use unicode; then |
106 |
mkdir build_unicode |
107 |
einfo "Building base unicode version" |
108 |
cd build_unicode |
109 |
../configure ${myconf} --disable-gui --enable-unicode \ |
110 |
$(use_with odbc) || die "./configure failed" |
111 |
emake || die "make base unicode failed" |
112 |
cd contrib/src |
113 |
emake || die "make base unicode contrib failed" |
114 |
fi |
115 |
cd ${S} |
63 |
|
116 |
|
64 |
if ! use no_wxgtk1 ; then |
117 |
if use gtk && ! use no_wxgtk1 ; then |
65 |
mkdir build_gtk |
118 |
mkdir build_gtk |
66 |
einfo "Building gtk version" |
119 |
einfo "Building gtk version" |
67 |
cd build_gtk |
120 |
cd build_gtk |
68 |
../configure ${myconf} --disable-gtk2 `use_with odbc`\ |
121 |
../configure ${myconf} --disable-gtk2 \ |
69 |
--host=${CHOST} \ |
122 |
$(use_with odbc) || die "./configure failed" |
70 |
--prefix=/usr \ |
|
|
71 |
--infodir=/usr/share/info \ |
72 |
--mandir=/usr/share/man || die "./configure failed" |
73 |
emake || die "make gtk failed" |
123 |
emake || die "make gtk failed" |
74 |
cd contrib/src |
124 |
cd contrib/src |
75 |
emake || die "make gtk contrib failed" |
125 |
emake || die "make gtk contrib failed" |
76 |
fi |
126 |
fi |
77 |
cd ${S} |
127 |
cd ${S} |
78 |
|
128 |
|
79 |
if use gtk2 ; then |
129 |
if use gtk && use gtk2 ; then |
80 |
myconf="${myconf} --enable-gtk2" |
130 |
einfo "Building GTK2 version" |
81 |
einfo "Building gtk2 version" |
|
|
82 |
mkdir build_gtk2 |
131 |
mkdir build_gtk2 |
83 |
cd build_gtk2 |
132 |
cd build_gtk2 |
84 |
../configure ${myconf} \ |
133 |
../configure ${myconf} --enable-gtk2 \ |
85 |
--host=${CHOST} \ |
134 |
|| die "./configure failed" |
86 |
--prefix=/usr \ |
|
|
87 |
--infodir=/usr/share/info \ |
88 |
--mandir=/usr/share/man || die "./configure failed" |
89 |
emake || die "make gtk2 failed" |
135 |
emake || die "make gtk2 failed" |
90 |
cd contrib/src |
136 |
cd contrib/src |
91 |
emake || die "make gtk2 contrib failed" |
137 |
emake || die "make gtk2 contrib failed" |
92 |
|
138 |
|
93 |
cd ${S} |
139 |
cd ${S} |
|
|
140 |
fi |
94 |
|
141 |
|
95 |
if use unicode ; then |
142 |
if use gtk && use gtk2 && use unicode ; then |
96 |
myconf="${myconf} --enable-unicode" |
143 |
myconf="${myconf} --enable-unicode" |
97 |
einfo "Building unicode version" |
144 |
einfo "Building GTK2 unicode version" |
98 |
mkdir build_unicode |
145 |
mkdir build_unicode |
99 |
cd build_unicode |
146 |
cd build_unicode |
100 |
../configure ${myconf} \ |
147 |
../configure ${myconf} \ |
101 |
--host=${CHOST} \ |
148 |
--enable-unicode --enable-gtk2 \ |
102 |
--prefix=/usr \ |
149 |
|| die "./configure failed" |
103 |
--infodir=/usr/share/info \ |
150 |
|
104 |
--mandir=/usr/share/man || die "./configure failed" |
151 |
emake || die "make unicode failed" |
105 |
|
152 |
|
106 |
emake || die "make unicode failed" |
153 |
cd contrib/src |
107 |
|
154 |
emake || die "make unicode contrib failed" |
108 |
cd contrib/src |
|
|
109 |
emake || die "make unicode contrib failed" |
110 |
fi |
111 |
fi |
155 |
fi |
112 |
} |
156 |
} |
113 |
|
157 |
|
114 |
src_install() { |
158 |
src_install() { |
|
|
159 |
cd ${S}/build_base |
160 |
einstall || die "install base failed" |
161 |
cd contrib/src |
162 |
einstall || die "install base contrib failed" |
163 |
|
164 |
if [ -e ${S}/build_base_unicode ]; then |
165 |
cd ${S}/build_base_unicode |
166 |
einstall || die "install base unicode failed" |
167 |
cd contrib/src |
168 |
einstall || die "install base unicode contrib failed" |
169 |
fi |
170 |
|
115 |
if [ -e ${S}/build_gtk ] ; then |
171 |
if [ -e ${S}/build_gtk ] ; then |
116 |
cd ${S}/build_gtk |
172 |
cd ${S}/build_gtk |
117 |
einstall || die "install gtk failed" |
173 |
einstall || die "install gtk failed" |
Lines 121-129
Link Here
|
121 |
|
177 |
|
122 |
if [ -e ${S}/build_unicode ] ; then |
178 |
if [ -e ${S}/build_unicode ] ; then |
123 |
cd ${S}/build_unicode |
179 |
cd ${S}/build_unicode |
124 |
einstall || die "install unicode failed" |
180 |
einstall || die "install gtk2 unicode failed" |
125 |
cd contrib/src |
181 |
cd contrib/src |
126 |
einstall || die "install unicode contrib failed" |
182 |
einstall || die "install gtk2 unicode contrib failed" |
127 |
fi |
183 |
fi |
128 |
|
184 |
|
129 |
if [ -e ${S}/build_gtk2 ] ; then |
185 |
if [ -e ${S}/build_gtk2 ] ; then |