3820acb11e
http://www.microsoft.com/typography/fontpack/. The port is constructed so that the actual fonts are downloaded from Sourceforge's site at build time so this port does not 'redistribute' the fonts, it just makes it easy to install them on an OpenBSD system. ok pvalchev@
53 lines
1.3 KiB
Makefile
53 lines
1.3 KiB
Makefile
# $OpenBSD
|
|
|
|
COMMENT= "Microsoft TrueType core fonts"
|
|
|
|
DISTNAME= msttcorefonts-1.2
|
|
DISTFILES= ${FONTS}
|
|
CATEGORIES= x11
|
|
|
|
HOMEPAGE= http://corefonts.sourceforge.net/
|
|
|
|
MAINTAINER= Steve Shockley <steve.shockley@shockley.net>
|
|
|
|
# Font source files have a restrictive license
|
|
PERMIT_PACKAGE_CDROM= "Restrictive license, can't distribute modified files"
|
|
PERMIT_PACKAGE_FTP= "Restrictive license, can't distribute modified files"
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=corefonts/}
|
|
|
|
BUILD_DEPENDS= cabextract:cabextract-*:archivers/cabextract \
|
|
ttmkfdir:ttmkfdir-*:x11/ttmkfdir
|
|
|
|
NO_BUILD= Yes
|
|
|
|
FONTS= andale32.exe \
|
|
arial32.exe \
|
|
arialb32.exe \
|
|
comic32.exe \
|
|
courie32.exe \
|
|
georgi32.exe \
|
|
impact32.exe \
|
|
times32.exe \
|
|
trebuc32.exe \
|
|
verdan32.exe \
|
|
webdin32.exe
|
|
|
|
INST_DIR= lib/X11/fonts/mscorefonts
|
|
|
|
do-extract:
|
|
.for fontfile in ${FONTS}
|
|
${LOCALBASE}/bin/cabextract ${DISTDIR}/${fontfile} --lowercase --directory=${WRKDIST}
|
|
.endfor
|
|
|
|
do-install:
|
|
${TRUEPREFIX}/bin/ttmkfdir -d ${WRKDIST} > ${WRKDIST}/fonts.dir
|
|
${INSTALL_DATA_DIR} "${PREFIX}/${INST_DIR}"
|
|
${INSTALL_DATA} ${WRKDIST}/*.ttf ${WRKDIST}/fonts.dir "${PREFIX}/${INST_DIR}"
|
|
tr -d \\015 < ${WRKDIST}/licen.txt > "${PREFIX}/${INST_DIR}/eula.txt"
|
|
ln -s fonts.dir "${PREFIX}/${INST_DIR}/fonts.scale"
|
|
|
|
.include <bsd.port.mk>
|