Contents of /branches/magellan-next/extras/wxgtk/wxgtk-2.8.12-r1.smage2
Parent Directory | Revision Log
Revision 8286 -
(show annotations)
(download)
Thu Jul 14 08:40:27 2011 UTC (13 years, 2 months ago) by niro
File size: 1537 byte(s)
Thu Jul 14 08:40:27 2011 UTC (13 years, 2 months ago) by niro
File size: 1537 byte(s)
auto added: ver bump to 2.8.12-r1
1 | # $Id$ |
2 | |
3 | PNAME="wxgtk" |
4 | PVER="2.8.12" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="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 | |
32 | SRC_URI=( |
33 | sourceforge://wxwindows/${SRCFILE} |
34 | mirror://${PNAME}/${SRCFILE} |
35 | mirror://${PNAME}/${PNAME}-${PVER}-glib-2.22-gsocket.patch |
36 | ) |
37 | |
38 | UP2DATE="updatecmd_sourceforge wxwindows wxGTK" |
39 | |
40 | src_prepare() |
41 | { |
42 | munpack ${SRCFILE} || die |
43 | cd ${SRCDIR} |
44 | |
45 | # fixes compile issues with newer glib2 and gsocket.h |
46 | # see: http://trac.wxwidgets.org/ticket/10883 |
47 | mpatch ${PNAME}-${PVER}-glib-2.22-gsocket.patch || die |
48 | } |
49 | |
50 | src_compile() |
51 | { |
52 | cd ${SRCDIR} |
53 | |
54 | export LANG='C' |
55 | mconfigure \ |
56 | --build=${CHOST} \ |
57 | --disable-precomp-headers \ |
58 | --disable-debugreport \ |
59 | --with-zlib \ |
60 | --with-opengl \ |
61 | --with-gtk \ |
62 | --enable-gtk2 \ |
63 | --enable-unicode \ |
64 | || die |
65 | |
66 | mmake || die |
67 | |
68 | cd contrib/src |
69 | mmake || die |
70 | } |
71 | |
72 | src_install() |
73 | { |
74 | cd ${SRCDIR} |
75 | minstall libdir=${BINDIR}/usr/$(mlibdir) || die |
76 | |
77 | cd contrib/src |
78 | minstall libdir=${BINDIR}/usr/$(mlibdir) || die |
79 | cd ${SRCDIR} |
80 | |
81 | # docs |
82 | minstalldocs *.txt || die |
83 | } |