# New ports collection makefile for: ja-xpdf # Date created: 21 Avr 2002 # Whom: MITA Yoshio # # $FreeBSD$ # PORTNAME= xpdf PORTVERSION= 3.02 PORTREVISION= 2 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}/Ryumin-Light:${PORTSDIR}/japanese/font-std \ ${FONTSDIR}/GothicBBB-Medium:${PORTSDIR}/japanese/font-std 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/std.ja_JP 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