# New ports collection makefile for: print/freetype-tools # Date created: Jul 29, 2005 # Whom: rafan@infor.org # # $FreeBSD$ # PORTNAME= freetype-tools PORTVERSION= 1.3.1 PORTREVISION= 9 CATEGORIES= print MASTER_SITES= SF/freetype/freetype/${PORTVERSION} \ http://sunsite.cnlab-switch.ch/ftp/mirror/freetype/freetype1/ \ http://www.funet.fi/pub/mirrors/ftp.freetype.org/freetype1/ \ http://ftp.sunet.se/pub/text-processing/freetype/freetype1/ \ ${MASTER_SITE_RINGSERVER:S,%SUBDIR%,graphics/freetype/&,} \ ftp://ftp.freetype.org/freetype/freetupe1/ DISTNAME= freetype-${PORTVERSION} MAINTAINER= rafan@FreeBSD.org COMMENT= Tools for FreeType 1 LIB_DEPENDS= ttf.4:${PORTSDIR}/print/freetype RUN_DEPENDS= ${LOCALBASE}/lib/libkpathsea.a:${PORTSDIR}/print/teTeX-base \ t1asm:${PORTSDIR}/print/t1utils BUILD_DEPENDS:= ${RUN_DEPENDS} USE_GMAKE= yes USE_AUTOTOOLS= libtool CONFIGURE_ARGS= --disable-nls --enable-static --enable-shared TEXMFMAIN= ${PREFIX}/share/texmf MAN1= ttf2bdf.1 ttf2tfm.1 ttf2pk.1 PORTSCOUT= limit:^1\. post-patch: @${REINPLACE_CMD} -e 's|$${CONFIG_SHELL-/bin/sh} $$ac_aux_dir|$$ac_aux_dir|' \ ${WRKSRC}/configure @${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \ 's|LIBTOOL =.*|LIBTOOL = ${LIBTOOL}|' @${FIND} ${WRKSRC} -name '*.orig' -delete @${REINPLACE_CMD} -e 's|^PROGRAMS = t1asm|PROGRAMS =|' \ ${WRKSRC}/contrib/ttf2pfb/Makefile.in post-build: @cd ${WRKSRC}/contrib/ttf2bdf && ./configure --prefix=${PREFIX} && ${GMAKE} @cd ${WRKSRC}/contrib/ttf2pfb && ./configure --prefix=${PREFIX} && ${GMAKE} @cd ${WRKSRC}/contrib/ttf2pk && ./configure --prefix=${PREFIX} --with-kpathsea-dir=${LOCALBASE} && ${GMAKE} @cd ${WRKSRC}/contrib/ttfbanner && ./configure --prefix=${PREFIX} && ${GMAKE} do-install: @cd ${WRKSRC}/contrib/ttf2bdf && ${GMAKE} install @cd ${WRKSRC}/contrib/ttf2pfb && ${GMAKE} install @cd ${WRKSRC}/contrib/ttf2pk && ${GMAKE} install @cd ${WRKSRC}/contrib/ttfbanner && ${GMAKE} install @${MKDIR} ${TEXMFMAIN}/ttf2pk @for f in ${WRKSRC}/contrib/ttf2pk/data/*; do \ ${INSTALL_DATA} $$f ${TEXMFMAIN}/ttf2pk; \ done @${LN} -fs ${TEXMFMAIN}/ttf2pk ${TEXMFMAIN}/ttf2tfm .include