Magellan Linux

Contents of /smage/branches/alx07x-unstable/core/fltk/fltk-1.3.3-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10911 - (show annotations) (download)
Thu Aug 31 08:35:22 2017 UTC (6 years, 7 months ago) by niro
File size: 2112 byte(s)
-release branches/alx07x-unstable
1 # $Id$
2
3 PNAME="fltk"
4 PVER="1.3.3"
5 PBUILD="r4"
6
7 PCAT="x11-libs"
8
9 DESCRIPTION="C++ user interface toolkit for X and OpenGL."
10 HOMEPAGE="http://www.fltk.org/"
11
12 SRCFILE="${PNAME}-${PVER}-source.tar.gz"
13 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
14
15 DEPEND=">= sys-libs/libstdc++-5.3
16 >= sys-libs/zlib-1.2
17 >= media-libs/glu-9
18 >= media-libs/fontconfig-2.11
19 >= media-libs/libjpeg-8d
20 >= media-libs/libpng-1.5
21 >= x11-libs/cairo-1.14
22 >= x11-libs/libX11-1.6
23 >= x11-libs/libXext-1.3
24 >= x11-libs/libXft-2.3
25 >= x11-libs/libXinerama-1.1
26 >= x11-libs/pixman-0.32"
27
28 ALX_DEV_DEPEND=">= sys-libs/libstdc++-dev-5.3
29 >= sys-libs/zlib-dev-1.2
30 >= media-libs/glu-dev-9
31 >= media-libs/fontconfig-dev-2.11
32 >= media-libs/libjpeg-dev-8d
33 >= media-libs/libpng-dev-1.5
34 >= x11-libs/cairo-dev-1.14
35 >= x11-libs/libX11-dev-1.6
36 >= x11-libs/libXext-dev-1.3
37 >= x11-libs/libXft-dev-2.3
38 >= x11-libs/libXinerama-dev-1.1
39 >= x11-libs/pixman-dev-0.32"
40
41 SDEPEND=">= media-libs/alsa-lib-1.1
42 ${ALX_DEV_DEPEND}"
43
44 ALX_PKG_KEEP="usr/$(mlibdir)/*.so.*"
45 sminclude mbuild alx-split
46
47 SRC_URI=(
48 #http://fltk.org/pub/${PNAME}/${PVER}/${SRCFILE}
49 #http://ftp.easysw.com/pub/${PNAME}/${PVER}/${SRCFILE}
50 mirror://${PNAME}/${SRCFILE}
51 mirror://${PNAME}/${PNAME}-1.3.3-as-needed.patch
52 mirror://${PNAME}/${PNAME}-1.3.3-conf-tests-2.patch
53 )
54
55 UP2DATE="updatecmd ${HOMEPAGE}/software.php | grep -- '-source' | sed 's:-source::g' | highesttarball gz"
56
57 src_prepare()
58 {
59 munpack ${SRCFILE} || die
60 cd ${SRCDIR}
61
62 # fix linking issues with as-needed (cairo not linked in)
63 mpatch ${PNAME}-1.3.3-as-needed.patch || die
64
65 # enable make check and remove tests and documentation from install target
66 mpatch ${PNAME}-1.3.3-conf-tests-2.patch || die
67
68 # broken usage of autotools in the pkg, autoheader will fail
69 #mautoreconf || die
70 ./autogen.sh || die
71 }
72
73 src_compile()
74 {
75 cd ${SRCDIR}
76
77 mconfigure \
78 --disable-debug \
79 --disable-localjpeg \
80 --disable-localpng \
81 --disable-localzlib \
82 --enable-largefile \
83 --enable-threads \
84 --enable-xft \
85 --enable-xdbe \
86 --enable-cairo \
87 --enable-gl \
88 --enable-xft \
89 --enable-xinerama \
90 || die
91
92 mmake || die
93 }