mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
24054bf9f8
- Move obsolete pkg-req to inside pkg-install/pkg-deinstall
67 lines
2.1 KiB
Makefile
67 lines
2.1 KiB
Makefile
# Created by: Yoshiro MIHIRA <sanpei@sanpei.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= kanji
|
|
PORTVERSION?= 1.0
|
|
PORTREVISION?= 5
|
|
CATEGORIES= japanese x11-fonts
|
|
MASTER_SITES= ${MASTER_SITE_PORTS_JP}
|
|
MASTER_SITE_SUBDIR= ${DISTNAME}
|
|
PKGNAMESUFFIX?= 18
|
|
DISTNAME= ${PORTNAME}${PKGNAMESUFFIX}
|
|
DISTFILES?= 573.z 574.z 575.z 576.z 577.z 578.z 579.z 580.z 581.z
|
|
|
|
MAINTAINER= sanpei@FreeBSD.org
|
|
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
|
|
|
|
EXTRACT_CMD= ${GZCAT}
|
|
EXTRACT_BEFORE_ARGS=
|
|
EXTRACT_AFTER_ARGS= | ${AWK} '/bin\/sh/{P=1} {if (P==1) print;}' | \
|
|
${LOCALBASE}/bin/gunshar -d $(WRKDIR)
|
|
PKGINSTALL= ${WRKSRC}/INSTALL
|
|
PKGDEINSTALL= ${WRKSRC}/DEINSTALL
|
|
MAKE_ENV= FONTSDIR=${FONTSDIR}
|
|
PLIST_SUB= FONTSDIR=${FONTSDIR}
|
|
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
|
|
@${GUNZIP_CMD} ${WRKDIR}/*.Z
|
|
|
|
post-patch:
|
|
@(${GZCAT} ${DISTDIR}/${DIST_SUBDIR}/${README_FILE} \
|
|
| ${AWK} '/^#! \/bin\/sh/{i=1} i==0{print}' \
|
|
> ${WRKSRC}/README.${DISTNAME})
|
|
|
|
pre-install:
|
|
@for file in INSTALL DEINSTALL; do \
|
|
${SED} -e 's,%%FONTSDIR%%,${FONTSDIR},g' \
|
|
-e 's,%%LOCALBASE%%,${LOCALBASE},g' \
|
|
< ${FILESDIR}/$${file}.tmpl > ${WRKSRC}/$${file}; \
|
|
done
|
|
|
|
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.mk>
|