mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-12 03:00:28 +00:00
9bbc301792
Approved by: maintainer
134 lines
3.4 KiB
Makefile
134 lines
3.4 KiB
Makefile
# New ports collection makefile for: TrueType core fonts for the Web
|
|
# Date created: 12 Jan 2001
|
|
# Whom: Konstantinos Konstantinidis <kkonstan@daemon.gr>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= webfonts
|
|
PORTVERSION= 0.30
|
|
CATEGORIES= x11-fonts
|
|
MASTER_SITES= ${MASTER_SITE_NETBSD:S/%SUBDIR%/ms-ttf/}:group1 \
|
|
${MASTER_SITE_SOURCEFORGE:S/%SUBDIR%/corefonts/}:group1 \
|
|
ftp://ftp.uni-koeln.de/pc/win32/msoft/:group1 \
|
|
ftp://ftp.vsu.ru/pub/tex/font-packs/mscore/:group1 \
|
|
ftp://ftp.sinn.ru/pub/win95/fonts/:group1 \
|
|
ftp://ftp.botik.ru/rented/znamensk/distributions/ftp.vsu.ru/pub/tex/font-packs/mscore/:group1 \
|
|
http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/EN-US/:group2 \
|
|
http://www.zeuscat.com/andrew/software/corefonts/:group2 \
|
|
ftp://ftp.isu.edu.tw/pub/MsDownload/ie6sp1/en/:group2
|
|
DISTFILES= andale32.exe:group1 arial32.exe:group1 arialb32.exe:group1 \
|
|
comic32.exe:group1 courie32.exe:group1 georgi32.exe:group1 \
|
|
impact32.exe:group1 times32.exe:group1 trebuc32.exe:group1 \
|
|
verdan32.exe:group1 webdin32.exe:group1
|
|
|
|
.if defined(WITH_MSWINDOWS_LICENSE)
|
|
DISTFILES+= ielpkth.cab:group2
|
|
.endif
|
|
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= kkonstan@duth.gr
|
|
COMMENT= TrueType core fonts for the Web
|
|
|
|
EXTRACT_DEPENDS=cabextract:${PORTSDIR}/archivers/cabextract
|
|
|
|
USE_X_PREFIX= yes
|
|
|
|
NO_BUILD= yes
|
|
NO_CDROM= "Restrictive license - cannot sell for profit"
|
|
NO_PACKAGE= "Restrictive license - cannot distribute in modified form"
|
|
|
|
EXTRACT_CMD= ${LOCALBASE}/bin/cabextract
|
|
EXTRACT_BEFORE_ARGS= -qLF '*.ttf' -d ${WRKSRC}
|
|
EXTRACT_AFTER_ARGS=
|
|
|
|
#
|
|
# Local variables
|
|
#
|
|
FONTNAME= ${PORTNAME}
|
|
FONTSDIR?= ${PREFIX}/lib/X11/fonts/${FONTNAME}
|
|
TTFONTSDIR?= ${X11BASE}/lib/X11/fonts/TrueType
|
|
|
|
PLIST_SUB= FONTNAME="${FONTNAME}" \
|
|
FONTSDIR="${FONTSDIR:S|${PREFIX}/||}" \
|
|
TTFONTSDIR="${TTFONTSDIR:S|${X11BASE}/||}"
|
|
|
|
MSG_FILE= ${PKGDIR}/pkg-message
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
FONTS_FILE= ${WRKDIR}/fonts.dir
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${X_WINDOW_SYSTEM:L} == xfree86-3
|
|
RUN_DEPENDS= xfstt:${PORTSDIR}/x11-servers/Xfstt
|
|
PLIST_SUB+= FCACHE="@comment " \
|
|
OLDXF86=""
|
|
.else
|
|
BUILD_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig
|
|
RUN_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig
|
|
PLIST_SUB+= FCACHE="" \
|
|
OLDXF86="@comment "
|
|
.endif
|
|
|
|
.SILENT:
|
|
|
|
#
|
|
# Post-extract
|
|
#
|
|
post-extract:
|
|
${EXTRACT_CMD} -qLF '*.txt' -d ${WRKSRC} ${_DISTDIR}/webdin32.exe
|
|
|
|
#
|
|
# Post-patch
|
|
#
|
|
post-patch:
|
|
${SED} -e 's|%%FONTSDIR%%|${FONTSDIR}|g' \
|
|
-e 's|%%DOCSDIR%%|${DOCSDIR}|g' \
|
|
${MSG_FILE} > ${PKGMESSAGE}
|
|
.if defined(WITH_MSWINDOWS_LICENSE)
|
|
${SORT} ${FILESDIR}/fonts.dir ${FILESDIR}/tahoma.dir > ${FONTS_FILE}
|
|
.else
|
|
${CP} ${FILESDIR}/fonts.dir ${FONTS_FILE}
|
|
.endif
|
|
${PRINTF} "1i\n%u\n.\nwq\n" `wc -l < ${FONTS_FILE}` | \
|
|
ed -s ${FONTS_FILE}
|
|
|
|
#
|
|
# Pre-install
|
|
#
|
|
pre-install:
|
|
.if defined(WITH_MSWINDOWS_LICENSE)
|
|
PLIST_SUB+= EXTRAFONTS=""
|
|
.else
|
|
PLIST_SUB+= EXTRAFONTS="@comment "
|
|
.endif
|
|
|
|
#
|
|
# Install
|
|
#
|
|
do-install:
|
|
${MKDIR} ${FONTSDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/*.ttf ${FONTSDIR}
|
|
${INSTALL_DATA} ${FONTS_FILE} ${FONTSDIR}
|
|
${INSTALL_DATA} ${FONTS_FILE} ${FONTSDIR}/fonts.scale
|
|
${INSTALL_DATA} ${WRKSRC}/licen.txt ${DOCSDIR}/LICENSE
|
|
.if ${X_WINDOW_SYSTEM:L} == xfree86-3
|
|
${LN} -fs ${FONTSDIR} ${TTFONTSDIR}/${FONTNAME}
|
|
.endif
|
|
|
|
#
|
|
# Post-install
|
|
#
|
|
post-install:
|
|
.if ${X_WINDOW_SYSTEM:L} != xfree86-3
|
|
${ECHO_MSG} "===> Running fc-cache"
|
|
-${X11BASE}/bin/fc-cache -f -v ${FONTSDIR}
|
|
.endif
|
|
${ECHO_MSG}
|
|
${CAT} ${PKGMESSAGE}
|
|
${ECHO_MSG}
|
|
|
|
.include <bsd.port.post.mk>
|