blob: 20756e850af045096e3fe7a57f4659a27cea1b9f (
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
# New ports collection makefile for: fontforge
# Date created: 25 March 2001
# Whom: KANOU Hiroki <kanou@khdd.net>
#
# $FreeBSD$
#
PORTNAME= fontforge
PORTVERSION= 20060117
PORTREVISION= 1
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= fontforge
DISTFILES= ${EXTRACT_ONLY} ${DOCFILES}
EXTRACT_ONLY= ${PORTNAME}_full-${PORTVERSION}.tar.bz2
.if defined(FONTFORGE_WITH_TTF_DEBUGGER)
FREETYPE_VERSION= 2.1.10
EXTRACT_ONLY+= freetype-${FREETYPE_VERSION}.tar.bz2
.endif
MAINTAINER= kanou@khdd.net
COMMENT= Type 1/TrueType/OpenType/bitmap font editor
LIB_DEPENDS= uninameslist.0:${PORTSDIR}/textproc/libuninameslist \
tiff.4:${PORTSDIR}/graphics/tiff \
jpeg.9:${PORTSDIR}/graphics/jpeg \
png.5:${PORTSDIR}/graphics/png \
ungif.5:${PORTSDIR}/graphics/libungif \
freetype.9:${PORTSDIR}/print/freetype2 \
xml2.5:${PORTSDIR}/textproc/libxml2
DOC_VERSION= 20060114
DOCFILES= ${DOCFILE_IN_TAR_GZ} ${DOCFILE_IN_TAR_BZ2}
DOCFILE_IN_TAR_GZ= ${PORTNAME}_htdocs-${DOC_VERSION}.tgz
DOCFILE_IN_TAR_BZ2= ${PORTNAME}_ja_htdocs-${DOC_VERSION}.tar.bz2
USE_GETTEXT= yes
USE_GMAKE= yes
USE_XLIB= yes
USE_ICONV= yes
USE_BZIP2= yes
PATCH_STRIP= -l
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.if !defined(FONTFORGE_NO_MULTILAYER)
WITH_MULTILAYER= --with-multilayer
.endif
.if !defined(WITHOUT_TTF_BYTECODE_ENABLED) && defined(FONTFORGE_WITH_TTF_DEBUGGER)
WITH_FREETYPE_SRC= --with-freetype-src=${WRKDIR}/freetype-${FREETYPE_VERSION}
.else
WITH_FREETYPE_SRC= --without-freetype-src
.endif
CONFIGURE_ARGS= ${WITH_MULTILAYER} --with-devicetables ${WITH_FREETYPE_SRC}
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" CFLAGS="${CFLAGS} \
-I${LOCALBASE}/include -I${LOCALBASE}/include/freetype2 \
-L${LOCALBASE}/lib" CPPFLAGS="-I${LOCALBASE}/include \
-I${LOCALBASE}/include/freetype2"
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
INSTALLS_SHLIB= yes
GNU_CONFIGURE= yes
MAN1= fontforge.1 sfddiff.1
pre-everything::
.if defined(WITHOUT_EXTRA_ENCODINGS)
@${ECHO_MSG} "WARNING: You should not compile libiconv with WITHOUT_EXTRA_ENCODINGS"
@${ECHO_MSG} "defined, because libiconv must be configured with --enable-extra-encoding"
@${ECHO_MSG} "as FontForge requires Shift-JIS."
@${ECHO_MSG} ""
.endif
.if !defined(WITHOUT_TTF_BYTECODE_ENABLED) && !defined(FONTFORGE_WITH_TTF_DEBUGGER)
@${ECHO_MSG} "If you have built freetype2 port with bytecode interpreter enabled,"
@${ECHO_MSG} "You can use TTF instruction debugger by compiling fontforge port"
@${ECHO_MSG} "with FONTFORGE_WITH_TTF_DEBUGGER defined."
@${ECHO_MSG} "Note that you must put the source archive of FreeType in ${DISTDIR}."
@${ECHO_MSG} "If you have installed freetype2 from a package, chdir to ${PORTSDIR}/print/"
@${ECHO_MSG} "and execute 'make fetch' before building this port".
@${ECHO_MSG} ""
.endif
.if !defined(FONTFORGE_NO_MULTILAYER)
@${ECHO_MSG} "If your machine has small memory and you have to edit fonts with a lot"
@${ECHO_MSG} "of glyphs, you can save memory by defining FONTFORGE_NO_MULTILAYER."
@${ECHO_MSG} "Enabling multilayer editing increases memory consumption per glyph."
@${ECHO_MSG} ""
.endif
post-extract:
${MKDIR} ${WRKDIR}/html ${WRKSRC}/cidmap
for doc in ${DOCFILE_IN_TAR_GZ} ; \
do ${TAR} -xzC ${WRKDIR}/html -f ${DISTDIR}/$${doc} ; \
done
for doc in ${DOCFILE_IN_TAR_BZ2} ; \
do ${TAR} -xyC ${WRKDIR}/html -f ${DISTDIR}/$${doc} ; \
done
${TAR} -xzC ${WRKSRC}/cidmap -f ${WRKDIR}/html/cidmaps.tgz
${RM} ${WRKDIR}/html/cidmaps.tgz
post-install:
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}/flags ${DOCSDIR}/ja
${INSTALL_DATA} ${WRKDIR}/html/*.* ${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/html/flags/* ${DOCSDIR}/flags
${INSTALL_DATA} ${WRKDIR}/html/ja/* ${DOCSDIR}/ja
.endif
.include <bsd.port.mk>
|