pkgsrc/fonts/ms-ttf/Makefile
maya b602899540 mk/fonts.mk: don't add NO_CONFIGURE and NO_BUILD, have packages set it.
This makes it easier to use the mk fragment with fonts that need a build
step, like new liberation-ttf.

While here switch some fonts using post-install unnecessarily to do-install
(Committed at the same time as it wasn't tested separately)

No PLIST changes to the packages/build breakage, so no changes expected
to the packages.
2020-11-06 18:04:24 +00:00

44 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.27 2020/11/06 18:04:26 maya Exp $
DISTNAME= # empty
PKGNAME= ms-ttf-20020306
PKGREVISION= 6
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= pkgsrc-users@NetBSD.org
HOMEPAGE= http://corefonts.sourceforge.net/
COMMENT= TrueType fonts from Microsoft
LICENSE= ms-ttf-license
RESTRICTED= No redistribution in altered form
BUILD_DEPENDS+= cabextract-[0-9]*:../../archivers/cabextract
NO_BIN_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
NO_SRC_ON_CDROM= ${RESTRICTED}
DIST_SUBDIR= ms-ttf
EXTRACT_CMD= ${LOCALBASE}/bin/cabextract -q $${extract_file}
DOCDIR= ${PREFIX}/share/doc/ms-ttf
NO_CONFIGURE= yes
NO_BUILD= yes
INSTALLATION_DIRS+= ${DOCDIR}
post-extract:
${RUN} \
for f in ${WRKSRC}/*.TTF ; do \
${MV} $$f `${ECHO} $$f | ${SED} 's|TTF$$|ttf|'`; \
done
do-install:
${INSTALL_DATA} ${.CURDIR}/../../licenses/${LICENSE} ${DESTDIR}${DOCDIR}
.include "../../mk/fonts.mk"
.include "../../mk/bsd.pkg.mk"