Magellan Linux

Contents of /smage/trunk/core/fltk/fltk-1.3.4_2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11597 - (show annotations) (download)
Fri Dec 22 11:34:13 2017 UTC (6 years, 4 months ago) by niro
File size: 2190 byte(s)
auto added: ver bump to 1.3.4_2-r1
1 # $Id$
2
3 PNAME="fltk"
4 PVER="1.3.4_2"
5 PBUILD="r1"
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 >= media-libs/glu-9
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.34"
27
28 ALX_DEV_DEPEND=">= sys-libs/libstdc++-dev-6.3
29 >= sys-libs/zlib-dev-1.2
30 >= media-libs/glu-dev-9
31 >= media-libs/fontconfig-dev-2.11
32 >= virtual/libjpeg-dev
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.34"
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 # not a tar gz but a normal tar archive
60 tar xvf ${SOURCEDIR}/${PNAME}/${SRCFILE} -C ${BUILDDIR} || die
61 cd ${SRCDIR}
62
63 # fix linking issues with as-needed (cairo not linked in)
64 mpatch ${PNAME}-1.3.3-as-needed.patch || die
65
66 # enable make check and remove tests and documentation from install target
67 mpatch ${PNAME}-1.3.3-conf-tests-2.patch || die
68
69 # broken usage of autotools in the pkg, autoheader will fail
70 #mautoreconf || die
71 ./autogen.sh || die
72 }
73
74 src_compile()
75 {
76 cd ${SRCDIR}
77
78 mconfigure \
79 --disable-debug \
80 --disable-localjpeg \
81 --disable-localpng \
82 --disable-localzlib \
83 --enable-largefile \
84 --enable-threads \
85 --enable-xft \
86 --enable-xdbe \
87 --enable-cairo \
88 --enable-gl \
89 --enable-xft \
90 --enable-xinerama \
91 || die
92
93 mmake || die
94 }