Magellan Linux

Contents of /branches/R11-unstable/extras/wxgtk/wxgtk-2.8.12.1-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32373 - (show annotations) (download)
Mon Apr 29 12:23:22 2019 UTC (5 years ago) by niro
File size: 2406 byte(s)
-release branches/R11-unstable
1 # $Id$
2
3 PNAME="wxgtk"
4 PVER="2.8.12.1"
5 PBUILD="r4"
6
7 PCAT="x11-libs"
8
9 DESCRIPTION="GTK+ version of the open source, cross-platform native UI framework."
10 HOMEPAGE="http://www.wxwidgets.org/"
11
12 DEPEND=">= virtual/opengl
13 >= virtual/glu
14 >= x11-libs/libX11-1.6
15 >= x11-libs/libXinerama-1
16 >= x11-libs/libXxf86vm-1
17 >= sys-libs/zlib-1.2.8
18 >= media-libs/libpng-1.5
19 >= media-libs/libtiff-3.9
20 >= virtual/libjpeg
21 >= dev-libs/expat-2
22 >= dev-libs/glib2-2.52
23 >= x11-libs/gtk2+-2.24
24 >= sys-libs/libstdc++-6.3"
25
26 # we are using the wxpython tarball which contains the full source of
27 # wxGTK and is release more frequently
28 SRCFILE="wxPython-src-${PVER}.tar.bz2"
29 SRCDIR="${BUILDDIR}/wxPython-src-${PVER}"
30
31 sminclude mbuild
32 msetfeature "!check"
33
34 SRC_URI=(
35 #sourceforge://wxwindows/${SRCFILE}
36 sourceforge://wxpython/${SRCFILE}
37 mirror://${PNAME}/${SRCFILE}
38 mirror://${PNAME}/${PNAME}-${PVER}-fix-c++14.patch
39 )
40
41 UP2DATE="updatecmd_sourceforge wxpython wxPython"
42
43 src_prepare()
44 {
45 munpack ${SRCFILE} || die
46 cd ${SRCDIR}
47
48 # fix ftbfs
49 mpatch ${PNAME}-${PVER}-fix-c++14.patch || die
50 }
51
52 src_compile()
53 {
54 cd ${SRCDIR}
55
56 # --disable-optimize to use our own CFLAGS
57 # --enable-debugreport to fix missing gtku_qa solib
58 export LANG='C'
59 mconfigure \
60 --disable-optimize \
61 --disable-precomp-headers \
62 --disable-rpath \
63 --enable-soname \
64 --enable-debugreport \
65 --enable-compat24 \
66 --enable-unicode \
67 --enable-intl \
68 --enable-no_deps \
69 --enable-geometry \
70 --enable-display \
71 --enable-gui \
72 --enable-sound \
73 --enable-timer \
74 --enable-graphics_ctx \
75 --enable-mediactrl \
76 --with-opengl \
77 --with-gtk=2 \
78 --with-regex=builtin \
79 --with-zlib=sys \
80 --with-expat=sys \
81 --with-libpng=sys \
82 --with-libxpm=sys \
83 --with-libjpeg=sys \
84 --with-libtiff=sys \
85 --without-gnomevfs \
86 --without-gnomeprint \
87 || die
88
89 mmake || die
90
91 mmake -C contrib/src/stc || die
92 mmake -C contrib/src/ogl || die
93 mmake -C contrib/src/gizmos || die
94 mmake -C contrib/src/svg || die
95
96 # not part of the main build?
97 mmake -j1 -C locale allmo || die
98 }
99
100 src_install()
101 {
102 cd ${SRCDIR}
103 mmake DESTDIR=${BINDIR} install || die
104
105 mmake -C contrib/src/stc DESTDIR=${BINDIR} install || die
106 mmake -C contrib/src/ogl DESTDIR=${BINDIR} install || die
107 mmake -C contrib/src/gizmos DESTDIR=${BINDIR} install || die
108 mmake -C contrib/src/svg DESTDIR=${BINDIR} install || die
109
110 # docs
111 minstalldocs *.txt docs/*.txt || die
112 }