Magellan Linux

Contents of /trunk/extras/wxgtk/wxgtk-2.8.12-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11010 - (show annotations) (download)
Wed Feb 8 14:10:18 2012 UTC (12 years, 4 months ago) by niro
File size: 1552 byte(s)
-no check target in Makefile
1 # $Id$
2
3 PNAME="wxgtk"
4 PVER="2.8.12"
5 PBUILD="r2"
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 >= x11-libs/libSM-1
14 >= x11-libs/libXinerama-1
15 >= x11-libs/libXxf86vm-1
16 >= sys-libs/zlib-1.2.5
17 >= media-libs/libpng-1.5
18 >= media-libs/libtiff-3.9
19 >= media-libs/libjpeg-8
20 >= dev-libs/glib2-2.28
21 >= x11-libs/gtk2+-2.24"
22
23 SDEPEND=">= x11-proto/xproto-7
24 >= x11-proto/xineramaproto-1
25 >= x11-proto/xf86vidmodeproto-1"
26
27 SRCFILE="${PNAME/gtk/GTK}-${PVER}.tar.gz"
28 SRCDIR="${BUILDDIR}/${PNAME/gtk/GTK}-${PVER}"
29
30 sminclude mbuild
31 msetfeature "!check"
32
33 SRC_URI=(
34 sourceforge://wxwindows/${SRCFILE}
35 mirror://${PNAME}/${SRCFILE}
36 mirror://${PNAME}/${PNAME}-${PVER}-glib-2.22-gsocket.patch
37 )
38
39 UP2DATE="updatecmd_sourceforge wxwindows wxGTK"
40
41 src_prepare()
42 {
43 munpack ${SRCFILE} || die
44 cd ${SRCDIR}
45
46 # fixes compile issues with newer glib2 and gsocket.h
47 # see: http://trac.wxwidgets.org/ticket/10883
48 mpatch ${PNAME}-${PVER}-glib-2.22-gsocket.patch || die
49 }
50
51 src_compile()
52 {
53 cd ${SRCDIR}
54
55 export LANG='C'
56 mconfigure \
57 --build=${CHOST} \
58 --disable-precomp-headers \
59 --disable-debugreport \
60 --with-zlib \
61 --with-opengl \
62 --with-gtk \
63 --enable-gtk2 \
64 --enable-unicode \
65 || die
66
67 mmake || die
68
69 cd contrib/src
70 mmake || die
71 }
72
73 src_install()
74 {
75 cd ${SRCDIR}
76 minstall libdir=${BINDIR}/usr/$(mlibdir) || die
77
78 cd contrib/src
79 minstall libdir=${BINDIR}/usr/$(mlibdir) || die
80 cd ${SRCDIR}
81
82 # docs
83 minstalldocs *.txt || die
84 }