freebsd-ports/japanese/xpdf/Makefile
Hiroki Sato d83170403e japanese/font-std, chinese/font-std, and dependency fixups due
to it have been added.  These are to install standard fonts used in the
Ports Collection.  Currently they contain:

 std.ja_JP/Mincho
 std.ja_JP/Gothic
 std.ja_JP/Ryumin-Light
 std.ja_JP/GothicBBB-Medium
 std.zh_CN/STHeiti-Regular
 std.zh_CN/STSong-Light
 std.zh_CN/MSung-Light
 std.zh_CN/MHei-Medium

under ${PREFIX}/share/fonts/.  They are just symlinks to
corresponding font files.  The symlink names are based on popular
PostScript font names.

Applications should refer the font files via XLFD or fontconfig
first.  If they need a direct reference to the font file, please use
files in std.*/*.  This is because direct reference to a specific
font name in an application configuration file makes the maintenance
difficult when the font file name is changed, for example.
2009-05-31 09:19:10 +00:00

52 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= 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 <bsd.port.mk>