aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fonts/libXft
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2003-04-04 14:55:23 +0800
committermarcus <marcus@FreeBSD.org>2003-04-04 14:55:23 +0800
commit779f68a2329b9be0f2f33a5c4f1b853b282bb733 (patch)
tree846e5185a682ad04e8793795f6fb5acd8dc857cd /x11-fonts/libXft
parent7713c5824966140a09514d44a1ea45577b7cb6e0 (diff)
downloadfreebsd-ports-gnome-779f68a2329b9be0f2f33a5c4f1b853b282bb733.tar.gz
freebsd-ports-gnome-779f68a2329b9be0f2f33a5c4f1b853b282bb733.tar.zst
freebsd-ports-gnome-779f68a2329b9be0f2f33a5c4f1b853b282bb733.zip
Borrow a little from kdelibs3, and add a dependency on the scalable fonts.
Also, run fc-cache here as well as in fontconfig just to make sure we have some fonts installed.
Diffstat (limited to 'x11-fonts/libXft')
-rw-r--r--x11-fonts/libXft/Makefile16
-rw-r--r--x11-fonts/libXft/files/pkg-install.in9
2 files changed, 21 insertions, 4 deletions
diff --git a/x11-fonts/libXft/Makefile b/x11-fonts/libXft/Makefile
index 48c87b152d5d..37eba1d6c816 100644
--- a/x11-fonts/libXft/Makefile
+++ b/x11-fonts/libXft/Makefile
@@ -7,7 +7,7 @@
PORTNAME= Xft
PORTVERSION= 2.1
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= x11-fonts
MASTER_SITES= http://fontconfig.org/fontconfig/release/
DISTNAME= fcpackage.${PORTVERSION:S/./_/}
@@ -16,13 +16,18 @@ MAINTAINER= gnome@FreeBSD.org
COMMENT= A client-sided font API for X applications
LIB_DEPENDS= fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig
+RUN_DEPENDS= ${FONTSCALE}:${PORTSDIR}/x11-fonts/XFree86-4-fontScalable \
+ ${FONTENCOD}:${PORTSDIR}/x11-fonts/XFree86-4-fontEncodings
+
+FONTSCALE= ${X11BASE}/lib/X11/fonts/TTF/luximb.ttf
+FONTENCOD= ${X11BASE}/lib/X11/fonts/encodings/tcvn-0.enc
USE_GMAKE= yes
USE_X_PREFIX= yes
INSTALLS_SHLIB= yes
GNU_CONFIGURE= yes
USE_REINPLACE= yes
-CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-unknown-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include" \
LIBS="-L${X11BASE}/lib"
WRKSRC= ${WRKDIR}/${DISTNAME}/Xft
@@ -31,8 +36,6 @@ MAN3= Xft.3
.include <bsd.port.pre.mk>
-# TODO Add a check to make sure we're not using XFree86 4.3.x which will
-# have Xft2 included by default.
.if ${XFREE86_VERSION} == 3
BROKEN= Xft2 requires XFree86 4.x to build.
.endif
@@ -45,5 +48,10 @@ pre-install:
post-install:
@${INSTALL_DATA} ${WRKSRC}/Xft.man ${PREFIX}/man/man3/Xft.3
+ @${SED} -e 's|%%X11BASE%%|${X11BASE}|' < ${FILESDIR}/pkg-install.in \
+ > ${PKGINSTALL}
+.if !defined(PACKAGE_BUILDING)
+ @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+.endif
.include <bsd.port.post.mk>
diff --git a/x11-fonts/libXft/files/pkg-install.in b/x11-fonts/libXft/files/pkg-install.in
new file mode 100644
index 000000000000..a45989535273
--- /dev/null
+++ b/x11-fonts/libXft/files/pkg-install.in
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+PATH=/bin:/usr/bin:/sbin:/usr/sbin:%%X11BASE%%/bin
+export PATH
+
+if [ "$2" = "POST-INSTALL" ]; then
+ echo "Running fc-cache to build fontconfig caches..."
+ fc-cache -f -v
+fi