2002-05-03 11:48:25 +02:00
|
|
|
# New ports collection makefile for: ja-xpdf
|
|
|
|
# Date created: 21 Avr 2002
|
|
|
|
# Whom: MITA Yoshio <mita@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= xpdf
|
2008-10-30 17:49:20 +01:00
|
|
|
PORTVERSION= 3.02
|
2008-10-30 18:18:06 +01:00
|
|
|
PORTREVISION= 1
|
2002-05-03 11:48:25 +02:00
|
|
|
CATEGORIES= japanese
|
|
|
|
MASTER_SITES= ftp://ftp.foolabs.com/pub/xpdf/
|
2008-10-30 17:49:20 +01:00
|
|
|
PKGNAMESUFFIX= -jafont
|
2002-05-03 11:48:25 +02:00
|
|
|
DISTNAME= xpdf-japanese
|
|
|
|
|
2008-10-30 17:49:20 +01:00
|
|
|
MAINTAINER= hrs@FreeBSD.org
|
|
|
|
COMMENT= Japanese font support for xpdf
|
2002-05-03 11:48:25 +02:00
|
|
|
|
2004-04-19 12:55:31 +02:00
|
|
|
RUN_DEPENDS= xpdf:${PORTSDIR}/graphics/xpdf \
|
2006-02-20 21:34:53 +01:00
|
|
|
${ADOBECMAPDIR}/ai0/CMap/Identity-H:${PORTSDIR}/print/adobe-cmaps \
|
2008-10-30 17:49:20 +01:00
|
|
|
${FONTSDIR}/ipam.ttf:${PORTSDIR}/japanese/ipa-ttfonts
|
2002-05-03 11:48:25 +02:00
|
|
|
|
2006-02-20 21:34:53 +01:00
|
|
|
NO_BUILD= yes
|
|
|
|
SUB_FILES= dot.xpdfrc
|
2008-10-30 17:49:20 +01:00
|
|
|
SUB_LIST= ADOBECMAPDIR=${ADOBECMAPDIR} \
|
|
|
|
FONTSDIR=${FONTSDIR}
|
|
|
|
PLIST_SUB= EXTRARC=${EXTRARC}
|
|
|
|
DATADIR= ${PREFIX}/share/xpdf
|
2006-02-20 21:34:53 +01:00
|
|
|
|
2008-10-30 17:49:20 +01:00
|
|
|
FONTSDIR= ${LOCALBASE}/share/fonts/TrueType
|
|
|
|
EXTRARC= ${DATADIR}/japanese/dot.xpdfrc
|
|
|
|
ADOBECMAPDIR= ${LOCALBASE}/share/fonts/adobe-cmaps
|
2002-05-03 11:48:25 +02:00
|
|
|
INSTALL_FILES= Adobe-Japan1.cidToUnicode ISO-2022-JP.unicodeMap \
|
|
|
|
EUC-JP.unicodeMap Shift-JIS.unicodeMap \
|
2008-10-30 17:49:20 +01:00
|
|
|
README ../dot.xpdfrc
|
2006-01-26 05:09:47 +01:00
|
|
|
|
2002-05-03 11:48:25 +02:00
|
|
|
do-install:
|
2008-10-30 17:49:20 +01:00
|
|
|
${MKDIR} ${DATADIR}/japanese
|
|
|
|
cd ${WRKSRC} && \
|
|
|
|
${INSTALL_DATA} ${INSTALL_FILES} ${DATADIR}/japanese
|
|
|
|
|
|
|
|
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
|
2008-10-30 18:18:06 +01:00
|
|
|
${CHMOD} 0444 ${LOCALBASE}/etc/xpdfrc
|
2002-05-03 11:48:25 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|