blob: 1c85f908316bd22721285c07d668ce3f28b1b3d6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# New ports collection makefile for: pfaedit
# Date created: 25 March 2001
# Whom: KANOU Hiroki <kanou@mil.allnet.ne.jp>
#
# $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
USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \
CFLAGS="$(CFLAGS) -I${LOCALBASE}/include -I${LOCALBASE}/include/freetype2"
WRKSRC= ${WRKDIR}/${PORTNAME}
ALL_TARGET= pfaedit
MAN1= pfaedit.1 sfddiff.1
DIST_VER= 020728
EXTRACT_ONLY= ${PORTNAME}_full-${DIST_VER}.tgz cidmaps.tgz
.if !defined(NOPORTDOCS)
DOC_VER= 020626
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:
${REINPLACE_CMD} -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
${REINPLACE_CMD} -e 's,/usr/share/,${PREFIX}/share/,g' \
${WRKSRC}/pfaedit/pfaedit.1
${REINPLACE_CMD} -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 <bsd.port.mk>
|