1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-12 07:27:57 +00:00
freebsd-ports/print/gsfonts/Makefile
Hiroki Sato 4046a765ca Cleanup ghostscript-gnu-commfont and related CJK font support meta ports.
Changes include:

 - Set WITH_GHOSTSCRIPT_GNU forcibly.

 - Use PostScript virtual fonts to handle CJK CID/TT-CID emulated fonts.
   CIDFnmap still works but when a font is both in Resource/Font or
   Resource/CIDFont and in CIDFnmap, the former entry will be used.
   For the actual font mapping, see files in Resource/CIDFont/*.

   So, note that you need to remove (or rename) the virtual font if you use
   CIDFnmap for the moment.  This is still a transitional measure and
   more consistent font management thoughout the ports collection should
   be added later.

   This is just an internal structural change; default font mapping has
   not been changed.

 - Add Chinese font support to print/gsfonts (but no dependency added).
2007-04-28 13:03:16 +00:00

89 lines
2.4 KiB
Makefile

# New ports collection makefile for: gsfonts
# Date created: 11 September 1997
# Whom: giffunip
#
# $FreeBSD$
#
PORTNAME= gsfonts
PORTVERSION= 8.11
PORTREVISION= 4
CATEGORIES= print x11-fonts
MASTER_SITES= ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/fonts/ \
${MASTER_SITE_TEX_CTAN:S/$/:CTAN/}
MASTER_SITE_SUBDIR= support/ghostscript/fonts/:CTAN
DISTFILES= ${GS_FONTS_STD:S/$/:DEFAULT,CTAN/} ${GS_FONTS_OTHER:S/$/:DEFAULT,CTAN/}
DIST_SUBDIR= ghostscript
MAINTAINER= ports@FreeBSD.org
COMMENT= Fonts used by GNU Ghostscript (or X)
NO_WRKSUBDIR= yes
NO_BUILD= yes
PLIST_SUB= FONTSDIR="${FONTSDIR:S|${PREFIX}/||}"
SUB_FILES= pkg-message
SUB_LIST= FONTSDIR="${FONTSDIR}"
#
# Local variables
#
FONTSDIR?= ${PREFIX}/share/ghostscript/fonts
GS_FONTS_STD= ghostscript-fonts-std-8.11.tar.gz
GS_FONTS_OTHER= ghostscript-fonts-other-6.0.tar.gz
CJKFONTS?= TrueType/ipam.ttf Ryumin-Light.ttf \
TrueType/ipag.ttf GothicBBB-Medium.ttf \
TrueType/bkai00mp.ttf STHeiti-Regular.ttf \
TrueType/gbsn00lp.ttf STSong-Light.ttf \
TrueType/bsmi00lp.ttf MSung-Light.ttf
.SILENT:
post-patch:
${CP} ${WRKSRC}/fonts/fonts.scale ${WRKSRC}/fonts/fonts.scale.urw
${CP} ${FILESDIR}/fonts.scale ${WRKSRC}/fonts/fonts.scale
${CP} ${FILESDIR}/fonts.scale ${WRKSRC}/fonts/fonts.dir
${CP} ${FILESDIR}/Fontmap ${WRKSRC}/fonts/Fontmap
#
# Install
#
do-install: install-fonts install-docs display-message
install-fonts:
${MKDIR} ${FONTSDIR}
${INSTALL_DATA} ${WRKSRC}/fonts/COPYING ${FONTSDIR}
${INSTALL_DATA} ${WRKSRC}/fonts/*.afm ${FONTSDIR}
${INSTALL_DATA} ${WRKSRC}/fonts/*.gsf ${FONTSDIR}
${INSTALL_DATA} ${WRKSRC}/fonts/*.pfa ${FONTSDIR}
${INSTALL_DATA} ${WRKSRC}/fonts/*.pfb ${FONTSDIR}
${INSTALL_DATA} ${WRKSRC}/fonts/*.pfm ${FONTSDIR}
${INSTALL_DATA} ${WRKSRC}/fonts/fonts.dir ${FONTSDIR}
${INSTALL_DATA} ${WRKSRC}/fonts/fonts.scale ${FONTSDIR}
${INSTALL_DATA} ${WRKSRC}/fonts/fonts.scale.urw ${FONTSDIR}
${INSTALL_DATA} ${WRKSRC}/fonts/Fontmap ${FONTSDIR}
set -- ${CJKFONTS}; while :; do \
case $$# in \
0) break ;; \
*) LHS=$$1; shift; RHS=$$1; shift; \
cd ${FONTSDIR} \
&& ${LN} -s -f ${PREFIX}/share/fonts/$${LHS} $${RHS}; \
esac; \
done
install-docs:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/fonts/ChangeLog ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/fonts/README ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/fonts/README.tweaks ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/fonts/TODO ${DOCSDIR}
.endif
display-message:
${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>