aboutsummaryrefslogtreecommitdiff
path: root/x11-fonts/fontconfig
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2003-01-21 16:19:47 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2003-01-21 16:19:47 +0000
commitd294b3066ccaea899eb57044f5ecdf0af54ac979 (patch)
treed7e1b7229d6441e808f67d4ae6ef8fc53836af67 /x11-fonts/fontconfig
parentc89feaeee55965a8878e61a45e320a5dc58e7f22 (diff)
downloadports-d294b3066ccaea899eb57044f5ecdf0af54ac979.tar.gz
ports-d294b3066ccaea899eb57044f5ecdf0af54ac979.zip
Notes
Diffstat (limited to 'x11-fonts/fontconfig')
-rw-r--r--x11-fonts/fontconfig/Makefile6
-rw-r--r--x11-fonts/fontconfig/pkg-install12
2 files changed, 18 insertions, 0 deletions
diff --git a/x11-fonts/fontconfig/Makefile b/x11-fonts/fontconfig/Makefile
index edcef2a7e8d3..6ddb7d338c86 100644
--- a/x11-fonts/fontconfig/Makefile
+++ b/x11-fonts/fontconfig/Makefile
@@ -7,6 +7,7 @@
PORTNAME= fontconfig
PORTVERSION= 2.1
+PORTREVISION= 1
CATEGORIES= x11-fonts
MASTER_SITES= http://www.fontconfig.org/fontconfig/release/
DISTNAME= fcpackage.${PORTVERSION:S/./_/}
@@ -32,4 +33,9 @@ WRKSRC= ${WRKDIR}/${DISTNAME}/fontconfig
pre-patch:
@${REINPLACE_CMD} -e 's|[(]LIBDIR[)]/pkgconfig|(prefix)/libdata/pkgconfig|g' ${WRKSRC}/Makefile.in
+post-install:
+.if !defined(PACKAGE_BUILDING)
+ @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+.endif
+
.include <bsd.port.mk>
diff --git a/x11-fonts/fontconfig/pkg-install b/x11-fonts/fontconfig/pkg-install
new file mode 100644
index 000000000000..a6228fb8397e
--- /dev/null
+++ b/x11-fonts/fontconfig/pkg-install
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+if [ -n "${PACKAGE_BUILDING}" ]; then
+ exit 0
+fi
+
+PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:${PATH}
+export PATH
+
+if [ "$2" = "POST-INSTALL" ]; then
+ fc-cache >/dev/null 2>&1
+fi