aboutsummaryrefslogtreecommitdiff
path: root/japanese/kanji18/Makefile
diff options
context:
space:
mode:
authorAntoine Brodin <antoine@FreeBSD.org>2014-02-15 13:04:30 +0000
committerAntoine Brodin <antoine@FreeBSD.org>2014-02-15 13:04:30 +0000
commit24054bf9f85fd6d277511c5bf4cafadf655bc75b (patch)
tree1642765f88caccc7b156f7382e3704efd49ddf02 /japanese/kanji18/Makefile
parent3b91c295e91d72e3bb077d6605524bc177e09df9 (diff)
downloadports-24054bf9f85fd6d277511c5bf4cafadf655bc75b.tar.gz
ports-24054bf9f85fd6d277511c5bf4cafadf655bc75b.zip
- Stage support
- Move obsolete pkg-req to inside pkg-install/pkg-deinstall
Notes
Notes: svn path=/head/; revision=344383
Diffstat (limited to 'japanese/kanji18/Makefile')
-rw-r--r--japanese/kanji18/Makefile27
1 files changed, 11 insertions, 16 deletions
diff --git a/japanese/kanji18/Makefile b/japanese/kanji18/Makefile
index 99cdcac24013..6e5e38ac309e 100644
--- a/japanese/kanji18/Makefile
+++ b/japanese/kanji18/Makefile
@@ -3,7 +3,7 @@
PORTNAME= kanji
PORTVERSION?= 1.0
-PORTREVISION?= 4
+PORTREVISION?= 5
CATEGORIES= japanese x11-fonts
MASTER_SITES= ${MASTER_SITE_PORTS_JP}
MASTER_SITE_SUBDIR= ${DISTNAME}
@@ -16,16 +16,15 @@ COMMENT= X11 ${PKGNAMESUFFIX}-dot Kanji font
EXTRACT_DEPENDS= gunshar:${PORTSDIR}/archivers/sharutils
BUILD_DEPENDS= mkbold:${PORTSDIR}/x11-fonts/mkbold-mkitalic \
+ bdftopcf:${PORTSDIR}/x11-fonts/bdftopcf \
mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale
+RUN_DEPENDS= mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir
DIST_SUBDIR= ${DISTNAME}
FONTSDIR= lib/X11/fonts/local
NO_WRKSUBDIR= yes
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
-
EXTRACT_CMD= ${GZCAT}
EXTRACT_BEFORE_ARGS=
EXTRACT_AFTER_ARGS= | ${AWK} '/bin\/sh/{P=1} {if (P==1) print;}' | \
@@ -38,6 +37,8 @@ README_FILE?= 573.z
RESIZESED_FILE?= 18to16.sed
RESIZED_ALIAS_FILE?= kanji16.alias
+OPTIONS_DEFINE= DOCS
+
post-extract:
@(cd $(WRKSRC); ${CAT} ${DISTNAME}.?? | uudecode)
@${CP} -p ${FILESDIR}/Makefile.in ${WRKDIR}/Makefile
@@ -54,18 +55,12 @@ pre-install:
-e 's,%%LOCALBASE%%,${LOCALBASE},g' \
< ${FILESDIR}/$${file}.tmpl > ${WRKSRC}/$${file}; \
done
- @${SETENV} PKG_PREFIX=${PREFIX} \
- ${SH} ${PKGREQ} ${PKGNAME} INSTALL
post-install:
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${PREFIX}/share/doc/${DISTNAME}
- @${INSTALL_DATA} ${WRKSRC}/${RESIZESED_FILE} ${PREFIX}/share/doc/${DISTNAME}/
- @${INSTALL_DATA} ${WRKSRC}/README.${DISTNAME} ${PREFIX}/share/doc/${DISTNAME}/
- @${INSTALL_DATA} ${WRKSRC}/${RESIZED_ALIAS_FILE} ${PREFIX}/share/doc/${DISTNAME}/
- @${INSTALL_DATA} ${WRKSRC}/${DISTNAME}.alias ${PREFIX}/share/doc/${DISTNAME}/
-.endif
- @${SETENV} PKG_PREFIX=${PREFIX} \
- ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/${DISTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/${RESIZESED_FILE} ${STAGEDIR}${PREFIX}/share/doc/${DISTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/README.${DISTNAME} ${STAGEDIR}${PREFIX}/share/doc/${DISTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/${RESIZED_ALIAS_FILE} ${STAGEDIR}${PREFIX}/share/doc/${DISTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/${DISTNAME}.alias ${STAGEDIR}${PREFIX}/share/doc/${DISTNAME}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>