2001-01-20 12:14:29 +01:00
|
|
|
# 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
|
2005-11-12 21:03:07 +01:00
|
|
|
PORTVERSION= 0.30
|
2008-10-25 14:15:56 +02:00
|
|
|
PORTREVISION= 6
|
2001-01-20 12:14:29 +01:00
|
|
|
CATEGORIES= x11-fonts
|
2010-02-04 14:19:17 +01:00
|
|
|
MASTER_SITES= SF/corefonts/the%20fonts/final:group1 \
|
2008-03-25 05:12:03 +01:00
|
|
|
ftp://ftp.botik.ru/rented/znamensk/distributions/ftp.vsu.ru/pub/tex/font-packs/mscore/:group1 \
|
2010-02-04 14:19:17 +01:00
|
|
|
http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/EN-US/:group2
|
2005-11-12 21:03:07 +01:00
|
|
|
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
|
2002-01-20 23:31:03 +01:00
|
|
|
DIST_SUBDIR= ${PORTNAME}
|
2001-01-20 12:14:29 +01:00
|
|
|
|
2002-08-26 12:12:21 +02:00
|
|
|
MAINTAINER= kkonstan@duth.gr
|
2003-02-21 15:08:24 +01:00
|
|
|
COMMENT= TrueType core fonts for the Web
|
2001-01-20 12:14:29 +01:00
|
|
|
|
2003-03-19 08:41:55 +01:00
|
|
|
EXTRACT_DEPENDS=cabextract:${PORTSDIR}/archivers/cabextract
|
2007-02-02 18:06:25 +01:00
|
|
|
BUILD_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig
|
|
|
|
RUN_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig
|
2002-01-21 17:39:13 +01:00
|
|
|
|
2005-08-28 09:04:24 +02:00
|
|
|
NO_BUILD= yes
|
2008-04-03 04:14:31 +02:00
|
|
|
RESTRICTED= Restrictive license - cannot sell for profit or distribute in modified form
|
2001-01-20 12:14:29 +01:00
|
|
|
|
2002-01-20 23:31:03 +01:00
|
|
|
EXTRACT_CMD= ${LOCALBASE}/bin/cabextract
|
2005-11-12 21:03:07 +01:00
|
|
|
EXTRACT_BEFORE_ARGS= -qLF '*.ttf' -d ${WRKSRC}
|
|
|
|
EXTRACT_AFTER_ARGS=
|
2002-01-20 23:31:03 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# Local variables
|
|
|
|
#
|
|
|
|
FONTNAME= ${PORTNAME}
|
|
|
|
FONTSDIR?= ${PREFIX}/lib/X11/fonts/${FONTNAME}
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
TTFONTSDIR?= ${LOCALBASE}/lib/X11/fonts/TrueType
|
2002-01-20 23:31:03 +01:00
|
|
|
|
2005-08-28 09:04:24 +02:00
|
|
|
PLIST_SUB= FONTNAME="${FONTNAME}" \
|
|
|
|
FONTSDIR="${FONTSDIR:S|${PREFIX}/||}" \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
TTFONTSDIR="${TTFONTSDIR:S|${LOCALBASE}/||}"
|
2002-01-20 23:31:03 +01:00
|
|
|
|
2008-05-29 23:14:12 +02:00
|
|
|
SUB_LIST= FONTSDIR="${FONTSDIR}"
|
2008-04-03 04:14:31 +02:00
|
|
|
SUB_FILES= pkg-message
|
2002-01-20 23:31:03 +01:00
|
|
|
|
2005-11-12 21:03:07 +01:00
|
|
|
FONTS_FILE= ${WRKDIR}/fonts.dir
|
|
|
|
|
2005-08-28 09:04:24 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
2002-01-20 23:31:03 +01:00
|
|
|
|
2008-04-03 04:14:31 +02:00
|
|
|
.if defined(WITH_MSWINDOWS_LICENSE)
|
|
|
|
DISTFILES+= ielpkth.cab:group2
|
|
|
|
.endif
|
|
|
|
|
2005-08-28 09:04:24 +02:00
|
|
|
.SILENT:
|
|
|
|
|
2002-01-20 23:31:03 +01:00
|
|
|
#
|
|
|
|
# Post-extract
|
|
|
|
#
|
2005-08-28 09:04:24 +02:00
|
|
|
post-extract:
|
2005-11-12 21:03:07 +01:00
|
|
|
${EXTRACT_CMD} -qLF '*.txt' -d ${WRKSRC} ${_DISTDIR}/webdin32.exe
|
2002-01-20 23:31:03 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# Post-patch
|
|
|
|
#
|
2002-11-03 15:51:40 +01:00
|
|
|
post-patch:
|
2005-11-12 21:54:20 +01:00
|
|
|
.if defined(WITH_MSWINDOWS_LICENSE)
|
2005-11-12 21:03:07 +01:00
|
|
|
${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:
|
2005-11-12 21:54:20 +01:00
|
|
|
.if defined(WITH_MSWINDOWS_LICENSE)
|
2005-11-12 21:03:07 +01:00
|
|
|
PLIST_SUB+= EXTRAFONTS=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= EXTRAFONTS="@comment "
|
|
|
|
.endif
|
2002-01-20 23:31:03 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# Install
|
|
|
|
#
|
2005-08-28 09:04:24 +02:00
|
|
|
do-install:
|
2008-04-03 04:14:31 +02:00
|
|
|
${MKDIR} ${FONTSDIR}
|
2005-08-28 09:04:24 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.ttf ${FONTSDIR}
|
2005-11-12 21:03:07 +01:00
|
|
|
${INSTALL_DATA} ${FONTS_FILE} ${FONTSDIR}
|
|
|
|
${INSTALL_DATA} ${FONTS_FILE} ${FONTSDIR}/fonts.scale
|
2008-10-25 14:15:56 +02:00
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/licen.txt ${DOCSDIR}/LICENSE
|
2002-01-20 23:31:03 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# Post-install
|
|
|
|
#
|
2005-08-28 09:04:24 +02:00
|
|
|
post-install:
|
|
|
|
${ECHO_MSG} "===> Running fc-cache"
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
-${LOCALBASE}/bin/fc-cache -f -v ${FONTSDIR}
|
2002-01-20 23:31:03 +01:00
|
|
|
${ECHO_MSG}
|
|
|
|
${CAT} ${PKGMESSAGE}
|
|
|
|
${ECHO_MSG}
|
2001-01-20 12:14:29 +01:00
|
|
|
|
2002-02-02 08:10:31 +01:00
|
|
|
.include <bsd.port.post.mk>
|