2001-05-19 13:09:56 -04:00
|
|
|
# New ports collection makefile for: pfaedit
|
|
|
|
# Date created: 25 March 2001
|
|
|
|
# Whom: KANOU Hiroki <kanou@mil.allnet.ne.jp>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= pfaedit
|
2002-01-22 22:06:45 -05:00
|
|
|
PORTVERSION= 20${DIST_VER}
|
2001-05-19 13:09:56 -04:00
|
|
|
CATEGORIES= print
|
2001-11-25 12:17:36 -05:00
|
|
|
MASTER_SITES= http://pfaedit.sourceforge.net/
|
2002-03-11 20:24:13 -05:00
|
|
|
DISTFILES= ${EXTRACT_ONLY}
|
2002-02-22 01:52:23 -05:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-03-11 20:24:13 -05:00
|
|
|
DISTFILES+= ${DOCFILE}
|
2002-02-22 01:52:23 -05:00
|
|
|
.endif
|
2001-05-19 13:09:56 -04:00
|
|
|
|
|
|
|
MAINTAINER= kanou@mil.allnet.ne.jp
|
|
|
|
|
|
|
|
LIB_DEPENDS= tiff.4:${PORTSDIR}/graphics/tiff \
|
|
|
|
jpeg.9:${PORTSDIR}/graphics/jpeg \
|
2001-09-10 22:59:20 -04:00
|
|
|
png.5:${PORTSDIR}/graphics/png \
|
2002-02-22 01:52:23 -05:00
|
|
|
ungif.5:${PORTSDIR}/graphics/libungif \
|
2002-03-12 06:51:15 -05:00
|
|
|
freetype.9:${PORTSDIR}/print/freetype2
|
2001-05-19 13:09:56 -04:00
|
|
|
|
2001-11-25 12:17:36 -05:00
|
|
|
USE_GMAKE= yes
|
2001-05-19 13:09:56 -04:00
|
|
|
USE_XLIB= yes
|
2002-06-29 15:00:22 -04:00
|
|
|
USE_REINPLACE= yes
|
2001-05-19 13:09:56 -04:00
|
|
|
GNU_CONFIGURE= yes
|
2002-05-21 11:46:54 -04:00
|
|
|
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \
|
2002-07-30 14:40:15 -04:00
|
|
|
CFLAGS="$(CFLAGS) -I${LOCALBASE}/include -I${LOCALBASE}/include/freetype2"
|
2001-05-19 13:09:56 -04:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
ALL_TARGET= pfaedit
|
|
|
|
|
2002-03-11 20:24:13 -05:00
|
|
|
MAN1= pfaedit.1 sfddiff.1
|
2001-05-19 13:09:56 -04:00
|
|
|
|
2002-08-30 22:48:48 -04:00
|
|
|
DIST_VER= 020829
|
2002-03-11 20:24:13 -05:00
|
|
|
EXTRACT_ONLY= ${PORTNAME}_full-${DIST_VER}.tgz cidmaps.tgz
|
2002-02-22 01:52:23 -05:00
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
2002-08-21 23:59:19 -04:00
|
|
|
DOC_VER= 020818
|
2002-03-11 20:24:13 -05:00
|
|
|
DOCFILE= ${PORTNAME}_htdocs-${DOC_VER}.tgz
|
2002-02-22 01:52:23 -05:00
|
|
|
.endif
|
2001-11-25 12:17:36 -05:00
|
|
|
|
2002-03-11 20:24:13 -05:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
post-extract:
|
2002-05-13 22:14:05 -04:00
|
|
|
${MKDIR} ${WRKDIR}/html ${WRKSRC}/cidmap
|
2002-03-11 20:24:13 -05:00
|
|
|
${TAR} -xzC ${WRKDIR}/html -f ${DISTDIR}/${DOCFILE}
|
2002-05-13 22:14:05 -04:00
|
|
|
${RM} ${WRKDIR}/html/cidmaps.tgz
|
|
|
|
${MV} ${WRKDIR}/*.cidmap ${WRKSRC}/cidmap
|
2002-03-11 20:24:13 -05:00
|
|
|
.endif
|
|
|
|
|
2001-11-25 12:17:36 -05:00
|
|
|
post-patch:
|
2002-06-29 15:00:22 -04:00
|
|
|
${REINPLACE_CMD} -e \
|
2002-02-22 01:52:23 -05:00
|
|
|
's,/usr/include/freetype2,${PREFIX}/include/freetype2 -I${PREFIX}/include,g' \
|
|
|
|
${WRKSRC}/configure ${WRKSRC}/configure.in \
|
|
|
|
${WRKSRC}/configure.pfaedit ${WRKSRC}/configure.pfaedit.in \
|
2002-03-11 20:24:13 -05:00
|
|
|
${WRKSRC}/configure.static.in \
|
2002-02-22 01:52:23 -05:00
|
|
|
${WRKSRC}/configure.ttfmod ${WRKSRC}/configure.ttfmod.in
|
2002-06-29 15:00:22 -04:00
|
|
|
${REINPLACE_CMD} -e 's,/usr/share/,${PREFIX}/share/,g' \
|
2001-11-25 12:17:36 -05:00
|
|
|
${WRKSRC}/pfaedit/pfaedit.1
|
2002-06-29 15:00:22 -04:00
|
|
|
${REINPLACE_CMD} -e 's,/usr/pkg/,${PREFIX}/,g' ${WRKSRC}/*/[mM]akefile.*
|
2001-11-25 12:17:36 -05:00
|
|
|
|
2002-03-11 20:24:13 -05:00
|
|
|
post-install:
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR}
|
2002-02-22 01:52:23 -05:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-05-13 22:14:05 -04:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/html/* ${DOCSDIR}
|
2002-02-22 01:52:23 -05:00
|
|
|
.endif
|
2001-05-19 13:09:56 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|