Contents of /trunk/extras/gd/gd-2.2.4-r1.smage2
Parent Directory | Revision Log
Revision 29198 -
(show annotations)
(download)
Mon May 29 13:14:33 2017 UTC (7 years ago) by niro
File size: 1471 byte(s)
Mon May 29 13:14:33 2017 UTC (7 years ago) by niro
File size: 1471 byte(s)
auto added: ver bump to 2.2.4-r1
1 | # $Id$ |
2 | |
3 | PNAME="gd" |
4 | PVER="2.2.4" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="media-libs" |
8 | |
9 | DESCRIPTION="GD is an open source code library for the dynamic creation of images by programmers." |
10 | HOMEPAGE="http://www.libgd.org/" |
11 | |
12 | DEPEND=">= virtual/libjpeg |
13 | >= media-libs/libpng-1.5 |
14 | >= media-libs/freetype-2.6 |
15 | >= media-libs/fontconfig-2.8 |
16 | >= x11-libs/libX11-1.6 |
17 | >= x11-libs/libXau-1 |
18 | >= x11-libs/libxcb-1.12 |
19 | >= x11-libs/libXdmcp-1 |
20 | >= x11-libs/libXpm-3 |
21 | >= sys-libs/zlib-1.2.5" |
22 | |
23 | if mqueryfeature "check" |
24 | then |
25 | # make check needs fonts installed |
26 | SDEPEND+=" |
27 | >= media-fonts/font-misc-misc-1" |
28 | fi |
29 | |
30 | SRCFILE="lib${PNAME}-${PVER}.tar.xz" |
31 | SRCDIR="${BUILDDIR}/lib${PNAME}-${PVER}" |
32 | |
33 | sminclude mbuild |
34 | |
35 | SRC_URI=( |
36 | https://github.com/libgd/libgd/releases/download/${PNAME}-${PVER}/${SRCFILE} |
37 | mirror://${PNAME}/${SRCFILE} |
38 | mirror://${PNAME}/${PNAME}-${PVER}-upstream.patch |
39 | ) |
40 | |
41 | UP2DATE="updatecmd https://github.com/libgd/libgd/releases | highesttarball xz" |
42 | |
43 | src_prepare() |
44 | { |
45 | munpack ${SRCFILE} || die |
46 | cd ${SRCDIR} |
47 | |
48 | # ftbfs and testsuite fixes |
49 | mpatch ${PNAME}-${PVER}-upstream.patch || die |
50 | } |
51 | |
52 | src_check() |
53 | { |
54 | cd ${SRCDIR} |
55 | |
56 | # not dying here, one check fails |
57 | [[ ${ARCH} = i?86 ]] || FREETYPE_PROPERTIES='truetype:interpreter-version=35' \ |
58 | mmake -j1 -k check || if [[ $(grep "fontconfig/basic.*Could not set character size" tests/test-suite.log) ]]; then true; else die; fi |
59 | } |
60 | |
61 | src_compile() |
62 | { |
63 | cd ${SRCDIR} |
64 | |
65 | mconfigure --disable-rpath --with-jpeg --with-png --with-xpm --with-freetype || die |
66 | mmake || die |
67 | } |