New port: TrueType core fonts for the Web.
PR: 24431 Submitted by: Konstantinos Konstantinidis <kkonstan@duth.gr>
This commit is contained in:
parent
b2b5f246a9
commit
5c4efe4a8a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=37366
@ -24,6 +24,7 @@
|
||||
SUBDIR += tkfont
|
||||
SUBDIR += ttmkfdir
|
||||
SUBDIR += urwfonts
|
||||
SUBDIR += webfonts
|
||||
SUBDIR += xfed
|
||||
SUBDIR += xmbdfed
|
||||
|
||||
|
94
x11-fonts/webfonts/Makefile
Normal file
94
x11-fonts/webfonts/Makefile
Normal file
@ -0,0 +1,94 @@
|
||||
# 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.12
|
||||
CATEGORIES= x11-fonts
|
||||
MASTER_SITES= http://www.microsoft.com/typography/downloads/
|
||||
DISTFILES= andale32.exe trebuc32.exe georgi32.exe verdan32.exe \
|
||||
comic32.exe arialb32.exe impact32.exe arial32.exe \
|
||||
times32.exe courie32.exe webdin32.exe
|
||||
DIST_SUBDIR= webfonts
|
||||
|
||||
MAINTAINER= kkonstan@daemon.gr
|
||||
|
||||
BUILD_DEPENDS= ttmkfdir:${PORTSDIR}/x11-fonts/ttmkfdir \
|
||||
cabextract:${PORTSDIR}/archivers/cabextract
|
||||
|
||||
RESTRICTED= "Restrictive license \(can\'t place on server for distribution\)"
|
||||
NO_CDROM= "Restrictive license \(can\'t sell for profit\)"
|
||||
NO_PACKAGE= "Restrictive license \(can\'t distribute in forms other than the original\)"
|
||||
|
||||
USE_X_PREFIX= yes
|
||||
|
||||
EXTRACT_CMD= cabextract
|
||||
EXTRACT_BEFORE_ARGS=
|
||||
EXTRACT_AFTER_ARGS= >/dev/null
|
||||
|
||||
post-extract:
|
||||
@${MKDIR} ${WRKDIR}/webfonts
|
||||
@${MV} ${WRKDIR}/*.* ${WRKDIR}/webfonts
|
||||
@${RM} ${WRKDIR}/webfonts/*.[Dd][Ll][Ll]
|
||||
@${RM} ${WRKDIR}/webfonts/*.[Ee][Xx][Ee]
|
||||
@${RM} ${WRKDIR}/webfonts/*.[Ii][Nn][Ff]
|
||||
@for file in `cd ${WRKDIR}/webfonts; ${ECHO} *` ; do \
|
||||
${MV} `${ECHO} ${WRKDIR}/webfonts/$${file}` \
|
||||
`${ECHO} ${WRKDIR}/webfonts/``${ECHO} $${file} | ${AWK} 'BEGIN { FS=" " } { print tolower($$1) }'` ;\
|
||||
done
|
||||
@${MV} ${WRKDIR}/webfonts/licen.txt ${WRKDIR}/webfonts/LICENSE
|
||||
@${CHMOD} 644 ${WRKDIR}/webfonts/*
|
||||
|
||||
do-build:
|
||||
@ttmkfdir -d ${WRKDIR}/webfonts | \
|
||||
${SED} -e "s,monotype,truetype,g;s,microsoft,truetype,g" > ${WRKDIR}/webfonts/fonts.scale
|
||||
@head -1 ${WRKDIR}/webfonts/fonts.scale > ${WRKDIR}/webfonts/fonts.dir
|
||||
@tail +2 ${WRKDIR}/webfonts/fonts.scale | ${CAT} -n | sort -r | cut -c8- >>${WRKDIR}/webfonts/fonts.dir
|
||||
@cp ${WRKDIR}/webfonts/fonts.dir ${WRKDIR}/webfonts/fonts.scale
|
||||
@cp /dev/null ${WRKDIR}/webfonts/fonts.alias
|
||||
.if !defined(WITHOUT_NETSCAPE)
|
||||
@${ECHO} ""
|
||||
@${ECHO} "Building aliases for Netscape. You can skip this by defining WITHOUT_NETSCAPE."
|
||||
@${ECHO} -n "This might take a few minutes, please be patient..."
|
||||
@tail +2 ${WRKDIR}/webfonts/fonts.scale | cut -f2- -d" " | while read LINE; do \
|
||||
for NSIZE in 8 9 10 12 14 16 18 20 24 ; do \
|
||||
if [ $${NSIZE} -lt 11 ] ; then \
|
||||
TSIZE=11 ;\
|
||||
else \
|
||||
TSIZE=$${NSIZE} ;\
|
||||
fi ;\
|
||||
TFONT=`${ECHO} $${LINE} | ${SED} -e "s,--0-0-0-0-,--$${TSIZE}-$${TSIZE}0-75-75-,g"` ;\
|
||||
NFONT=`${ECHO} $${LINE} | ${SED} -e "s,--0-0-0-0-,--$${NSIZE}-$${NSIZE}0-0-0-,g; s,truetype,netscape,g"` ;\
|
||||
${ECHO} "\"$${NFONT}\" \"$${TFONT}\"" >>${WRKDIR}/webfonts/fonts.alias ;\
|
||||
done ;\
|
||||
${ECHO} -n "." ;\
|
||||
done
|
||||
@cp ${WRKDIR}/webfonts/fonts.alias ${WRKDIR}/webfonts/fonts.tmp
|
||||
@grep -- "-netscape-Arial-" ${WRKDIR}/webfonts/fonts.tmp | \
|
||||
${SED} -e "s,-netscape-Arial-,-netscape-MS Sans Serif-,g" >>${WRKDIR}/webfonts/fonts.alias
|
||||
@grep -- "-netscape-Arial-" ${WRKDIR}/webfonts/fonts.tmp | \
|
||||
${SED} -e "s,-netscape-Arial-,-netscape-helvetica-,g" >>${WRKDIR}/webfonts/fonts.alias
|
||||
@grep -- "-netscape-Times New Roman-" ${WRKDIR}/webfonts/fonts.tmp | \
|
||||
${SED} -e "s,-netscape-Times New Roman-,-netscape-times-,g" >>${WRKDIR}/webfonts/fonts.alias
|
||||
@grep -- "-netscape-Courier New-" ${WRKDIR}/webfonts/fonts.tmp | \
|
||||
${SED} -e "s,-netscape-Courier New-,-netscape-courier-,g" >>${WRKDIR}/webfonts/fonts.alias
|
||||
@${RM} -f ${WRKDIR}/webfonts/fonts.tmp
|
||||
@${ECHO} ""
|
||||
.endif
|
||||
@${CHMOD} 644 ${WRKDIR}/webfonts/*
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${PREFIX}/lib/X11/fonts/webfonts
|
||||
@${CP} ${WRKDIR}/webfonts/* ${PREFIX}/lib/X11/fonts/webfonts
|
||||
@${CHMOD} 755 ${PREFIX}/lib/X11/fonts/webfonts
|
||||
@${CHMOD} 644 ${PREFIX}/lib/X11/fonts/webfonts/*
|
||||
|
||||
post-install:
|
||||
@${ECHO} ""
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
@${ECHO} ""
|
||||
|
||||
.include <bsd.port.mk>
|
11
x11-fonts/webfonts/distinfo
Normal file
11
x11-fonts/webfonts/distinfo
Normal file
@ -0,0 +1,11 @@
|
||||
MD5 (webfonts/andale32.exe) = cbdc2fdd7d2ed0832795e86a8b9ee19a
|
||||
MD5 (webfonts/arial32.exe) = 9637df0e91703179f0723ec095a36cb5
|
||||
MD5 (webfonts/arialb32.exe) = c9089ae0c3b3d0d8c4b0a95979bb9ff0
|
||||
MD5 (webfonts/comic32.exe) = 2b30de40bb5e803a0452c7715fc835d1
|
||||
MD5 (webfonts/courie32.exe) = 4e412c772294403ab62fb2d247d85c60
|
||||
MD5 (webfonts/georgi32.exe) = 4d90016026e2da447593b41a8d8fa8bd
|
||||
MD5 (webfonts/impact32.exe) = 7907c7dd6684e9bade91cff82683d9d7
|
||||
MD5 (webfonts/times32.exe) = ed39c8ef91b9fb80f76f702568291bd5
|
||||
MD5 (webfonts/trebuc32.exe) = d682547558bdeff6e4cd0454a4d6c18e
|
||||
MD5 (webfonts/verdan32.exe) = 12d2a75f8156e10607be1eaa8e8ef120
|
||||
MD5 (webfonts/webdin32.exe) = 230a1d13a365b22815f502eb24d9149b
|
1
x11-fonts/webfonts/pkg-comment
Normal file
1
x11-fonts/webfonts/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
TrueType core fonts for the Web
|
9
x11-fonts/webfonts/pkg-descr
Normal file
9
x11-fonts/webfonts/pkg-descr
Normal file
@ -0,0 +1,9 @@
|
||||
This is a collection of high quality and free to use TrueType fonts created by
|
||||
Monotype and Microsoft Typography. It consists of the following families:
|
||||
|
||||
Times New Roman, Courier New, Arial, Arial Black, Impact, Trebuchet MS, Andale
|
||||
Mono, Verdana, Georgia and Comic Sans.
|
||||
|
||||
WWW: http://www.microsoft.com/typography/fontpack/
|
||||
|
||||
-- K. Konstantinidis <kkonstan@daemon.gr>
|
13
x11-fonts/webfonts/pkg-message
Normal file
13
x11-fonts/webfonts/pkg-message
Normal file
@ -0,0 +1,13 @@
|
||||
IMPORTANT - READ CAREFULLY: You may not use these fonts if you do not agree to
|
||||
the terms of the Microsoft End-User License Agreement ("EULA"). You will find
|
||||
the EULA at ${X11BASE}/lib/X11/fonts/webfonts/LICENSE.
|
||||
|
||||
If you read and agreed to the EULA, you can start using the fonts. To be able
|
||||
to use them, you must add ${X11BASE}/lib/X11/fonts/webfonts to the X font path
|
||||
by either:
|
||||
|
||||
xset +fp ${X11BASE}/lib/X11/fonts/webfonts
|
||||
xset fp rehash
|
||||
|
||||
or by adding it to your X server configuration file. If you're using XFree86,
|
||||
check XF86Config(5) for detailed instructions.
|
35
x11-fonts/webfonts/pkg-plist
Normal file
35
x11-fonts/webfonts/pkg-plist
Normal file
@ -0,0 +1,35 @@
|
||||
lib/X11/fonts/webfonts/LICENSE
|
||||
lib/X11/fonts/webfonts/andalemo.ttf
|
||||
lib/X11/fonts/webfonts/arial.ttf
|
||||
lib/X11/fonts/webfonts/arialbd.ttf
|
||||
lib/X11/fonts/webfonts/arialbi.ttf
|
||||
lib/X11/fonts/webfonts/ariali.ttf
|
||||
lib/X11/fonts/webfonts/ariblk.ttf
|
||||
lib/X11/fonts/webfonts/comic.ttf
|
||||
lib/X11/fonts/webfonts/comicbd.ttf
|
||||
lib/X11/fonts/webfonts/cour.ttf
|
||||
lib/X11/fonts/webfonts/courbd.ttf
|
||||
lib/X11/fonts/webfonts/courbi.ttf
|
||||
lib/X11/fonts/webfonts/couri.ttf
|
||||
lib/X11/fonts/webfonts/fonts.alias
|
||||
lib/X11/fonts/webfonts/fonts.dir
|
||||
lib/X11/fonts/webfonts/fonts.scale
|
||||
lib/X11/fonts/webfonts/georgia.ttf
|
||||
lib/X11/fonts/webfonts/georgiab.ttf
|
||||
lib/X11/fonts/webfonts/georgiai.ttf
|
||||
lib/X11/fonts/webfonts/georgiaz.ttf
|
||||
lib/X11/fonts/webfonts/impact.ttf
|
||||
lib/X11/fonts/webfonts/times.ttf
|
||||
lib/X11/fonts/webfonts/timesbd.ttf
|
||||
lib/X11/fonts/webfonts/timesbi.ttf
|
||||
lib/X11/fonts/webfonts/timesi.ttf
|
||||
lib/X11/fonts/webfonts/trebuc.ttf
|
||||
lib/X11/fonts/webfonts/trebucbd.ttf
|
||||
lib/X11/fonts/webfonts/trebucbi.ttf
|
||||
lib/X11/fonts/webfonts/trebucit.ttf
|
||||
lib/X11/fonts/webfonts/verdana.ttf
|
||||
lib/X11/fonts/webfonts/verdanab.ttf
|
||||
lib/X11/fonts/webfonts/verdanai.ttf
|
||||
lib/X11/fonts/webfonts/verdanaz.ttf
|
||||
lib/X11/fonts/webfonts/webdings.ttf
|
||||
@dirrm lib/X11/fonts/webfonts
|
Loading…
Reference in New Issue
Block a user