Magellan Linux

Annotation of /smage/trunk/core/fltk/fltk-1.3.5-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 14247 - (hide annotations) (download)
Tue Jul 7 07:27:46 2020 UTC (3 years, 10 months ago) by niro
File size: 2249 byte(s)
auto added: ver bump to 1.3.5-r1
1 niro 14246 # $Id$
2    
3     PNAME="fltk"
4     PVER="1.3.5"
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++-8.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.16
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.40"
27    
28     ALX_DEV_DEPEND=">= sys-libs/libstdc++-dev-8.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.16
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.40"
40    
41     SDEPEND=">= media-libs/alsa-lib-1.1
42     ${ALX_DEV_DEPEND}"
43    
44     ALX_PKG_KEEP="usr/$(mlibdir)/*.so.*"
45 niro 14247 msetfeature "!check"
46 niro 14246 sminclude mbuild alx-split
47    
48     SRC_URI=(
49     http://fltk.org/pub/${PNAME}/${PVER%_*}/${SRCFILE}
50     #http://ftp.easysw.com/pub/${PNAME}/${PVER}/${SRCFILE}
51     mirror://${PNAME}/${SRCFILE}
52     mirror://${PNAME}/${PNAME}-1.3.3-as-needed.patch
53     #mirror://${PNAME}/${PNAME}-1.3.3-conf-tests-2.patch
54     )
55    
56     UP2DATE="updatecmd ${HOMEPAGE}/software.php | grep -- '-source' | sed -e 's:-source::g' -e 's:-:_:g' -e 's:fltk_:fltk-:g' | highesttarball gz"
57    
58     src_prepare()
59     {
60     # not a tar gz but a normal tar archive
61     tar xvf ${SOURCEDIR}/${PNAME}/${SRCFILE} -C ${BUILDDIR} || die
62     cd ${SRCDIR}
63    
64     # fix linking issues with as-needed (cairo not linked in)
65     mpatch ${PNAME}-1.3.3-as-needed.patch || die
66    
67     ## enable make check and remove tests and documentation from install target
68     #mpatch ${PNAME}-1.3.3-conf-tests-2.patch || die
69    
70     # broken usage of autotools in the pkg, autoheader will fail
71     #mautoreconf || die
72     ./autogen.sh || die
73     }
74    
75     src_compile()
76     {
77     cd ${SRCDIR}
78    
79     mconfigure \
80     --disable-debug \
81     --disable-localjpeg \
82     --disable-localpng \
83     --disable-localzlib \
84     --enable-largefile \
85     --enable-threads \
86     --enable-xft \
87     --enable-xdbe \
88     --enable-cairo \
89     --enable-gl \
90     --enable-xft \
91     --enable-xinerama \
92     || die
93    
94     mmake || die
95     }