aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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