aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fonts
diff options
context:
space:
mode:
authormi <mi@FreeBSD.org>2001-05-02 03:50:14 +0800
committermi <mi@FreeBSD.org>2001-05-02 03:50:14 +0800
commit95237deda54f91f7f5893db40140c3321176f80b (patch)
tree62c6d49b072f376e23417aa898f3811194e8eb41 /x11-fonts
parent93b229803e1f6db7e6d73fcef83ac0c32af88cf7 (diff)
downloadfreebsd-ports-gnome-95237deda54f91f7f5893db40140c3321176f80b.tar.gz
freebsd-ports-gnome-95237deda54f91f7f5893db40140c3321176f80b.tar.zst
freebsd-ports-gnome-95237deda54f91f7f5893db40140c3321176f80b.zip
Automate the download and install of the .ttf fonts MicroSoft is
giving away on http://www.microsoft.com/typography/fontpack/default.htm As much as their "Install these high quality TrueType fonts, and whenever you visit a Web site that specifies them, you'll see pages exactly as the site designer intended" irritates me, the fonts are usefull and contain multiple character sets too. The MicroSoft's EULA: http://www.microsoft.com/typography/fontpack/eula.htm allows for unlimited copying and distribution, but not for profit, hence the disabled package building :( The fonts can be used for other-than-X11 applications and do NOT need the X_PREFIX.
Diffstat (limited to 'x11-fonts')
-rw-r--r--x11-fonts/Makefile1
-rw-r--r--x11-fonts/ms-fonts/Makefile46
-rw-r--r--x11-fonts/ms-fonts/distinfo9
-rw-r--r--x11-fonts/ms-fonts/pkg-comment1
-rw-r--r--x11-fonts/ms-fonts/pkg-descr15
-rw-r--r--x11-fonts/ms-fonts/pkg-plist26
6 files changed, 98 insertions, 0 deletions
diff --git a/x11-fonts/Makefile b/x11-fonts/Makefile
index 9b3f895c5a6d..601b13bbbbcd 100644
--- a/x11-fonts/Makefile
+++ b/x11-fonts/Makefile
@@ -18,6 +18,7 @@
SUBDIR += intlfonts
SUBDIR += jmk-x11-fonts
SUBDIR += mozilla-fonts
+ SUBDIR += ms-fonts
SUBDIR += nexfontsel
SUBDIR += nucleus
SUBDIR += p5-type1inst
diff --git a/x11-fonts/ms-fonts/Makefile b/x11-fonts/ms-fonts/Makefile
new file mode 100644
index 000000000000..20741a0c1249
--- /dev/null
+++ b/x11-fonts/ms-fonts/Makefile
@@ -0,0 +1,46 @@
+# New ports collection makefile for: ms-fonts
+# Date created: May 1, 2001
+# Whom: mi@aldan.algebra.com
+#
+# $FreeBSD$
+#
+
+PORTNAME= ms-fonts
+PORTVERSION= 1.0
+CATEGORIES= x11-fonts
+MASTER_SITES= http://www.microsoft.com/typography/downloads/ \
+ http://www.asia.microsoft.com/typography/downloads/ \
+ http://www.eu.microsoft.com/typography/downloads/
+DISTFILES= mtcom.exe verdana.exe georgia.exe webdings.exe trebuc.exe \
+ comic.exe ariblk.exe impact.exe times.exe
+DIST_SUBDIR= ${PORTNAME}
+
+MAINTAINER= mi@aldan.algebra.com
+
+BUILD_DEPENDS= ttmkfdir:${PORTSDIR}/x11-fonts/ttmkfdir
+
+USE_ZIP= yes
+EXTRACT_BEFORE_ARGS= -oL
+NO_WRKSUBDIR= yes
+INST_DIR= share/${PORTNAME}
+PLIST_SUB+= INST_DIR="${INST_DIR}"
+NO_PACKAGE= EULA: may not be distributed for profit either on a standalone \
+ basis or included as part of your own product.
+
+# My impression is, koi8-ru is what later became koi8-u, but I've been
+# wrong a few times in the past. Let me know, it happened again. Also,
+# there may be more charset translations needed. -mi
+do-build:
+ ${PREFIX}/bin/ttmkfdir -d ${WRKDIR} | ${SED} s/koi8-ru/koi8-u/ \
+ > ${WRKDIR}/fonts.dir
+
+do-install:
+ ${MKDIR} "${PREFIX}/${INST_DIR}"
+ ${INSTALL_DATA} ${WRKDIR}/*.ttf ${WRKDIR}/fonts.dir "${PREFIX}/${INST_DIR}"
+ ${TR} -d \\015 < ${WRKDIR}/readme.txt > "${PREFIX}/${INST_DIR}/eula.txt"
+ ${LN} -s fonts.dir "${PREFIX}/${INST_DIR}/fonts.scale"
+
+post-install:
+ @${SED} 's%/usr/local%${PREFIX}%g' < ${DESCR}
+
+.include <bsd.port.mk>
diff --git a/x11-fonts/ms-fonts/distinfo b/x11-fonts/ms-fonts/distinfo
new file mode 100644
index 000000000000..c7007e682f0d
--- /dev/null
+++ b/x11-fonts/ms-fonts/distinfo
@@ -0,0 +1,9 @@
+MD5 (ms-fonts/mtcom.exe) = 80d910102951f5411dc67fe6ca86985e
+MD5 (ms-fonts/verdana.exe) = f86beb2599910c01670509fed0c2e3f6
+MD5 (ms-fonts/georgia.exe) = aec8bc6aa9b4962c497e7778742b5abb
+MD5 (ms-fonts/webdings.exe) = cf953d35ece267e59a50fc24e92ae32c
+MD5 (ms-fonts/trebuc.exe) = 6ddd5f7d0809512fd471c2e10ca4dd72
+MD5 (ms-fonts/comic.exe) = 1b64cad08c0c0c90221374b54006cf88
+MD5 (ms-fonts/ariblk.exe) = 2018b18cb29007e0a3bb1c3e5b720e97
+MD5 (ms-fonts/impact.exe) = 62fe632f12ece14006c0445a02b0dbb0
+MD5 (ms-fonts/times.exe) = bbad1bd3dda1c2128279207874a922e7
diff --git a/x11-fonts/ms-fonts/pkg-comment b/x11-fonts/ms-fonts/pkg-comment
new file mode 100644
index 000000000000..036c59ca9f74
--- /dev/null
+++ b/x11-fonts/ms-fonts/pkg-comment
@@ -0,0 +1 @@
+MicroSoft's .ttf fonts available for free download
diff --git a/x11-fonts/ms-fonts/pkg-descr b/x11-fonts/ms-fonts/pkg-descr
new file mode 100644
index 000000000000..5cf9d7a4c320
--- /dev/null
+++ b/x11-fonts/ms-fonts/pkg-descr
@@ -0,0 +1,15 @@
+This is a set of True Type fonts available for download from MicroSoft's
+web-site. You can use them if your X-server supports .ttf fonts (or if
+you have other applications for fonts). A good thing about them is the
+multi-charset support.
+
+You'll have to add /usr/local/share/ms-fonts to your X font-path by
+either:
+
+$ xset fp+ /usr/local/share/ms-fonts
+$ xset fp rehash
+
+and/or by adding it to your X-server configuration file (usually
+/etc/X11/XF86Config or /etc/Xaccel.ini) and restarting the X-server.
+
+WWW: http://www.microsoft.com/typography/fontpack/
diff --git a/x11-fonts/ms-fonts/pkg-plist b/x11-fonts/ms-fonts/pkg-plist
new file mode 100644
index 000000000000..22ae9b2cff0f
--- /dev/null
+++ b/x11-fonts/ms-fonts/pkg-plist
@@ -0,0 +1,26 @@
+%%INST_DIR%%/ariblk.ttf
+%%INST_DIR%%/comic.ttf
+%%INST_DIR%%/comicbd.ttf
+%%INST_DIR%%/georgia.ttf
+%%INST_DIR%%/georgiab.ttf
+%%INST_DIR%%/georgiai.ttf
+%%INST_DIR%%/georgiaz.ttf
+%%INST_DIR%%/impact.ttf
+%%INST_DIR%%/monotype.ttf
+%%INST_DIR%%/times.ttf
+%%INST_DIR%%/timesb.ttf
+%%INST_DIR%%/timesi.ttf
+%%INST_DIR%%/timesz.ttf
+%%INST_DIR%%/trebuc.ttf
+%%INST_DIR%%/trebucbd.ttf
+%%INST_DIR%%/trebucbi.ttf
+%%INST_DIR%%/trebucit.ttf
+%%INST_DIR%%/verdana.ttf
+%%INST_DIR%%/verdanab.ttf
+%%INST_DIR%%/verdanai.ttf
+%%INST_DIR%%/verdanaz.ttf
+%%INST_DIR%%/webdings.ttf
+%%INST_DIR%%/eula.txt
+%%INST_DIR%%/fonts.dir
+%%INST_DIR%%/fonts.scale
+@dirrm %%INST_DIR%%