aboutsummaryrefslogtreecommitdiff
path: root/korean
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2011-08-10 21:33:29 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2011-08-10 21:33:29 +0000
commit7a1dfa66e63a1624cb5f988e6f6c47f3be68a55e (patch)
treef43ddcaf9e89bfa813e547089ae9c7e45fd565dc /korean
parent85303cd2d306dc3425e363be44f39a7481190f2e (diff)
downloadports-7a1dfa66e63a1624cb5f988e6f6c47f3be68a55e.tar.gz
ports-7a1dfa66e63a1624cb5f988e6f6c47f3be68a55e.zip
Notes
Diffstat (limited to 'korean')
-rw-r--r--korean/nanumcoding-ttf/Makefile18
-rw-r--r--korean/nanumcoding-ttf/pkg-plist7
2 files changed, 15 insertions, 10 deletions
diff --git a/korean/nanumcoding-ttf/Makefile b/korean/nanumcoding-ttf/Makefile
index 4590ff1890b2..880643b813f5 100644
--- a/korean/nanumcoding-ttf/Makefile
+++ b/korean/nanumcoding-ttf/Makefile
@@ -25,8 +25,16 @@ BUILD_DEPENDS+= ${LOCALBASE}/bin/mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
NO_WRKSUBDIR= yes
USE_ZIP= yes
-FONTSDIR= lib/X11/fonts/nanum-coding-ttf
-PLIST_SUB+= FONTSDIR=${FONTSDIR}
+FONTSDIR= lib/X11/fonts/nanum-coding${PKGNAMESUFFIX}
+FONTLIST= NanumGothicCoding \
+ NanumGothicCoding-Bold
+
+PLIST_DIRS= ${FONTSDIR}
+.for f in ${FONTLIST}
+PLIST_FILES+= ${FONTSDIR}/${f}.ttf
+.endfor
+PLIST_FILES+= ${FONTSDIR}/fonts.dir \
+ ${FONTSDIR}/fonts.scale
post-extract:
@# XXX File names are encoded in EUC-KR.
@@ -40,11 +48,15 @@ do-build:
do-install:
${MKDIR} ${PREFIX}/${FONTSDIR}
- ${INSTALL_DATA} ${WRKSRC}/*.ttf ${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>
diff --git a/korean/nanumcoding-ttf/pkg-plist b/korean/nanumcoding-ttf/pkg-plist
deleted file mode 100644
index a47b0d9ed858..000000000000
--- a/korean/nanumcoding-ttf/pkg-plist
+++ /dev/null
@@ -1,7 +0,0 @@
-%%FONTSDIR%%/NanumGothicCoding-Bold.ttf
-%%FONTSDIR%%/NanumGothicCoding.ttf
-%%FONTSDIR%%/fonts.dir
-%%FONTSDIR%%/fonts.scale
-@dirrm %%FONTSDIR%%
-@exec fc-cache -s %D/%%FONTSDIR%% 2>/dev/null || true
-@unexec fc-cache -s %D/%%FONTSDIR%% 2>/dev/null || true