blob: ea39e30bab8f6d45503964e814c60a1170192093 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# $NetBSD: Makefile,v 1.40 2005/04/11 21:46:02 tv Exp $
DISTNAME= freetype-2.1.9
PKGNAME= freetype2-2.1.9
PKGREVISION= 1
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=freetype/} \
ftp://ftp.freetype.org/freetype/freetype2/ \
ftp://ftp.ntua.gr/mirror/freetype/freetype2/ \
ftp://ring.aist.go.jp/pub/graphics/freetype/freetype2/ \
ftp://sunsite.cnlab-switch.ch/mirror/freetype/freetype2/ \
http://gd.tuwien.ac.at/publishing/freetype/freetype2/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= rh@NetBSD.org
HOMEPAGE= http://www.freetype.org/
COMMENT= Font rendering engine and library API
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_LIBTOOL= yes
USE_GNU_TOOLS+= grep make
GNU_CONFIGURE= yes
CONFIGURE_DIRS= ${WRKSRC}/builds/unix
CONFIGURE_ARGS+= --includedir=${PREFIX}/include
CONFIGURE_ENV+= ac_cv_path_GREP="${GREP}" ac_cv_path_EGREP="${EGREP}"
PKGCONFIG_OVERRIDE= builds/unix/freetype2.in
.include "../../mk/bsd.prefs.mk"
.include "../../mk/compiler.mk"
.if defined(MKTTINTERP) && !empty(MKTTINTERP:M[yY][eE][sS])
PKG_DEFAULT_OPTIONS+= truetype
.endif
PKG_OPTIONS_VAR+= PKG_OPTIONS.freetype2
PKG_SUPPORTED_OPTIONS= truetype
.include "../../mk/bsd.options.mk"
###
### This builds freetype2 with the TrueType bytecode interpreter. Note
### that there are important patent issues related to the use of the
### interpreter:
###
### http://www.freetype.org/patents.html
###
.if !empty(PKG_OPTIONS:Mtruetype)
CFLAGS+= -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER
.endif
# reduce optimization level on alpha to avoid compiler bugs
.if !empty(MACHINE_PLATFORM:MNetBSD-*-alpha)
CPPFLAGS:= ${CPPFLAGS:C/-O[0-9]*/-O/g}
CFLAGS:= ${CFLAGS:C/-O[0-9]*/-O/g}
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}"
CONFIGURE_ENV+= CFLAGS="${CFLAGS}"
.endif
# source code breaks strict aliasing in gcc>=2.95
.if !empty(CC_VERSION:Mgcc-[3-9]*) || !empty(CC_VERSION:Mgcc-2.95*)
CFLAGS+= -fno-strict-aliasing
.endif
.include "../../devel/zlib/buildlink3.mk"
post-configure:
cd ${WRKSRC} && ${LN} -s builds/unix/unix.mk config.mk
.if ${OPSYS} == "IRIX"
${MKDIR} ${WRKSRC}/.libs
.endif
.include "../../mk/bsd.pkg.mk"
|