aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fonts/bitstream-vera
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2003-02-19 12:19:32 +0800
committermarcus <marcus@FreeBSD.org>2003-02-19 12:19:32 +0800
commitd39f9813e1d080bb0333f35856d791720127cd38 (patch)
tree2f193d68888397426a0daf6df6eec7e5720a64d8 /x11-fonts/bitstream-vera
parent7e27a28bf16712d1265b917be37486a99b76cc2b (diff)
downloadfreebsd-ports-graphics-d39f9813e1d080bb0333f35856d791720127cd38.tar.gz
freebsd-ports-graphics-d39f9813e1d080bb0333f35856d791720127cd38.tar.zst
freebsd-ports-graphics-d39f9813e1d080bb0333f35856d791720127cd38.zip
Add bitstream-vera, a collection of 10 high-quality TrueType fonts that
look really nice in GNOME 2. Inspired by: x11-fonts/webfonts
Diffstat (limited to 'x11-fonts/bitstream-vera')
-rw-r--r--x11-fonts/bitstream-vera/Makefile103
-rw-r--r--x11-fonts/bitstream-vera/distinfo1
-rw-r--r--x11-fonts/bitstream-vera/pkg-descr4
-rw-r--r--x11-fonts/bitstream-vera/pkg-message12
-rw-r--r--x11-fonts/bitstream-vera/pkg-plist18
5 files changed, 138 insertions, 0 deletions
diff --git a/x11-fonts/bitstream-vera/Makefile b/x11-fonts/bitstream-vera/Makefile
new file mode 100644
index 00000000000..d53b7e03478
--- /dev/null
+++ b/x11-fonts/bitstream-vera/Makefile
@@ -0,0 +1,103 @@
+# New ports collection makefile for: Bitstream Vera Font Family
+# Date created: February 18 2003
+# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= bitstream-vera
+PORTVERSION= 1.0
+CATEGORIES= x11-fonts
+MASTER_SITES= ${MASTER_SITE_GNOME}
+MASTER_SITE_SUBDIR= sources/${PORTNAME}/1.0
+DIST_SUBDIR= gnome2
+
+MAINTAINER= gnome@freebsd.org
+COMMENT= Bitstream Vera collection of 10 TrueType fonts
+
+BUILD_DEPENDS= ttmkfdir:${PORTSDIR}/x11-fonts/ttmkfdir \
+ fc-cache:${PORTSDIR}/x11-fonts/fontconfig
+
+USE_BZIP2= yes
+USE_X_PREFIX= yes
+
+NO_CDROM= "Restrictive license - may not distribute"
+NO_PACKAGE= "Restrictive license - may not distribute"
+
+PLIST_SUB= FONTSDIR="${FONTSDIR:S|${PREFIX}/||}"
+
+MSG_FILE= ${PKGDIR}/pkg-message
+PKGMESSAGE= ${WRKDIR}/pkg-message
+
+#
+# Local variables
+#
+
+FONTNAME= ${PORTNAME}
+FONTSDIR?= ${PREFIX}/lib/X11/fonts/${FONTNAME}
+TTFONTSDIR?= ${X11BASE}/lib/X11/fonts/TrueType
+
+TTMKFDIR_CMD?= ${X11BASE}/bin/ttmkfdir
+SORT?= sort
+
+.SILENT:
+
+#
+# Post-patch
+#
+
+post-patch:
+ ${SED} 's|%%FONTSDIR%%|${FONTSDIR}|g' ${MSG_FILE} > ${PKGMESSAGE}
+
+#
+# Build
+#
+
+do-build: make-fonts.scale make-fonts.dir
+
+make-fonts.scale:
+ ${TTMKFDIR_CMD} -c -d ${WRKSRC} | ${CAT} -n | ${SED} -e ' \
+ s,^ 1,100000,; \
+ ' | ${SORT} -r | ${CUT} -c 8- > ${WRKSRC}/fonts.scale
+
+make-fonts.dir:
+ ${CP} ${WRKSRC}/fonts.scale ${WRKSRC}/fonts.dir
+
+#
+# Install
+#
+
+do-install: install-fonts install-conf install-docs
+
+install-fonts:
+ ${MKDIR} ${FONTSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/*.ttf ${FONTSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/fonts.dir ${FONTSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/COPYRIGHT.TXT ${FONTSDIR}
+
+install-conf:
+ ${MKDIR} -p ${PREFIX}/etc/fonts
+ ${INSTALL_DATA} ${WRKSRC}/local.conf ${PREFIX}/etc/fonts
+
+install-docs:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/Bitstream_Vera_Fonts_README.html ${DOCSDIR}
+.endif
+
+#
+# Post-install
+#
+
+post-install: run-fc-cache display-message
+
+run-fc-cache:
+ ${ECHO_MSG} "===> Running fc-cache"
+ -${X11BASE}/bin/fc-cache -f -v
+
+display-message:
+ ${ECHO_MSG}
+ ${CAT} ${PKGMESSAGE}
+ ${ECHO_MSG}
+
+.include <bsd.port.mk>
diff --git a/x11-fonts/bitstream-vera/distinfo b/x11-fonts/bitstream-vera/distinfo
new file mode 100644
index 00000000000..f806b6273d7
--- /dev/null
+++ b/x11-fonts/bitstream-vera/distinfo
@@ -0,0 +1 @@
+MD5 (gnome2/bitstream-vera-1.0.tar.bz2) = 8abe72641df2a2409199f7323c92115f
diff --git a/x11-fonts/bitstream-vera/pkg-descr b/x11-fonts/bitstream-vera/pkg-descr
new file mode 100644
index 00000000000..a15e6b0d6a6
--- /dev/null
+++ b/x11-fonts/bitstream-vera/pkg-descr
@@ -0,0 +1,4 @@
+These are preliminary versions of the "Bitstream Vera" font family. They
+consist of 10 high-quality TrueType fonts for use with X. The final version
+of this package is expected to be released in March 2003, and will have a
+more generous copyright.
diff --git a/x11-fonts/bitstream-vera/pkg-message b/x11-fonts/bitstream-vera/pkg-message
new file mode 100644
index 00000000000..06d66e44e07
--- /dev/null
+++ b/x11-fonts/bitstream-vera/pkg-message
@@ -0,0 +1,12 @@
+IMPORTANT - READ CAREFULLY: Please read the COPYRIGHT included with these fonts
+before using. The copyright can be found at %%FONTSDIR%%/LICENSE. To use
+these fonts, follow the instructions below.
+
+Make sure that the freetype module is loaded. If it is not, add the following
+line to the "Modules" section of XF86Config:
+
+ Load "freetype"
+
+Add the following line to the "Files" section of XF86Config:
+
+ FontPath "%%FONTSDIR%%/"
diff --git a/x11-fonts/bitstream-vera/pkg-plist b/x11-fonts/bitstream-vera/pkg-plist
new file mode 100644
index 00000000000..ba5895099f0
--- /dev/null
+++ b/x11-fonts/bitstream-vera/pkg-plist
@@ -0,0 +1,18 @@
+etc/fonts/local.conf
+%%FONTSDIR%%/COPYRIGHT.TXT
+%%FONTSDIR%%/fonts.dir
+%%FONTSDIR%%/tt2001gn.ttf
+%%FONTSDIR%%/tt2002gn.ttf
+%%FONTSDIR%%/tt2003gn.ttf
+%%FONTSDIR%%/tt2004gn.ttf
+%%FONTSDIR%%/tt2005gn.ttf
+%%FONTSDIR%%/tt2007gn.ttf
+%%FONTSDIR%%/tt2009gn.ttf
+%%FONTSDIR%%/tt2010gn.ttf
+%%FONTSDIR%%/tt2011gn.ttf
+%%FONTSDIR%%/tt2012gn.ttf
+%%PORTDOCS%%share/doc/bitstream-vera/Bitstream_Vera_Fonts_README.html
+%%PORTDOCS%%@dirrm share/doc/bitstream-vera
+@unexec /bin/rm %D/%%FONTSDIR%%/fonts.cache-1 2>/dev/null || /usr/bin/true
+@dirrm %%FONTSDIR%%
+@exec %%X11BASE%%/bin/fc-cache -f -v