freebsd-ports/korean/aleefonts-ttf/Makefile
Jung-uk Kim 6cd5b60b26 - Update to 12 and grab maintainership.
- Clarify the lincense.  It was relicensed under the Artistic License 1.0 or
later by the author since version 12.
2011-08-10 21:12:18 +00:00

52 lines
1.4 KiB
Makefile

# New ports collection makefile for: aleefonts-ttf
# Date created: 23 July 2004
# Whom: Hye-Shik Chang
#
# $FreeBSD$
PORTNAME= aleefonts
PORTVERSION= 12
CATEGORIES= korean x11-fonts
MASTER_SITES= DEBIAN
MASTER_SITE_SUBDIR= pool/main/t/ttf-alee
PKGNAMESUFFIX= -ttf
DISTNAME= ttf-alee_${PORTVERSION}
MAINTAINER= jkim@FreeBSD.org
COMMENT= A-Lee's Hangul truetype fonts #'
LICENSE= ART10
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS+= ${LOCALBASE}/bin/mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
${LOCALBASE}/bin/mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale
WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/}
FONTSDIR= lib/X11/fonts/alee${PKGNAMESUFFIX}
FONTLIST= Bandal EunjinNakseo Bangwool Eunjin Guseul
PLIST_DIRS= ${FONTSDIR}
.for f in ${FONTLIST}
PLIST_FILES+= ${FONTSDIR}/${f}.ttf
.endfor
PLIST_FILES+= ${FONTSDIR}/fonts.dir \
${FONTSDIR}/fonts.scale
do-build:
${LOCALBASE}/bin/mkfontscale ${WRKSRC}
${LOCALBASE}/bin/mkfontdir ${WRKSRC}
do-install:
${MKDIR} ${PREFIX}/${FONTSDIR}
.for f in ${FONTLIST}
${INSTALL_DATA} ${WRKSRC}/${f}.ttf ${PREFIX}/${FONTSDIR}
.endfor
${INSTALL_DATA} ${WRKSRC}/fonts.dir ${PREFIX}/${FONTSDIR}
${INSTALL_DATA} ${WRKSRC}/fonts.scale ${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}
@-${LOCALBASE}/bin/fc-cache -s ${PREFIX}/${FONTSDIR} 2>/dev/null
.include <bsd.port.mk>