aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclive <clive@FreeBSD.org>2001-01-20 19:14:29 +0800
committerclive <clive@FreeBSD.org>2001-01-20 19:14:29 +0800
commit35a2f3b0c131bdd113a6f8d27715d073d07e677e (patch)
treed5ac379868303ce9357295f9b3a6add7b5f397ee
parent4df17cee851123dfd91eb4e2a7d57eb252b503e9 (diff)
downloadfreebsd-ports-gnome-35a2f3b0c131bdd113a6f8d27715d073d07e677e.tar.gz
freebsd-ports-gnome-35a2f3b0c131bdd113a6f8d27715d073d07e677e.tar.zst
freebsd-ports-gnome-35a2f3b0c131bdd113a6f8d27715d073d07e677e.zip
New port: TrueType core fonts for the Web.
PR: 24431 Submitted by: Konstantinos Konstantinidis <kkonstan@duth.gr>
-rw-r--r--x11-fonts/Makefile1
-rw-r--r--x11-fonts/webfonts/Makefile94
-rw-r--r--x11-fonts/webfonts/distinfo11
-rw-r--r--x11-fonts/webfonts/pkg-comment1
-rw-r--r--x11-fonts/webfonts/pkg-descr9
-rw-r--r--x11-fonts/webfonts/pkg-message13
-rw-r--r--x11-fonts/webfonts/pkg-plist35
7 files changed, 164 insertions, 0 deletions
diff --git a/x11-fonts/Makefile b/x11-fonts/Makefile
index c955c27b9679..e89a35eb9e24 100644
--- a/x11-fonts/Makefile
+++ b/x11-fonts/Makefile
@@ -24,6 +24,7 @@
SUBDIR += tkfont
SUBDIR += ttmkfdir
SUBDIR += urwfonts
+ SUBDIR += webfonts
SUBDIR += xfed
SUBDIR += xmbdfed
diff --git a/x11-fonts/webfonts/Makefile b/x11-fonts/webfonts/Makefile
new file mode 100644
index 000000000000..604f2db80d6c
--- /dev/null
+++ b/x11-fonts/webfonts/Makefile
@@ -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>
diff --git a/x11-fonts/webfonts/distinfo b/x11-fonts/webfonts/distinfo
new file mode 100644
index 000000000000..77c1677ac9fd
--- /dev/null
+++ b/x11-fonts/webfonts/distinfo
@@ -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
diff --git a/x11-fonts/webfonts/pkg-comment b/x11-fonts/webfonts/pkg-comment
new file mode 100644
index 000000000000..95324d8237fb
--- /dev/null
+++ b/x11-fonts/webfonts/pkg-comment
@@ -0,0 +1 @@
+TrueType core fonts for the Web
diff --git a/x11-fonts/webfonts/pkg-descr b/x11-fonts/webfonts/pkg-descr
new file mode 100644
index 000000000000..59705a43fe2e
--- /dev/null
+++ b/x11-fonts/webfonts/pkg-descr
@@ -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>
diff --git a/x11-fonts/webfonts/pkg-message b/x11-fonts/webfonts/pkg-message
new file mode 100644
index 000000000000..cac2f3144b94
--- /dev/null
+++ b/x11-fonts/webfonts/pkg-message
@@ -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.
diff --git a/x11-fonts/webfonts/pkg-plist b/x11-fonts/webfonts/pkg-plist
new file mode 100644
index 000000000000..d973381c77be
--- /dev/null
+++ b/x11-fonts/webfonts/pkg-plist
@@ -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