mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
53 lines
1.4 KiB
Makefile
53 lines
1.4 KiB
Makefile
# 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= 3
|
|
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 <bsd.port.mk>
|