Contents of /trunk/core/freetype/freetype-2.9-r1.smage2
Parent Directory | Revision Log
Revision 30361 -
(show annotations)
(download)
Wed Jan 17 13:13:49 2018 UTC (6 years, 8 months ago) by niro
File size: 1527 byte(s)
Wed Jan 17 13:13:49 2018 UTC (6 years, 8 months ago) by niro
File size: 1527 byte(s)
auto added: ver bump to 2.9-r1
1 | # $Id$ |
2 | |
3 | PNAME="freetype" |
4 | PVER="2.9" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="media-libs" |
8 | |
9 | DESCRIPTION="truetype font rendering libraries." |
10 | HOMEPAGE="http://www.freetype.org/" |
11 | |
12 | # dep-loop with >= media-libs/harfbuzz |
13 | # freetype needs harfbuzz and harfbuzz needs freetype |
14 | # bootstrap without harfbuzz support, build harfbuzz and after that |
15 | # rebuild everything with harfbuzz enabled |
16 | # |
17 | # enable=1 or disable=0 harfbuzz support |
18 | ENABLE_HARFBUZZ=1 |
19 | |
20 | DEPEND=">= virtual/glibc |
21 | >= media-libs/libpng-1.5 |
22 | >= sys-libs/zlib-1.2 |
23 | >= app-arch/bzip2-1" |
24 | |
25 | if [[ ${ENABLE_HARFBUZZ} = 1 ]] |
26 | then |
27 | DEPEND="${DEPEND} |
28 | >= media-libs/harfbuzz-libs-0.9" |
29 | fi |
30 | |
31 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
32 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
33 | |
34 | sminclude multilib mbuild |
35 | |
36 | SRC_URI=( |
37 | http://download.savannah.gnu.org/releases/${PNAME}/${SRCFILE} |
38 | mirror://${PNAME}/${SRCFILE} |
39 | ) |
40 | |
41 | UP2DATE="updatecmd http://download.savannah.gnu.org/releases/${PNAME}/ | highesttarball" |
42 | |
43 | src_compile() |
44 | { |
45 | # otherwise mkfontscale could SIGSEGV or SIGILL |
46 | # see ( redhat bug 118021 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=118021) |
47 | export CFLAGS="${CFLAGS} -fno-strict-aliasing" |
48 | export CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing" |
49 | |
50 | local myconf |
51 | if [[ ${ENABLE_HARFBUZZ} = 1 ]] |
52 | then |
53 | myconf="--with-harfbuzz" |
54 | else |
55 | myconf"--without-harfbuzz" |
56 | fi |
57 | |
58 | mconfigure ${myconf} || die |
59 | mmake || die |
60 | } |
61 | |
62 | src_install() |
63 | { |
64 | mmake DESTDIR=${BINDIR} install || die |
65 | |
66 | minstalldocs ChangeLog README README.CVS |
67 | minstalldocs docs/{CHANGES,CUSTOMIZE,PATENTS,*.TXT,*.txt,reference,release,TODO,TRUETYPE} || die |
68 | } |