aboutsummaryrefslogtreecommitdiffstats
path: root/print/amspsfnt
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2005-04-13 00:26:21 +0800
committerhrs <hrs@FreeBSD.org>2005-04-13 00:26:21 +0800
commit3cb3bc68cb3da89a9ed3695deadb2d4286c55169 (patch)
treef39f5007e8e22de27bcb5f6795e03236431406aa /print/amspsfnt
parentcc9ec0ceb26ca4fc39f9a2cc6752bd5b57bd8535 (diff)
downloadfreebsd-ports-gnome-3cb3bc68cb3da89a9ed3695deadb2d4286c55169.tar.gz
freebsd-ports-gnome-3cb3bc68cb3da89a9ed3695deadb2d4286c55169.tar.zst
freebsd-ports-gnome-3cb3bc68cb3da89a9ed3695deadb2d4286c55169.zip
Support WITHOUT_X11 knob and bump PORTREVISION.
Diffstat (limited to 'print/amspsfnt')
-rw-r--r--print/amspsfnt/Makefile19
-rw-r--r--print/amspsfnt/pkg-plist6
2 files changed, 20 insertions, 5 deletions
diff --git a/print/amspsfnt/Makefile b/print/amspsfnt/Makefile
index d40c7d90df38..83c7a978e7cd 100644
--- a/print/amspsfnt/Makefile
+++ b/print/amspsfnt/Makefile
@@ -7,7 +7,7 @@
PORTNAME= amspsfnt
PORTVERSION= 1.0
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= print x11-fonts
MASTER_SITES= ftp://ftp.ams.org/pub/tex/psfonts/ams/
DISTNAME= amsps
@@ -16,15 +16,28 @@ EXTRACT_SUFX= -unix.tar.gz
MAINTAINER= hrs@FreeBSD.org
COMMENT= AMSFonts PostScript Fonts (Adobe Type 1 format)
+.if !defined(WITHOUT_X11)
BUILD_DEPENDS= ${LOCALBASE}/bin/type1inst:${PORTSDIR}/x11-fonts/p5-type1inst
+.endif
WRKSRC= ${WRKDIR}/amspsfnt
+PLIST_SUB= PLIST_X11=${PLIST_X11}
-FONTSDIR= share/fonts/amspsfont
+.if !defined(WITHOUT_X11)
+PLIST_X11= ""
SUB_FILES= pkg-message
+.else
+PLIST_X11= "@comment "
+.endif
+
+FONTSDIR= share/fonts/amspsfont
do-build:
+.if !defined(WITHOUT_X11)
(cd ${WRKSRC}/pfb; ${LOCALBASE}/bin/type1inst -nolog)
+.else
+ @${DO_NADA}
+.endif
do-install:
${MKDIR} ${PREFIX}/${FONTSDIR}/
@@ -32,7 +45,9 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/pfb/* ${PREFIX}/${FONTSDIR}/
${INSTALL_DATA} ${WRKSRC}/READ.ME ${PREFIX}/${FONTSDIR}/
+.if !defined(WITHOUT_X11)
post-install:
@${CAT} ${PKGMESSAGE}
+.endif
.include <bsd.port.mk>
diff --git a/print/amspsfnt/pkg-plist b/print/amspsfnt/pkg-plist
index 2956996481f2..1194334dd82e 100644
--- a/print/amspsfnt/pkg-plist
+++ b/print/amspsfnt/pkg-plist
@@ -68,8 +68,8 @@ share/fonts/amspsfont/wncyi10.pfb
share/fonts/amspsfont/wncyr10.pfb
share/fonts/amspsfont/wncysc10.pfb
share/fonts/amspsfont/wncyss10.pfb
-share/fonts/amspsfont/Fontmap
-share/fonts/amspsfont/fonts.dir
-share/fonts/amspsfont/fonts.scale
+%%PLIST_X11%%share/fonts/amspsfont/Fontmap
+%%PLIST_X11%%share/fonts/amspsfont/fonts.dir
+%%PLIST_X11%%share/fonts/amspsfont/fonts.scale
@dirrm share/fonts/amspsfont
@unexec /bin/rmdir %D/share/fonts 2>/dev/null || /usr/bin/true