freebsd-ports/japanese/xpdf/Makefile

52 lines
1.4 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: ja-xpdf
# Date created: 21 Avr 2002
# Whom: MITA Yoshio <mita@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= xpdf
PORTVERSION= 3.02
PORTREVISION= 1
CATEGORIES= japanese
MASTER_SITES= ftp://ftp.foolabs.com/pub/xpdf/
PKGNAMESUFFIX= -jafont
DISTNAME= xpdf-japanese
MAINTAINER= hrs@FreeBSD.org
COMMENT= Japanese font support for xpdf
RUN_DEPENDS= xpdf:${PORTSDIR}/graphics/xpdf \
${ADOBECMAPDIR}/ai0/CMap/Identity-H:${PORTSDIR}/print/adobe-cmaps \
${FONTSDIR}/ipam.ttf:${PORTSDIR}/japanese/ipa-ttfonts
NO_BUILD= yes
SUB_FILES= dot.xpdfrc
SUB_LIST= ADOBECMAPDIR=${ADOBECMAPDIR} \
FONTSDIR=${FONTSDIR}
PLIST_SUB= EXTRARC=${EXTRARC}
DATADIR= ${PREFIX}/share/xpdf
FONTSDIR= ${LOCALBASE}/share/fonts/TrueType
EXTRARC= ${DATADIR}/japanese/dot.xpdfrc
ADOBECMAPDIR= ${LOCALBASE}/share/fonts/adobe-cmaps
INSTALL_FILES= Adobe-Japan1.cidToUnicode ISO-2022-JP.unicodeMap \
EUC-JP.unicodeMap Shift-JIS.unicodeMap \
README ../dot.xpdfrc
do-install:
${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
${CHMOD} 0444 ${LOCALBASE}/etc/xpdfrc
.include <bsd.port.mk>