aboutsummaryrefslogtreecommitdiffstats
path: root/korean/xpdf
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2014-05-25 02:29:07 +0800
committerhrs <hrs@FreeBSD.org>2014-05-25 02:29:07 +0800
commitba2fe1d44a29101add39592d9264d6a4b19ecfb6 (patch)
tree3290307069d77e4303d9f0b7b3012d0a4827f002 /korean/xpdf
parentb4a0a9ac0d6bd50c4adf6cd9bccbe56e9a4c95d8 (diff)
downloadfreebsd-ports-gnome-ba2fe1d44a29101add39592d9264d6a4b19ecfb6.tar.gz
freebsd-ports-gnome-ba2fe1d44a29101add39592d9264d6a4b19ecfb6.tar.zst
freebsd-ports-gnome-ba2fe1d44a29101add39592d9264d6a4b19ecfb6.zip
STAGEDIR support.
Diffstat (limited to 'korean/xpdf')
-rw-r--r--korean/xpdf/Makefile22
-rw-r--r--korean/xpdf/pkg-plist1
2 files changed, 7 insertions, 16 deletions
diff --git a/korean/xpdf/Makefile b/korean/xpdf/Makefile
index 9ca342e4783d..dd876a1382ba 100644
--- a/korean/xpdf/Makefile
+++ b/korean/xpdf/Makefile
@@ -28,23 +28,13 @@ ADOBECMAPDIR= ${LOCALBASE}/share/fonts/adobe-cmaps
INSTALL_FILES= Adobe-Korea1.cidToUnicode ISO-2022-KR.unicodeMap \
README ../dot.xpdfrc
-NO_STAGE= yes
do-install:
- ${MKDIR} ${DATADIR}/korean
+ ${MKDIR} ${STAGEDIR}${DATADIR}/korean
cd ${WRKSRC} && \
- ${INSTALL_DATA} ${INSTALL_FILES} ${DATADIR}/korean
- ${MKDIR} ${DATADIR}/korean/CMap
- cd ${DATADIR}/korean/CMap && \
- ${FIND} ${ADOBECMAPDIR}/ak12/CMap \
- -type f -exec ${LN} -s -f {} . \;
-
-post-install:
- exec < ${LOCALBASE}/etc/xpdfrc; \
- ${RM} -f ${LOCALBASE}/etc/xpdfrc; \
- ( ${GREP} -v "${EXTRARC}"; \
- ${ECHO_CMD} "include ${EXTRARC}" ) \
- > ${LOCALBASE}/etc/xpdfrc
- ${CHOWN} ${SHAREOWN}:${SHAREGRP} ${LOCALBASE}/etc/xpdfrc
- ${CHMOD} 0444 ${LOCALBASE}/etc/xpdfrc
+ ${INSTALL_DATA} ${INSTALL_FILES} ${STAGEDIR}${DATADIR}/korean
+ ${MKDIR} ${STAGEDIR}${DATADIR}/korean/CMap
+ cd ${STAGEDIR}${DATADIR}/korean/CMap && \
+ ${FIND} ${ADOBECMAPDIR}/ak12/CMap \
+ -type f -exec ${LN} -s -f {} . \;
.include <bsd.port.mk>
diff --git a/korean/xpdf/pkg-plist b/korean/xpdf/pkg-plist
index 409596139c24..b8cf16cc7d6d 100644
--- a/korean/xpdf/pkg-plist
+++ b/korean/xpdf/pkg-plist
@@ -1,3 +1,4 @@
+@comment $FreeBSD$
%%DATADIR%%/korean/Adobe-Korea1.cidToUnicode
%%DATADIR%%/korean/ISO-2022-KR.unicodeMap
%%DATADIR%%/korean/README