everything at once. Sometime, rename post-install into a options helper target. I did not fix ports that were such a mess that I could not figure out what they really wanted to do. I also did not change ports that had some version of an auto-plist code in post-install, for the same reason. With hat: portmgr Sponsored by: Absolight
45 lines
1 KiB
Makefile
45 lines
1 KiB
Makefile
# Created by: sada
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mikachan
|
|
PORTVERSION= 9.1
|
|
CATEGORIES= japanese x11-fonts
|
|
MASTER_SITES= http://mikachan.sourceforge.jp/
|
|
PKGNAMEPREFIX= ja-font-
|
|
DISTNAME= ver${PORTVERSION}
|
|
EXTRACT_SUFX= .lzh
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= TsurutaniNaoki@gmail.com
|
|
COMMENT= Handwritten Japanese TrueType fonts by Mika-chan
|
|
|
|
EXTRACT_DEPENDS= lha:archivers/lha
|
|
|
|
USES= fonts:fc
|
|
FONTNAME= TTF
|
|
EXTRACT_CMD= lha
|
|
EXTRACT_BEFORE_ARGS= pq
|
|
EXTRACT_AFTER_ARGS= > ${WRKSRC}/mika.ttf
|
|
NO_CDROM= Do not sell distfile
|
|
NO_ARCH= yes
|
|
NO_BUILD= yes
|
|
NO_WRKSUBDIR= yes
|
|
SUB_FILES= pkg-install
|
|
SUB_LIST= DIRFILE="${DATADIR}/fonts.dir"
|
|
PKGINSTALL= ${WRKDIR}/pkg-install
|
|
PKGDEINSTALL= ${WRKDIR}/pkg-install
|
|
PLIST_FILES= %%DATADIR%%/fonts.dir \
|
|
%%DATADIR%%/mika.ttf \
|
|
%%FONTSDIR%%/mika.ttf
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
${INSTALL_DATA} \
|
|
${WRKSRC}/mika.ttf ${FILESDIR}/fonts.dir \
|
|
${STAGEDIR}${DATADIR}
|
|
|
|
@${MKDIR} ${STAGEDIR}${FONTSDIR}
|
|
cd ${STAGEDIR}${FONTSDIR} && \
|
|
${LN} -s ../../../${DATADIR_REL}/*.ttf .
|
|
|
|
.include <bsd.port.mk>
|