diff options
Diffstat (limited to 'x11-fonts')
-rw-r--r-- | x11-fonts/fontconfig/Makefile | 73 | ||||
-rw-r--r-- | x11-fonts/fontconfig/distinfo | 3 | ||||
-rw-r--r-- | x11-fonts/fontconfig/files/patch-Makefile.in | 31 | ||||
-rw-r--r-- | x11-fonts/fontconfig/files/pkg-install.in | 9 | ||||
-rw-r--r-- | x11-fonts/fontconfig/pkg-descr | 18 | ||||
-rw-r--r-- | x11-fonts/fontconfig/pkg-plist | 61 |
6 files changed, 195 insertions, 0 deletions
diff --git a/x11-fonts/fontconfig/Makefile b/x11-fonts/fontconfig/Makefile new file mode 100644 index 000000000..b832d79b9 --- /dev/null +++ b/x11-fonts/fontconfig/Makefile @@ -0,0 +1,73 @@ +# New ports collection makefile for: fontconfig +# Date created: 06 October 2002 +# Whom: Joe Marcus Clarke <marcus@FreeBSD.org> +# +# $FreeBSD: ports/x11-fonts/fontconfig/Makefile,v 1.59 2006/10/16 20:42:01 mezz Exp $ +# $MCom: ports/x11-fonts/fontconfig/Makefile,v 1.6 2006/09/10 00:51:16 mezz Exp $ +# + +PORTNAME= fontconfig +PORTVERSION= 2.4.1 +PORTREVISION?= 0 +PORTEPOCH?= 1 +CATEGORIES= x11-fonts +MASTER_SITES= http://fontconfig.org/release/ + +MAINTAINER= gnome@FreeBSD.org +COMMENT= An XML-based font configuration API for X Windows + +.if !defined(REFERENCE_PORT) + +LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 \ + expat.6:${PORTSDIR}/textproc/expat2 + +USE_GMAKE= yes +PREFIX?= ${X11BASE} +USE_LDCONFIG= yes +USE_AUTOTOOLS= libtool:15 +USE_GNOME= gnomehack gnometarget pkgconfig ltverhack +CONFIGURE_ARGS= --with-confdir=${PREFIX}/etc/fonts \ + --with-expat-includes=${LOCALBASE}/include \ + --with-expat-lib=${LOCALBASE}/lib \ + --with-default-fonts=${X11BASE}/lib/X11/fonts \ + --with-cache-dir=/var/db/fontconfig \ + --without-add-fonts \ + --disable-docs +CONFIGURE_ENV= HASDOCBOOK=no +MAKE_ENV= LC_ALL=C +PKGINSTALL= ${WRKDIR}/pkg-install + +MAN5= fonts-conf.5 +PORTDOCS= fontconfig-user.html fontconfig-user.pdf fontconfig-user.txt + +.include <bsd.port.pre.mk> + +.if ${X_WINDOW_SYSTEM:L} == xfree86-3 +MTREE_FILE= /etc/mtree/BSD.x11.dist +.else +MTREE_FILE= /etc/mtree/BSD.x11-4.dist +.endif + +post-install: +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${DOCSDIR} +.endif + ${INSTALL_MAN} ${MAN5:S|^|${WRKSRC}/doc/|} ${PREFIX}/man/man5 + if [ ! -f ${PREFIX}/etc/fonts/fonts.conf ]; then \ + ${INSTALL_DATA} ${WRKSRC}/fonts.conf ${PREFIX}/etc/fonts/fonts.conf; \ + ${INSTALL_DATA} ${WRKSRC}/fonts.conf ${PREFIX}/etc/fonts/fonts.conf.default; \ + else \ + ${INSTALL_DATA} ${WRKSRC}/fonts.conf ${PREFIX}/etc/fonts/fonts.conf.default; \ + fi + @${SED} -e 's|%%PREFIX%%|${PREFIX}| ; \ + s|%%X11BASE%%|${X11BASE}|' < ${FILESDIR}/pkg-install.in \ + > ${PKGINSTALL} +.if !defined(PACKAGE_BUILDING) + @${LDCONFIG} -m ${PREFIX}/lib + @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL +.endif + +.include <bsd.port.post.mk> + +.endif diff --git a/x11-fonts/fontconfig/distinfo b/x11-fonts/fontconfig/distinfo new file mode 100644 index 000000000..025e739fa --- /dev/null +++ b/x11-fonts/fontconfig/distinfo @@ -0,0 +1,3 @@ +MD5 (fontconfig-2.4.1.tar.gz) = 108f9a03fa9ed9dd779cc7ca236da557 +SHA256 (fontconfig-2.4.1.tar.gz) = 13f59a7cd5190983412689495c399444cf73c1ced0813149e4480c8848bb9f17 +SIZE (fontconfig-2.4.1.tar.gz) = 1270946 diff --git a/x11-fonts/fontconfig/files/patch-Makefile.in b/x11-fonts/fontconfig/files/patch-Makefile.in new file mode 100644 index 000000000..0ebabf44a --- /dev/null +++ b/x11-fonts/fontconfig/files/patch-Makefile.in @@ -0,0 +1,31 @@ +--- Makefile.in.orig Sat Nov 4 14:54:15 2006 ++++ Makefile.in Sat Nov 4 14:54:46 2006 +@@ -785,28 +785,6 @@ $(srcdir)/ChangeLog: + .PHONY: ChangeLog $(srcdir)/ChangeLog + + install-data-local: +- $(mkinstalldirs) $(DESTDIR)$(configdir) $(DESTDIR)$(fc_cachedir) +- if [ -f $(DESTDIR)$(configdir)/fonts.conf ]; then \ +- echo "backing up existing $(DESTDIR)$(configdir)/fonts.conf"; \ +- mv $(DESTDIR)$(configdir)/fonts.conf $(DESTDIR)$(configdir)/fonts.conf.bak; \ +- fi +- if [ -f $(srcdir)/fonts.conf ]; then \ +- echo " $(INSTALL_DATA) $(srcdir)/fonts.conf $(DESTDIR)$(configdir)/fonts.conf"; \ +- $(INSTALL_DATA) $(srcdir)/fonts.conf $(DESTDIR)$(configdir)/fonts.conf; \ +- else if [ -f fonts.conf ]; then \ +- echo " $(INSTALL_DATA) fonts.conf $(DESTDIR)$(configdir)/fonts.conf"; \ +- $(INSTALL_DATA) fonts.conf $(DESTDIR)$(configdir)/fonts.conf; \ +- fi; fi +- @(if $(RUN_FC_CACHE_TEST); then \ +- echo " fc-cache/fc-cache -s -f -v"; \ +- fc-cache/fc-cache -s -f -v; \ +- else \ +- echo "***"; \ +- echo "*** Warning: fonts.cache not built"; \ +- echo "***"; \ +- echo "*** Generate this file manually on host system using fc-cache"; \ +- echo "***"; \ +- fi) + + uninstall-local: + if [ -f $(srcdir)/fonts.conf ]; then \ diff --git a/x11-fonts/fontconfig/files/pkg-install.in b/x11-fonts/fontconfig/files/pkg-install.in new file mode 100644 index 000000000..b00502db5 --- /dev/null +++ b/x11-fonts/fontconfig/files/pkg-install.in @@ -0,0 +1,9 @@ +#!/bin/sh + +PATH=/bin:/usr/bin:/sbin:/usr/sbin:%%PREFIX%%/bin +export PATH + +if [ "$2" = "POST-INSTALL" ]; then + echo "Running fc-cache to build fontconfig cache..." + fc-cache -f -v +fi diff --git a/x11-fonts/fontconfig/pkg-descr b/x11-fonts/fontconfig/pkg-descr new file mode 100644 index 000000000..7595ac232 --- /dev/null +++ b/x11-fonts/fontconfig/pkg-descr @@ -0,0 +1,18 @@ +Fontconfig does the following: + + * discover new fonts when installed automatically, removing a common source + of configuration problems. + * perform font name substitution, so that appropriate alternative fonts can + be selected if fonts are missing. + * identify the set of fonts required to completely cover a set of languages. + * have GUI configuration tools built as it uses an XML-based configuration + file (though with autodiscovery, we believe this need is minimized). + * efficiently and quickly find the fonts you need among the set of fonts + you have installed, even if you have installed thousands of fonts, while + minimzing memory usage. + * be used in concert with the X Render Extension and FreeType to implement + high quality, anti-aliased and subpixel rendered text on a display. + +-- keithp + +WWW: http://fontconfig.org/ diff --git a/x11-fonts/fontconfig/pkg-plist b/x11-fonts/fontconfig/pkg-plist new file mode 100644 index 000000000..05f221ba9 --- /dev/null +++ b/x11-fonts/fontconfig/pkg-plist @@ -0,0 +1,61 @@ +bin/fc-cache +bin/fc-cat +bin/fc-list +bin/fc-match +etc/fonts/conf.avail/10-autohint.conf +etc/fonts/conf.avail/10-no-sub-pixel.conf +etc/fonts/conf.avail/10-sub-pixel-bgr.conf +etc/fonts/conf.avail/10-sub-pixel-rgb.conf +etc/fonts/conf.avail/10-sub-pixel-vbgr.conf +etc/fonts/conf.avail/10-sub-pixel-vrgb.conf +etc/fonts/conf.avail/10-unhinted.conf +etc/fonts/conf.avail/20-fix-globaladvance.conf +etc/fonts/conf.avail/20-lohit-gujarati.conf +etc/fonts/conf.avail/20-unhint-small-vera.conf +etc/fonts/conf.avail/30-amt-aliases.conf +etc/fonts/conf.avail/30-urw-aliases.conf +etc/fonts/conf.avail/40-generic.conf +etc/fonts/conf.avail/49-sansserif.conf +etc/fonts/conf.avail/50-user.conf +etc/fonts/conf.avail/51-local.conf +etc/fonts/conf.avail/60-latin.conf +etc/fonts/conf.avail/65-fonts-persian.conf +etc/fonts/conf.avail/65-nonlatin.conf +etc/fonts/conf.avail/69-unifont.conf +etc/fonts/conf.avail/70-no-bitmaps.conf +etc/fonts/conf.avail/70-yes-bitmaps.conf +etc/fonts/conf.avail/80-delicious.conf +etc/fonts/conf.avail/90-synthetic.conf +etc/fonts/conf.avail/README +etc/fonts/conf.d/20-fix-globaladvance.conf +etc/fonts/conf.d/20-lohit-gujarati.conf +etc/fonts/conf.d/20-unhint-small-vera.conf +etc/fonts/conf.d/30-amt-aliases.conf +etc/fonts/conf.d/30-urw-aliases.conf +etc/fonts/conf.d/40-generic.conf +etc/fonts/conf.d/49-sansserif.conf +etc/fonts/conf.d/50-user.conf +etc/fonts/conf.d/51-local.conf +etc/fonts/conf.d/60-latin.conf +etc/fonts/conf.d/65-fonts-persian.conf +etc/fonts/conf.d/65-nonlatin.conf +etc/fonts/conf.d/69-unifont.conf +etc/fonts/conf.d/80-delicious.conf +etc/fonts/conf.d/90-synthetic.conf +@unexec if cmp -s %D/etc/fonts/fonts.conf %D/etc/fonts/fonts.conf.default; then rm -f %D/etc/fonts/fonts.conf; fi +etc/fonts/fonts.conf.default +@exec [ -f %B/fonts.conf ] || cp %B/%f %B/fonts.conf +etc/fonts/fonts.dtd +include/fontconfig/fcfreetype.h +include/fontconfig/fcprivate.h +include/fontconfig/fontconfig.h +lib/libfontconfig.a +lib/libfontconfig.la +lib/libfontconfig.so +lib/libfontconfig.so.1 +libdata/pkgconfig/fontconfig.pc +@dirrm include/fontconfig +@dirrmtry etc/fonts/conf.d +@dirrmtry etc/fonts/conf.avail +@dirrmtry etc/fonts +@unexec rm -rf /var/db/fontconfig 2>/dev/null || true |