Contents of /trunk/extras/gd/gd-2.2.4-r1.smage2
Parent Directory | Revision Log
Revision 29195 -
(show annotations)
(download)
Mon May 29 11:59:54 2017 UTC (7 years ago) by niro
File size: 1196 byte(s)
Mon May 29 11:59:54 2017 UTC (7 years ago) by niro
File size: 1196 byte(s)
-try to fix src_check
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 | SRCFILE="lib${PNAME}-${PVER}.tar.xz" |
24 | SRCDIR="${BUILDDIR}/lib${PNAME}-${PVER}" |
25 | |
26 | sminclude mbuild |
27 | |
28 | SRC_URI=( |
29 | https://github.com/libgd/libgd/releases/download/${PNAME}-${PVER}/${SRCFILE} |
30 | mirror://${PNAME}/${SRCFILE} |
31 | mirror://${PNAME}/${PNAME}-${PVER}-upstream.patch |
32 | ) |
33 | |
34 | UP2DATE="updatecmd https://github.com/libgd/libgd/releases | highesttarball xz" |
35 | |
36 | src_prepare() |
37 | { |
38 | munpack ${SRCFILE} || die |
39 | cd ${SRCDIR} |
40 | |
41 | # ftbfs and testsuite fixes |
42 | mpatch ${PNAME}-${PVER}-upstream.patch || die |
43 | } |
44 | |
45 | src_check() |
46 | { |
47 | [[ ${ARCH} = i?86 ]] || FREETYPE_PROPERTIES='truetype:interpreter-version=35' \ |
48 | mmake -j1 -k check || die |
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 | } |