freebsd-ports/japanese/font-mona-ttf/Makefile
Mathieu Arnold f899c758a6 When there is a do-install target, do not use a post-install target, do
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
2016-07-19 11:04:13 +00:00

38 lines
951 B
Makefile

# Created by: MANTANI Nobutaka <nobutaka@FreeBSD.org>
# $FreeBSD$
PORTNAME= mona
PORTVERSION= 2.90
CATEGORIES= japanese x11-fonts
MASTER_SITES= SF/monafont/monafont/monafont-${PORTVERSION}
PKGNAMEPREFIX= ja-font-
PKGNAMESUFFIX= -ttf
DISTNAME= monafont-ttf-${PORTVERSION}
MAINTAINER= nobutaka@FreeBSD.org
COMMENT= TrueType Kanji fonts
USES= fonts:fc zip
FONTNAME= TTF
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
MAKE_ENV= FONTSDIR=${FONTSDIR:S,${PREFIX},,}
PLIST_FILES= %%DATADIR%%/fonts.dir \
%%DATADIR%%/mona.ttf \
%%FONTSDIR%%/mona.ttf
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/mona.ttf ${FILESDIR}/fonts.dir \
${STAGEDIR}${DATADIR}
@${MKDIR} ${STAGEDIR}${FONTSDIR}
cd ${STAGEDIR}${FONTSDIR} && \
${LN} -s ../../../${DATADIR_REL}/*.ttf .
.include <bsd.port.mk>