Contents of /branches/R11-unstable/extras/gd/gd-2.2.5-r1.smage2
Parent Directory | Revision Log
Revision 32791 -
(show annotations)
(download)
Mon Apr 29 13:40:54 2019 UTC (5 years, 5 months ago) by niro
File size: 1283 byte(s)
Mon Apr 29 13:40:54 2019 UTC (5 years, 5 months ago) by niro
File size: 1283 byte(s)
-release branches/R11-unstable
1 | # $Id$ |
2 | |
3 | PNAME="gd" |
4 | PVER="2.2.5" |
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 | ) |
39 | |
40 | UP2DATE="updatecmd https://github.com/libgd/libgd/releases | highesttarball xz" |
41 | |
42 | src_check() |
43 | { |
44 | cd ${SRCDIR} |
45 | |
46 | # not dying here, one check fails |
47 | [[ ${ARCH} = i?86 ]] || FREETYPE_PROPERTIES='truetype:interpreter-version=35' \ |
48 | mmake -j1 -k check || if [[ $(grep "fontconfig/basic.*Could not set character size" tests/test-suite.log) ]]; then true; else die; fi |
49 | } |
50 | |
51 | src_compile() |
52 | { |
53 | cd ${SRCDIR} |
54 | |
55 | mconfigure --disable-rpath --with-jpeg --with-png --with-xpm --with-freetype || die |
56 | mmake || die |
57 | } |