summaryrefslogtreecommitdiff
path: root/x11-fonts
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2003-02-19 04:19:32 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2003-02-19 04:19:32 +0000
commit51d1468fd0edcb7e73d522da7eac632b8be9616d (patch)
treebfe0f1b2c25b00c5e3b378aef58a674ec04004da /x11-fonts
parentChase gimp-print's shared lib version. (diff)
Add bitstream-vera, a collection of 10 high-quality TrueType fonts that
look really nice in GNOME 2. Inspired by: x11-fonts/webfonts
Notes
Notes: svn path=/head/; revision=75849
Diffstat (limited to 'x11-fonts')
-rw-r--r--x11-fonts/Makefile1
-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
6 files changed, 139 insertions, 0 deletions
diff --git a/x11-fonts/Makefile b/x11-fonts/Makefile
index c9ec2720f76a..4982360e8161 100644
--- a/x11-fonts/Makefile
+++ b/x11-fonts/Makefile
@@ -12,6 +12,7 @@
SUBDIR += artwiz-fonts
SUBDIR += bdfresize
SUBDIR += bitmap-fonts
+ SUBDIR += bitstream-vera
SUBDIR += cyr-rfx
SUBDIR += etlfonts
SUBDIR += fontconfig
diff --git a/x11-fonts/bitstream-vera/Makefile b/x11-fonts/bitstream-vera/Makefile
new file mode 100644
index 000000000000..d53b7e03478e
--- /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 000000000000..f806b6273d71
--- /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 000000000000..a15e6b0d6a6d
--- /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 000000000000..06d66e44e07e
--- /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 000000000000..ba5895099f0d
--- /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