freebsd-ports/x11-fonts/texcm-ttf/Makefile
Thierry Thomas 6eaa1c594b Replace ttmkfdir by mkfontscale & mkfontdir to install correct files.
PR:		ports/117251
Submitted by:	Steven G. Kargl <kargl (at) troutmask.apl.washington.edu>
2007-10-21 14:00:49 +00:00

59 lines
1.4 KiB
Makefile

# New ports collection makefile for: texcm-ttf
# Date created: 6 March 2005
# Whom: Thierry Thomas <thierry@pompo.net>
#
# $FreeBSD$
#
PORTNAME= texcm-ttf
PORTVERSION= 20010117
PORTREVISION= 2
CATEGORIES= x11-fonts
MASTER_SITES= http://www.mozilla.org/projects/mathml/fonts/bakoma/
DISTFILES= ${PORTNAME}${EXTRACT_SUFX} license.txt
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
EXTRACT_ONLY= ${PORTNAME}${EXTRACT_SUFX}
MAINTAINER= thierry@FreeBSD.org
COMMENT= TeX's Computer Modern Fonts
BUILD_DEPENDS= mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale \
mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir
NO_CDROM= cannot be sold or distributed with any commercial product
USE_X_PREFIX= yes
USE_ZIP= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
SUB_FILES= pkg-message
SUB_LIST= FONTSDIR="${FONTSDIR}"
PLIST_SUB= FONTSDIR="${FONTSDIR:S|${PREFIX}/||}"
REINPLACE_ARGS= -i ""
PKGMESSAGE= ${WRKDIR}/pkg-message
FONTNAME= ${PORTNAME}
FONTSDIR= ${PREFIX}/lib/X11/fonts/${FONTNAME}
MKFONTSCL_CMD= ${X11BASE}/bin/mkfontscale
MKFONTDIR_CMD= ${X11BASE}/bin/mkfontdir
do-build:
cd ${WRKSRC} && ${MKFONTSCL_CMD}
cd ${WRKSRC} && ${MKFONTDIR_CMD}
.for f in fonts.dir fonts.scale
${REINPLACE_CMD} -e 's|-misc-|-texcm-|' ${WRKSRC}/${f}
.endfor
do-install:
${MKDIR} ${FONTSDIR}
${INSTALL_DATA} ${WRKSRC}/* ${FONTSDIR}
${INSTALL_DATA} ${_DISTDIR}/license.txt ${FONTSDIR} # Required by the license
post-install:
@${ECHO_MSG}
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG}
.include <bsd.port.mk>