2013-09-20 23:51:14 +00:00
|
|
|
# Created by: Konstantinos Konstantinidis <kkonstan@daemon.gr>
|
2001-01-20 11:14:29 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= webfonts
|
2005-11-12 20:03:07 +00:00
|
|
|
PORTVERSION= 0.30
|
2008-10-25 12:15:56 +00:00
|
|
|
PORTREVISION= 6
|
2001-01-20 11:14:29 +00:00
|
|
|
CATEGORIES= x11-fonts
|
2010-02-04 13:19:17 +00:00
|
|
|
MASTER_SITES= SF/corefonts/the%20fonts/final:group1 \
|
2008-03-25 04:12:03 +00:00
|
|
|
ftp://ftp.botik.ru/rented/znamensk/distributions/ftp.vsu.ru/pub/tex/font-packs/mscore/:group1 \
|
2010-02-04 13:19:17 +00:00
|
|
|
http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/EN-US/:group2
|
2005-11-12 20:03:07 +00: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 22:31:03 +00:00
|
|
|
DIST_SUBDIR= ${PORTNAME}
|
2001-01-20 11:14:29 +00:00
|
|
|
|
2014-05-26 02:33:38 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-21 14:08:24 +00:00
|
|
|
COMMENT= TrueType core fonts for the Web
|
2001-01-20 11:14:29 +00:00
|
|
|
|
2003-03-19 07:41:55 +00:00
|
|
|
EXTRACT_DEPENDS=cabextract:${PORTSDIR}/archivers/cabextract
|
2007-02-02 17:06:25 +00:00
|
|
|
BUILD_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig
|
|
|
|
RUN_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig
|
2002-01-21 16:39:13 +00:00
|
|
|
|
2005-08-28 07:04:24 +00:00
|
|
|
NO_BUILD= yes
|
2008-04-03 02:14:31 +00:00
|
|
|
RESTRICTED= Restrictive license - cannot sell for profit or distribute in modified form
|
2001-01-20 11:14:29 +00:00
|
|
|
|
2002-01-20 22:31:03 +00:00
|
|
|
EXTRACT_CMD= ${LOCALBASE}/bin/cabextract
|
2005-11-12 20:03:07 +00:00
|
|
|
EXTRACT_BEFORE_ARGS= -qLF '*.ttf' -d ${WRKSRC}
|
|
|
|
EXTRACT_AFTER_ARGS=
|
2002-01-20 22:31:03 +00: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 17:56:05 +00:00
|
|
|
TTFONTSDIR?= ${LOCALBASE}/lib/X11/fonts/TrueType
|
2002-01-20 22:31:03 +00:00
|
|
|
|
2005-08-28 07:04:24 +00: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 17:56:05 +00:00
|
|
|
TTFONTSDIR="${TTFONTSDIR:S|${LOCALBASE}/||}"
|
2002-01-20 22:31:03 +00:00
|
|
|
|
2008-05-29 21:14:12 +00:00
|
|
|
SUB_LIST= FONTSDIR="${FONTSDIR}"
|
2008-04-03 02:14:31 +00:00
|
|
|
SUB_FILES= pkg-message
|
2002-01-20 22:31:03 +00:00
|
|
|
|
2005-11-12 20:03:07 +00:00
|
|
|
FONTS_FILE= ${WRKDIR}/fonts.dir
|
|
|
|
|
2014-08-04 03:40:14 +00:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2005-08-28 07:04:24 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
2002-01-20 22:31:03 +00:00
|
|
|
|
2008-04-03 02:14:31 +00:00
|
|
|
.if defined(WITH_MSWINDOWS_LICENSE)
|
|
|
|
DISTFILES+= ielpkth.cab:group2
|
|
|
|
.endif
|
|
|
|
|
2005-08-28 07:04:24 +00:00
|
|
|
.SILENT:
|
|
|
|
|
2002-01-20 22:31:03 +00:00
|
|
|
#
|
|
|
|
# Post-extract
|
|
|
|
#
|
2005-08-28 07:04:24 +00:00
|
|
|
post-extract:
|
2005-11-12 20:03:07 +00:00
|
|
|
${EXTRACT_CMD} -qLF '*.txt' -d ${WRKSRC} ${_DISTDIR}/webdin32.exe
|
2002-01-20 22:31:03 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Post-patch
|
|
|
|
#
|
2002-11-03 14:51:40 +00:00
|
|
|
post-patch:
|
2005-11-12 20:54:20 +00:00
|
|
|
.if defined(WITH_MSWINDOWS_LICENSE)
|
2005-11-12 20:03:07 +00: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 20:54:20 +00:00
|
|
|
.if defined(WITH_MSWINDOWS_LICENSE)
|
2005-11-12 20:03:07 +00:00
|
|
|
PLIST_SUB+= EXTRAFONTS=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= EXTRAFONTS="@comment "
|
|
|
|
.endif
|
2002-01-20 22:31:03 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Install
|
|
|
|
#
|
2005-08-28 07:04:24 +00:00
|
|
|
do-install:
|
2014-06-04 11:03:42 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${FONTSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.ttf ${STAGEDIR}${FONTSDIR}
|
|
|
|
${INSTALL_DATA} ${FONTS_FILE} ${STAGEDIR}${FONTSDIR}
|
|
|
|
${INSTALL_DATA} ${FONTS_FILE} ${STAGEDIR}${FONTSDIR}/fonts.scale
|
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/licen.txt ${STAGEDIR}${DOCSDIR}/LICENSE
|
2001-01-20 11:14:29 +00:00
|
|
|
|
2002-02-02 07:10:31 +00:00
|
|
|
.include <bsd.port.post.mk>
|