freebsd-ports/korean/nanumfonts-otf/Makefile
Baptiste Daroussin 4a4ec28d37 Convert all :U to :tu and :L to :tl
Since FreeBSD 8.4 and FreeBSD 9.1 make(1) do support :tu and :tl as a
replacement for :U and :L (which has been marked as deprecated)

bmake which is the default on FreeBSD 10+ only support by default
:tu/:tl a hack has been added at the time to support :U and :L to ease
migration. This hack is now not necessary anymore

Note that this makes the ports tree incompatible with make(1) from
FreeBSD 8.3 or earlier

With hat:	portmgr
2014-05-05 09:45:36 +00:00

64 lines
1.7 KiB
Makefile

# $FreeBSD$
PORTNAME= nanumfonts
PORTVERSION= 3.1
CATEGORIES= korean
MASTER_SITES= http://cdn.naver.com/naver/NanumFont/fontfiles/ \
LOCAL
MASTER_SITE_SUBDIR= jkim
PKGNAMESUFFIX= -${FONTTYPE}
DISTFILES= NanumFont_${FONTTYPE:tu}_ALL${EXTRACT_SUFX} \
NanumFontSetup_${FONTTYPE:tu}_GOTHICECO${EXTRACT_SUFX} \
NanumFontSetup_${FONTTYPE:tu}_GOTHICLIGHT${EXTRACT_SUFX} \
NanumFontSetup_${FONTTYPE:tu}_MYUNGJOECO${EXTRACT_SUFX}
MAINTAINER= jkim@FreeBSD.org
COMMENT= Nanum family Hangul fonts (${FONTFORMAT})
LICENSE= OFL11
BUILD_DEPENDS= ${LOCALBASE}/bin/mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
${LOCALBASE}/bin/mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale
DISTINFO_FILE= ${PKGDIR}/distinfo.${FONTTYPE}
NO_WRKSUBDIR= yes
USES= zip
FONTTYPE?= otf
FONTFORMAT?= OpenType
FONTSDIR= lib/X11/fonts/nanum-${FONTTYPE}
FONTLIST= NanumBrush \
NanumGothic \
NanumGothicBold \
NanumGothicEco \
NanumGothicEcoBold \
NanumGothicEcoExtraBold \
NanumGothicExtraBold \
NanumGothicLight \
NanumMyeongjo \
NanumMyeongjoBold \
NanumMyeongjoEco \
NanumMyeongjoEcoBold \
NanumMyeongjoEcoExtraBold \
NanumMyeongjoExtraBold \
NanumPen
FONTFILES= ${FONTLIST:S/$/.${FONTTYPE}/} fonts.dir fonts.scale
PLIST_DIRS= ${FONTSDIR}
PLIST_FILES= ${FONTFILES:S|^|${FONTSDIR}/|}
do-build:
${LOCALBASE}/bin/mkfontscale ${WRKSRC}
${LOCALBASE}/bin/mkfontdir ${WRKSRC}
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/${FONTSDIR}
${INSTALL_DATA} ${FONTFILES:S|^|${WRKSRC}/|} ${STAGEDIR}${PREFIX}/${FONTSDIR}
post-install:
@${ECHO_CMD} "@exec fc-cache -s %D/${FONTSDIR} 2>/dev/null || true" >> ${TMPPLIST}
@${ECHO_CMD} "@unexec fc-cache -s %D/${FONTSDIR} 2>/dev/null || true" >> ${TMPPLIST}
.include <bsd.port.mk>