aboutsummaryrefslogtreecommitdiffstats
path: root/print/amspsfnt/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'print/amspsfnt/Makefile')
-rw-r--r--print/amspsfnt/Makefile36
1 files changed, 20 insertions, 16 deletions
diff --git a/print/amspsfnt/Makefile b/print/amspsfnt/Makefile
index 18d5da9e81d4..47db18f47cd0 100644
--- a/print/amspsfnt/Makefile
+++ b/print/amspsfnt/Makefile
@@ -7,7 +7,7 @@
PORTNAME= amspsfnt
PORTVERSION= 1.0
-CATEGORIES= print
+CATEGORIES= print x11-fonts
MASTER_SITES= ftp://ftp.ams.org/pub/tex/psfonts/ams/
DISTNAME= amsps
EXTRACT_SUFX= -unix.tar.gz
@@ -15,28 +15,32 @@ EXTRACT_SUFX= -unix.tar.gz
MAINTAINER= ports@FreeBSD.org
COMMENT= AMSFonts PostScript Fonts (Adobe Type 1 format)
-BUILD_DEPENDS= $(LOCALBASE)/bin/type1inst:${PORTSDIR}/x11-fonts/p5-type1inst
+BUILD_DEPENDS= ${LOCALBASE}/bin/type1inst:${PORTSDIR}/x11-fonts/p5-type1inst
-WRKSRC= $(WRKDIR)/amspsfnt
-TEXDIR= $(PREFIX)/share/texmf
-AMSFNTDIR= $(TEXDIR)/fonts/ams
+SUB_FILES= pkg-message
+
+WRKSRC= ${WRKDIR}/amspsfnt
+TEXDIR?= ${PREFIX}/share/texmf
+AMSFNTDIR= ${TEXDIR}/fonts/ams
do-build:
- (cd ${WRKSRC}/pfb; $(LOCALBASE)/bin/type1inst -nolog -q)
+ (cd ${WRKSRC}/pfb; ${LOCALBASE}/bin/type1inst -nolog)
do-install:
- @${MKDIR} $(AMSFNTDIR)/tfm
- $(INSTALL_DATA) ${WRKSRC}/tfm/* $(AMSFNTDIR)/tfm
- @${MKDIR} $(AMSFNTDIR)/type1
- $(INSTALL_DATA) ${WRKSRC}/pfb/* $(AMSFNTDIR)/type1
- @${MKDIR} $(TEXDIR)/dvips/mapfiles.ams
- $(INSTALL_DATA) ${WRKSRC}/mapfiles/* $(TEXDIR)/dvips/mapfiles.ams
- @${MKDIR} $(PREFIX)/lib/afm
- $(INSTALL_DATA) ${WRKSRC}/afm/* $(PREFIX)/lib/afm
-
+ @${MKDIR} ${AMSFNTDIR}/tfm
+ ${INSTALL_DATA} ${WRKSRC}/tfm/* ${AMSFNTDIR}/tfm
+ @${MKDIR} ${AMSFNTDIR}/type1
+ ${INSTALL_DATA} ${WRKSRC}/pfb/* ${AMSFNTDIR}/type1
+ @${MKDIR} ${TEXDIR}/dvips/mapfiles.ams
+ ${INSTALL_DATA} ${WRKSRC}/mapfiles/* ${TEXDIR}/dvips/mapfiles.ams
+ @${MKDIR} ${PREFIX}/lib/afm
+ ${INSTALL_DATA} ${WRKSRC}/afm/* ${PREFIX}/lib/afm
.ifndef (NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
- $(INSTALL_DATA) ${WRKSRC}/READ.ME ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/READ.ME ${DOCSDIR}
.endif
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
.include <bsd.port.mk>