2004-05-01 09:55:48 +00:00
|
|
|
# New ports collection makefile for: fontforge
|
2001-05-19 17:09:56 +00:00
|
|
|
# Date created: 25 March 2001
|
2003-03-23 12:16:51 +00:00
|
|
|
# Whom: KANOU Hiroki <kanou@khdd.net>
|
2001-05-19 17:09:56 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2004-05-01 09:55:48 +00:00
|
|
|
PORTNAME= fontforge
|
2006-06-10 16:44:10 +00:00
|
|
|
PORTVERSION= 20060413
|
2001-05-19 17:09:56 +00:00
|
|
|
CATEGORIES= print
|
2003-11-14 02:57:16 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2004-05-01 09:55:48 +00:00
|
|
|
MASTER_SITE_SUBDIR= fontforge
|
2006-01-24 12:10:53 +00:00
|
|
|
DISTFILES= ${EXTRACT_ONLY} ${DOCFILES}
|
2005-10-13 02:57:40 +00:00
|
|
|
EXTRACT_ONLY= ${PORTNAME}_full-${PORTVERSION}.tar.bz2
|
2006-01-24 12:10:53 +00:00
|
|
|
.if defined(FONTFORGE_WITH_TTF_DEBUGGER)
|
|
|
|
FREETYPE_VERSION= 2.1.10
|
|
|
|
EXTRACT_ONLY+= freetype-${FREETYPE_VERSION}.tar.bz2
|
|
|
|
.endif
|
2001-05-19 17:09:56 +00:00
|
|
|
|
2003-03-23 12:16:51 +00:00
|
|
|
MAINTAINER= kanou@khdd.net
|
2003-02-21 13:28:59 +00:00
|
|
|
COMMENT= Type 1/TrueType/OpenType/bitmap font editor
|
2001-05-19 17:09:56 +00:00
|
|
|
|
2003-11-14 02:57:16 +00:00
|
|
|
LIB_DEPENDS= uninameslist.0:${PORTSDIR}/textproc/libuninameslist \
|
|
|
|
tiff.4:${PORTSDIR}/graphics/tiff \
|
2001-05-19 17:09:56 +00:00
|
|
|
jpeg.9:${PORTSDIR}/graphics/jpeg \
|
2001-09-11 02:59:20 +00:00
|
|
|
png.5:${PORTSDIR}/graphics/png \
|
2002-02-22 06:52:23 +00:00
|
|
|
ungif.5:${PORTSDIR}/graphics/libungif \
|
2003-08-06 20:53:10 +00:00
|
|
|
freetype.9:${PORTSDIR}/print/freetype2 \
|
2004-05-01 09:55:48 +00:00
|
|
|
xml2.5:${PORTSDIR}/textproc/libxml2
|
2004-01-22 14:58:40 +00:00
|
|
|
|
2006-06-10 16:44:10 +00:00
|
|
|
DOC_VERSION= 20060406
|
2006-04-09 00:13:48 +00:00
|
|
|
DOCFILES= ${PORTNAME}_htdocs-${DOC_VERSION}.tar.bz2
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
DOCFILES+= ${PORTNAME}_ja_htdocs-${DOC_VERSION}.tar.bz2
|
|
|
|
.endif
|
2001-05-19 17:09:56 +00:00
|
|
|
|
2006-04-09 00:13:48 +00:00
|
|
|
USE_BZIP2= yes
|
2006-01-26 04:29:21 +00:00
|
|
|
USE_GETTEXT= yes
|
2001-11-25 17:17:36 +00:00
|
|
|
USE_GMAKE= yes
|
2004-05-01 09:55:48 +00:00
|
|
|
USE_ICONV= yes
|
2006-04-09 00:13:48 +00:00
|
|
|
USE_XLIB= yes
|
2004-01-23 19:26:09 +00:00
|
|
|
PATCH_STRIP= -l
|
2006-01-24 12:10:53 +00:00
|
|
|
|
2005-04-12 03:26:56 +00:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2004-11-04 14:58:04 +00:00
|
|
|
.if !defined(FONTFORGE_NO_MULTILAYER)
|
2006-01-24 12:10:53 +00:00
|
|
|
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}
|
2005-01-31 22:07:31 +00:00
|
|
|
.else
|
2006-01-24 12:10:53 +00:00
|
|
|
WITH_FREETYPE_SRC= --without-freetype-src
|
2004-11-04 14:58:04 +00:00
|
|
|
.endif
|
2006-01-24 12:10:53 +00:00
|
|
|
CONFIGURE_ARGS= ${WITH_MULTILAYER} --with-devicetables ${WITH_FREETYPE_SRC}
|
2004-05-01 09:55:48 +00:00
|
|
|
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"
|
2006-01-24 12:10:53 +00:00
|
|
|
|
2004-05-01 09:55:48 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
2004-01-23 19:26:09 +00:00
|
|
|
INSTALLS_SHLIB= yes
|
2006-02-23 10:40:44 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2006-06-10 16:44:10 +00:00
|
|
|
USE_GCC= 3.2+
|
2001-05-19 17:09:56 +00:00
|
|
|
|
2004-05-01 09:55:48 +00:00
|
|
|
MAN1= fontforge.1 sfddiff.1
|
2001-05-19 17:09:56 +00:00
|
|
|
|
2006-01-24 12:10:53 +00:00
|
|
|
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
|
|
|
|
|
2003-10-23 14:44:26 +00:00
|
|
|
post-extract:
|
|
|
|
${MKDIR} ${WRKDIR}/html ${WRKSRC}/cidmap
|
2006-04-09 00:13:48 +00:00
|
|
|
for doc in ${DOCFILES} ; \
|
2006-04-09 18:19:15 +00:00
|
|
|
do ${TAR} -xjC ${WRKDIR}/html -f ${DISTDIR}/$${doc} ; \
|
2006-01-24 12:10:53 +00:00
|
|
|
done
|
2004-01-22 14:58:40 +00:00
|
|
|
${TAR} -xzC ${WRKSRC}/cidmap -f ${WRKDIR}/html/cidmaps.tgz
|
2003-10-23 14:44:26 +00:00
|
|
|
${RM} ${WRKDIR}/html/cidmaps.tgz
|
2004-01-22 14:58:40 +00:00
|
|
|
|
2006-04-09 00:13:48 +00:00
|
|
|
.if !defined(FONTFORGE_NO_PLUGINS)
|
|
|
|
post-build:
|
|
|
|
cd ${WRKSRC}/plugins; ${GMAKE}
|
|
|
|
.endif
|
|
|
|
|
2002-03-12 01:24:13 +00:00
|
|
|
post-install:
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR}
|
2006-04-09 00:13:48 +00:00
|
|
|
.if !defined(FONTFORGE_NO_PLUGINS)
|
|
|
|
${MKDIR} ${PREFIX}/share/fontforge/plugins
|
|
|
|
(cd ${WRKSRC}/plugins; ${INSTALL_DATA} .libs/* ${PREFIX}/share/fontforge/plugins )
|
|
|
|
.endif
|
2004-05-01 09:55:48 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2006-04-09 00:13:48 +00:00
|
|
|
${MKDIR} ${DOCSDIR}/flags ${DOCSDIR}/ja ${DOCSDIR}/ja/nonBMP/
|
2006-01-24 12:10:53 +00:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/html/*.* ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/html/flags/* ${DOCSDIR}/flags
|
2006-04-09 00:13:48 +00:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/html/ja/*.* ${DOCSDIR}/ja
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/html/ja/nonBMP/*.* ${DOCSDIR}/ja/nonBMP
|
2002-02-22 06:52:23 +00:00
|
|
|
.endif
|
2001-05-19 17:09:56 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|