summaryrefslogtreecommitdiffstats
path: root/x11-toolkits/pango
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2003-04-04 16:13:22 +0000
committermarcus <marcus@FreeBSD.org>2003-04-04 16:13:22 +0000
commit3f40e7a7f61e9fcb587ec57225e0d8326757f0ae (patch)
tree797c8a37b7d89070bcacb98855d3eb2533fc8c05 /x11-toolkits/pango
parent5997c15b4e522232ccc7860f0cf26922b52de8aa (diff)
downloadFreeBSD-ports-3f40e7a7f61e9fcb587ec57225e0d8326757f0ae.zip
FreeBSD-ports-3f40e7a7f61e9fcb587ec57225e0d8326757f0ae.tar.gz
Add the dependency on scalable fonts here instead of Xft to avoid a
circular dependency in XFree86-clients.
Diffstat (limited to 'x11-toolkits/pango')
-rw-r--r--x11-toolkits/pango/Makefile13
-rw-r--r--x11-toolkits/pango/files/pkg-install.in9
2 files changed, 21 insertions, 1 deletions
diff --git a/x11-toolkits/pango/Makefile b/x11-toolkits/pango/Makefile
index 64175fc..5e8dc88 100644
--- a/x11-toolkits/pango/Makefile
+++ b/x11-toolkits/pango/Makefile
@@ -7,7 +7,7 @@
PORTNAME= pango
PORTVERSION= 1.2.1
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= x11-toolkits
MASTER_SITES= ${MASTER_SITE_GNOME:S,%SUBDIR%,sources/${PORTNAME}/1.2,} \
ftp://ftp.gtk.org/pub/gtk/v2.0/ \
@@ -22,6 +22,8 @@ BUILD_DEPENDS= freetype-config:${PORTSDIR}/print/freetype2
LIB_DEPENDS= glib-2.0.200:${PORTSDIR}/devel/glib20 \
Xft.2:${PORTSDIR}/x11-fonts/Xft \
intl.4:${PORTSDIR}/devel/gettext
+RUN_DEPENDS= ${FONTSCALE}:${PORTSDIR}/x11-fonts/XFree86-4-fontScalable \
+ ${FONTENCOD}:${PORTSDIR}/x11-fonts/XFree86-4-fontEncodings
USE_BZIP2= yes
USE_X_PREFIX= yes
@@ -46,9 +48,18 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/freetype2 \
CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
PLIST_SUB= VERSION="1.2.0"
+FONTSCALE= ${X11BASE}/lib/X11/fonts/TTF/luximb.ttf
+FONTENCOD= ${X11BASE}/lib/X11/fonts/encodings/tcvn-0.enc
+
post-patch:
@${FIND} ${WRKSRC}/pango/opentype -name "*.[ch]" | ${XARGS} \
${REINPLACE_CMD} -e 's|internal/tterrors\.h|fterrors.h| ; \
s|TT_Err_|FT_Err_|g'
+post-install:
+ @${SED} -e 's|%%X11BASE%%|${X11BASE}|' < ${FILESDIR}/pkg-install.in \
+ > ${PKGINSTALL}
+.if !defined(PACKAGE_BUILDING)
+ @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+.endif
.include <bsd.port.mk>
diff --git a/x11-toolkits/pango/files/pkg-install.in b/x11-toolkits/pango/files/pkg-install.in
new file mode 100644
index 0000000..d734df0
--- /dev/null
+++ b/x11-toolkits/pango/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 cache..."
+ fc-cache -f -v
+fi
OpenPOWER on IntegriCloud