From 042ccee8b82ef7c43c0c3dfb9adf2405528fe8af Mon Sep 17 00:00:00 2001 From: Joe Marcus Clarke Date: Fri, 4 Apr 2003 06:55:23 +0000 Subject: 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. --- x11-fonts/Xft/Makefile | 16 ++++++++++++---- x11-fonts/Xft/files/pkg-install.in | 9 +++++++++ 2 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 x11-fonts/Xft/files/pkg-install.in (limited to 'x11-fonts/Xft') diff --git a/x11-fonts/Xft/Makefile b/x11-fonts/Xft/Makefile index 48c87b152d5d..37eba1d6c816 100644 --- a/x11-fonts/Xft/Makefile +++ b/x11-fonts/Xft/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 -# 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 diff --git a/x11-fonts/Xft/files/pkg-install.in b/x11-fonts/Xft/files/pkg-install.in new file mode 100644 index 000000000000..a45989535273 --- /dev/null +++ b/x11-fonts/Xft/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 -- cgit v1.2.3