pkgsrc/fonts/ms-ttf/Makefile
jperkin 6fbe8bd9ee Remove mk/find-prefix.mk usage from the fonts category.
The find-prefix infrastructure was required in a pkgviews world where
packages installed from pkgsrc could have different installation
prefixes, and this was a way for a dependency prefix to be determined.

Now that pkgviews has been removed there is no longer any need for the
overhead of this infrastructure.  Instead we use BUILDLINK_PREFIX.pkg
for dependencies pulled in via buildlink, or LOCALBASE/PREFIX where the
dependency is coming from pkgsrc.

Provides a reasonable performance win due to the reduction of `pkg_info
-qp` calls, some of which were redundant anyway as they were duplicating
the same information provided by BUILDLINK_PREFIX.pkg.
2015-11-25 12:50:14 +00:00

48 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.23 2015/11/25 12:50:14 jperkin 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}
NO_CONFIGURE= yes
NO_BUILD= yes
DIST_SUBDIR= ms-ttf
EXTRACT_CMD= ${LOCALBASE}/bin/cabextract -q $${extract_file}
FONTDIR= ${PREFIX}/share/fonts/X11/TTF
DOCDIR= ${PREFIX}/share/doc/ms-ttf
FONTS_DIRS.ttf= ${FONTDIR}
INSTALLATION_DIRS= ${FONTDIR} ${DOCDIR}
post-extract:
${RUN} \
for f in ${WRKSRC}/*.TTF ; do \
${MV} $$f `${ECHO} $$f | ${SED} 's|TTF$$|ttf|'`; \
done
do-install:
cd ${WRKSRC} && for f in *.ttf ; do \
${INSTALL_DATA} $$f ${DESTDIR}${FONTDIR}/$$f; \
done
${INSTALL_DATA} ${.CURDIR}/../../licenses/${LICENSE} ${DESTDIR}${DOCDIR}
.include "../../mk/bsd.pkg.mk"