Annotation of /trunk/extras/fltk/fltk-1.3.3-r2.smage2
Parent Directory | Revision Log
Revision 29200 -
(hide annotations)
(download)
Mon May 29 13:19:54 2017 UTC (7 years, 3 months ago) by niro
File size: 1664 byte(s)
Mon May 29 13:19:54 2017 UTC (7 years, 3 months ago) by niro
File size: 1664 byte(s)
-rebuild against libjpeg-turbo
1 | niro | 29200 | # $Id$ |
2 | |||
3 | PNAME="fltk" | ||
4 | PVER="1.3.3" | ||
5 | PBUILD="r2" | ||
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++-6.3 | ||
16 | >= sys-libs/zlib-1.2 | ||
17 | >= virtual/glu | ||
18 | >= media-libs/fontconfig-2.11 | ||
19 | >= virtual/libjpeg | ||
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 | SDEPEND=">= media-libs/alsa-lib-1.1" | ||
29 | |||
30 | sminclude mbuild | ||
31 | |||
32 | SRC_URI=( | ||
33 | http://fltk.org/pub/${PNAME}/${PVER}/${SRCFILE} | ||
34 | #http://ftp.easysw.com/pub/${PNAME}/${PVER}/${SRCFILE} | ||
35 | mirror://${PNAME}/${SRCFILE} | ||
36 | mirror://${PNAME}/${PNAME}-1.3.3-as-needed.patch | ||
37 | mirror://${PNAME}/${PNAME}-1.3.3-conf-tests-2.patch | ||
38 | ) | ||
39 | |||
40 | UP2DATE="updatecmd ${HOMEPAGE}/software.php | grep -- '-source' | sed 's:-source::g' | highesttarball gz" | ||
41 | |||
42 | src_prepare() | ||
43 | { | ||
44 | munpack ${SRCFILE} || die | ||
45 | cd ${SRCDIR} | ||
46 | |||
47 | # fix linking issues with as-needed (cairo not linked in) | ||
48 | mpatch ${PNAME}-1.3.3-as-needed.patch || die | ||
49 | |||
50 | # enable make check and remove tests and documentation from install target | ||
51 | mpatch ${PNAME}-1.3.3-conf-tests-2.patch || die | ||
52 | |||
53 | # broken usage of autotools in the pkg, autoheader will fail | ||
54 | #mautoreconf || die | ||
55 | ./autogen.sh || die | ||
56 | } | ||
57 | |||
58 | src_compile() | ||
59 | { | ||
60 | cd ${SRCDIR} | ||
61 | |||
62 | mconfigure \ | ||
63 | --disable-debug \ | ||
64 | --disable-localjpeg \ | ||
65 | --disable-localpng \ | ||
66 | --disable-localzlib \ | ||
67 | --enable-largefile \ | ||
68 | --enable-threads \ | ||
69 | --enable-xft \ | ||
70 | --enable-xdbe \ | ||
71 | --enable-cairo \ | ||
72 | --enable-gl \ | ||
73 | --enable-xft \ | ||
74 | --enable-xinerama \ | ||
75 | || die | ||
76 | |||
77 | mmake || die | ||
78 | } |