# New ports collection makefile for: pfaedit # Date created: 25 March 2001 # Whom: KANOU Hiroki # # $FreeBSD$ # PORTNAME= pfaedit PORTVERSION= 20${DIST_VER} CATEGORIES= print MASTER_SITES= http://pfaedit.sourceforge.net/ DISTFILES= ${EXTRACT_ONLY} .if !defined(NOPORTDOCS) DISTFILES+= ${DOCFILE} .endif MAINTAINER= kanou@mil.allnet.ne.jp LIB_DEPENDS= 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 USE_GMAKE= yes USE_XLIB= yes GNU_CONFIGURE= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" WRKSRC= ${WRKDIR}/${PORTNAME} ALL_TARGET= pfaedit MAN1= pfaedit.1 sfddiff.1 DIST_VER= 020507 EXTRACT_ONLY= ${PORTNAME}_full-${DIST_VER}.tgz cidmaps.tgz .if !defined(NOPORTDOCS) DOC_VER= 020416 DOCFILE= ${PORTNAME}_htdocs-${DOC_VER}.tgz .endif .if !defined(NOPORTDOCS) post-extract: ${MKDIR} ${WRKDIR}/html ${WRKSRC}/cidmap ${TAR} -xzC ${WRKDIR}/html -f ${DISTDIR}/${DOCFILE} ${RM} ${WRKDIR}/html/cidmaps.tgz ${MV} ${WRKDIR}/*.cidmap ${WRKSRC}/cidmap .endif post-patch: ${PERL} -pi.orig -e \ 's,/usr/include/freetype2,${PREFIX}/include/freetype2 -I${PREFIX}/include,g' \ ${WRKSRC}/configure ${WRKSRC}/configure.in \ ${WRKSRC}/configure.pfaedit ${WRKSRC}/configure.pfaedit.in \ ${WRKSRC}/configure.static.in \ ${WRKSRC}/configure.ttfmod ${WRKSRC}/configure.ttfmod.in ${PERL} -pi.orig -e 's,/usr/share/,${PREFIX}/share/,g' \ ${WRKSRC}/pfaedit/pfaedit.1 ${PERL} -pi.orig -e 's,/usr/pkg/,${PREFIX}/,g' \ ${WRKSRC}/*/[mM]akefile.* post-install: ${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR} .if !defined(NOPORTDOCS) ${INSTALL_DATA} ${WRKDIR}/html/* ${DOCSDIR} .endif .include