pkgsrc/fonts/ms-ttf/Makefile
wiz bc871f8be3 Fix ttf/type1 handling in fonts.mk:
Previously, ttmkfdir's output was redirected to fonts.dir,
while the correct behaviour is to let it create fonts.scale
and then let mkfontdir merge fonts.scale into fonts.dir.
type1 handling had a similar problem.
Get the wanted behaviour by automatically appending the contents of
FONTS_TTF_DIRS and FONTS_TYPE1_DIRS to FONTS_X11_DIRS.
Also, save a subshell in install/fonts while there.

Bump PKGREVISION for all affected packages.

jmmv@ says ok.
2004-12-28 14:38:03 +00:00

52 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.11 2004/12/28 14:38:03 wiz Exp $
DISTNAME= # empty
PKGNAME= ms-ttf-20020306
PKGREVISION= 4
CATEGORIES= fonts
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=corefonts/}
DISTFILES= andale32.exe webdin32.exe trebuc32.exe georgi32.exe \
verdan32.exe comic32.exe arialb32.exe impact32.exe \
arial32.exe times32.exe courie32.exe
MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://corefonts.sourceforge.net/
COMMENT= TrueType fonts from Microsoft
BUILD_DEPENDS+= cabextract-[0-9]*:../../archivers/cabextract
LICENSE= ms-ttf-license
RESTRICTED= No redistribution in altered form
NO_BIN_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
NO_SRC_ON_CDROM= ${RESTRICTED}
NO_CONFIGURE= yes
NO_BUILD= yes
USE_X11BASE= yes
DIST_SUBDIR= ms-ttf
EVAL_PREFIX+= CABEXTRACT_PREFIX=cabextract
CABEXTRACT_PREFIX_DEFAULT=${LOCALBASE}
EXTRACT_CMD= ${CABEXTRACT_PREFIX}/bin/cabextract -q $${extract_file}
FONTDIR= ${PREFIX}/lib/X11/fonts/TTF
DOCDIR= ${PREFIX}/share/doc/ms-ttf
FONTS_TTF_DIRS= ${FONTDIR}
post-extract:
${_PKG_SILENT}${_PKG_DEBUG} \
for f in ${WRKSRC}/*.TTF ; do \
${MV} $$f `echo $$f | ${SED} 's|TTF$$|ttf|'`; \
done
do-install:
${INSTALL_DATA_DIR} ${FONTDIR}
${INSTALL_DATA_DIR} ${DOCDIR}
cd ${WRKSRC} && for f in *.ttf ; do \
${INSTALL_DATA} $$f ${FONTDIR}/$$f; \
done
${INSTALL_DATA} ${.CURDIR}/../../licenses/${LICENSE} ${DOCDIR}
.include "../../mk/fonts.mk"
.include "../../mk/bsd.pkg.mk"