blob: cd57d2f7063b1329b6f3b95af3d399398ba335eb (
plain) (
blame)
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
# New ports collection makefile for: freetype
# Date created: January 24, 1998
# Whom: jseger@FreeBSD.org
#
# $FreeBSD$
# $MCom: ports/print/freetype2/Makefile,v 1.21 2010/02/21 21:18:58 marcus Exp $
#
PORTNAME= freetype2
PORTVERSION= 2.3.12
CATEGORIES= print
MASTER_SITES= SF/freetype/${PORTNAME}/${PORTVERSION} \
http://sunsite.cnlab-switch.ch/ftp/mirror/freetype/freetype2/ \
http://www.funet.fi/pub/mirrors/ftp.freetype.org/freetype2/ \
http://ftp.sunet.se/pub/text-processing/freetype/freetype2/ \
${MASTER_SITE_RINGSERVER:S,%SUBDIR%,graphics/freetype/&,} \
ftp://ftp.freetype.org/freetype/freetype2/
DISTNAME= ${PORTNAME:S/2//}-${PORTVERSION}
MAINTAINER= gnome@FreeBSD.org
COMMENT= A free and portable TrueType font rendering engine
USE_AUTOTOOLS= libtool:22
USE_BZIP2= yes
USE_GMAKE= yes
MAKE_JOBS_SAFE= yes
MAKE_ENV= TOP=""
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
USE_GNOME= gnometarget pkgconfig ltverhack:9
LIBTOOLFILES= builds/unix/configure
CONFIGURE_ARGS= --disable-nls
CONFIGURE_WRKSRC= ${WRKSRC}/builds/unix
.if defined(WITH_LCD_FILTERING)
CFLAGS+= -DFT_CONFIG_OPTION_SUBPIXEL_RENDERING
.endif
.if defined(WITH_CJK)
#PATCH_SITES+= http://lwj-hinet.myweb.hinet.net/ \
# ftp://local-distfiles.freebsd.org.cn/pub/china-ports/hamigua/ \
# http://bsdchat.com/dist/firefly-cjk-patchset/
#PATCHFILES+= cjk-freetype-2.1.10-20051219.patch.gz
#PATCH_DIST_STRIP+= -p1
.endif
pre-everything::
.if !defined(WITHOUT_TTF_BYTECODE_ENABLED)
@${ECHO_MSG}
@${ECHO_MSG} "You may want not to compile a bytecode interpreter into the"
@${ECHO_MSG} "TrueType driver. Without this you will only compile the code"
@${ECHO_MSG} "necessary to load TrueType glyphs without hinting."
@${ECHO_MSG}
@${ECHO_MSG} "Hit Ctrl-C now and use \"make WITHOUT_TTF_BYTECODE_ENABLED=yes\""
@${ECHO_MSG}
@${ECHO_MSG} "Note that there are important patent issues related to the"
@${ECHO_MSG} "use of the interpreter."
@${ECHO_MSG}
.endif
.if !defined(WITH_LCD_FILTERING)
@${ECHO_MSG}
@${ECHO_MSG} "You may want to enable LCD filtering."
@${ECHO_MSG}
@${ECHO_MSG} "Hit Ctrl-C now and use \"make WITH_LCD_FILTERING=yes\""
@${ECHO_MSG}
@${ECHO_MSG} "Note that there are possible patent issues related to the"
@${ECHO_MSG} "use of the LCD filtering technology."
@${ECHO_MSG}
.endif
pre-patch:
@${REINPLACE_CMD} -e 's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g' \
${WRKSRC}/builds/unix/install.mk
.if !defined(WITHOUT_TTF_BYTECODE_ENABLED)
@${REINPLACE_CMD} -e '/#define TT_CONFIG_OPTION_BYTECODE_INTERPRETER/s,/\* \(.*\) \*/,\1,; /#define TT_CONFIG_OPTION_UNPATENTED_HINTING/s,^\(.*\),/* \1 \*/,' \
${WRKSRC}/include/freetype/config/ftoption.h
.endif
pre-configure:
@${REINPLACE_CMD} -e '/^LIBTOOL/s|LIBTOOL ?= $$(BUILD_DIR)/libtool|LIBTOOL := ${WRKDIR}/gnome-libtool|' \
${WRKSRC}/builds/unix/unix-cc.in
post-configure:
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} setup)
.include <bsd.port.mk>
|