# New ports collection makefile for: fontforge # Date created: 25 March 2001 # Whom: KANOU Hiroki # # $FreeBSD$ # PORTNAME= fontforge PORTVERSION= 20071002 CATEGORIES= print MASTER_SITES= SF DISTFILES= ${EXTRACT_ONLY} ${DOCFILES} EXTRACT_ONLY= ${PORTNAME}_full-${PORTVERSION}.tar.bz2 MAINTAINER= cyberbotx@cyberbotx.com 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 .if defined(FONTFORGE_WITH_TTF_DEBUGGER) FREETYPE_VERSION= 2.1.10 EXTRACT_ONLY+= freetype-${FREETYPE_VERSION}.tar.bz2 .endif .if !defined(NOPORTDOCS) DOC_VERSION= ${PORTVERSION} DOCFILES= ${PORTNAME}_htdocs-${DOC_VERSION}.tar.bz2 .endif USE_BZIP2= yes USE_GETTEXT= yes USE_GMAKE= yes USE_ICONV= yes USE_XLIB= 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" \ CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/freetype2" USE_LDCONFIG= yes GNU_CONFIGURE= yes USE_AUTOTOOLS= libtool:15 USE_GCC= 3.2+ MAN1= fontforge.1 fontimage.1 fontlint.1 sfddiff.1 .if defined(FONTFORGE_NO_PLUGINS) PLIST_SUB+= NO_PLUGINS="@comment " .else PLIST_SUB+= NO_PLUGINS="" .endif pre-everything:: .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 ${DOCFILES} ; \ do ${TAR} -xjC ${WRKDIR}/html -f ${DISTDIR}/$${doc} ; \ done ${TAR} -xzC ${WRKSRC}/cidmap -f ${WRKDIR}/html/cidmaps.tgz ${RM} ${WRKDIR}/html/cidmaps.tgz .if !defined(FONTFORGE_NO_PLUGINS) post-build: cd ${WRKSRC}/plugins; ${GMAKE} .endif post-install: ${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR} .if !defined(FONTFORGE_NO_PLUGINS) ${MKDIR} ${PREFIX}/share/fontforge/plugins (cd ${WRKSRC}/plugins; ${INSTALL_DATA} .libs/* ${PREFIX}/share/fontforge/plugins ) .endif .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR}/flags ${INSTALL_DATA} ${WRKDIR}/html/*.* ${DOCSDIR} ${INSTALL_DATA} ${WRKDIR}/html/flags/*.* ${DOCSDIR}/flags .endif .include