aboutsummaryrefslogtreecommitdiff
path: root/japanese/epson-ttfonts/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'japanese/epson-ttfonts/Makefile')
-rw-r--r--japanese/epson-ttfonts/Makefile22
1 files changed, 18 insertions, 4 deletions
diff --git a/japanese/epson-ttfonts/Makefile b/japanese/epson-ttfonts/Makefile
index 1cb6cf611a00..861e95d805a5 100644
--- a/japanese/epson-ttfonts/Makefile
+++ b/japanese/epson-ttfonts/Makefile
@@ -6,14 +6,15 @@
PORTNAME= epson-ttfonts
PORTVERSION= 3.0.20050220
+PORTREVISION= 1
CATEGORIES= japanese x11-fonts
-MASTER_SITES= http://www2.i-love-epson.co.jp/download/printer/driver/win/page/
+MASTER_SITES= # empty
DISTNAME= ${EPSONFONTS}
-EXTRACT_SUFX=.exe
+EXTRACT_SUFX= .exe
DIST_SUBDIR= epson
MAINTAINER= maho@FreeBSD.org
-COMMENT= EPSON TrueTypeFontVer.3.0, only usable with EPSON printer
+COMMENT= EPSON TrueTypeFontVer.3.0
RESTRICTED= "Redistribution not permitted; only usable with EPSON printer."
NO_CDROM= Redistribution not permitted in any form
@@ -28,6 +29,18 @@ FONTSDIR= lib/X11/fonts/TrueType
MAKE_ENV= FONTSDIR=${FONTSDIR}
PLIST_SUB= FONTSDIR=${FONTSDIR}
+LEGAL_SUB= DISTDIR=${DISTDIR} \
+ DIST_SUBDIR=${DIST_SUBDIR} \
+ DIST_FILE=${DISTNAME}${EXTRACT_SUFX}
+
+.include <bsd.port.pre.mk>
+
+.if !exists(${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX})
+ECHO_MSG= ${PRINTF}
+IGNORE!= ${SED} ${LEGAL_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
+ -e s,$$,\\\\n, < ${FILESDIR}/legal.txt
+.endif
+
do-extract:
@${MKDIR} ${WRKDIR}
@cd ${WRKDIR} ; \
@@ -48,4 +61,5 @@ do-install:
${FILESDIR}/fonts.dir.epson \
${PREFIX}/${FONTSDIR}
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
-.include <bsd.port.mk>
+
+.include <bsd.port.post.mk>