aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fonts/linux-f8-fontconfig
diff options
context:
space:
mode:
authorbsam <bsam@FreeBSD.org>2007-05-23 22:54:21 +0800
committerbsam <bsam@FreeBSD.org>2007-05-23 22:54:21 +0800
commite47aa8c7b5dcc09a42ad36607dbe5d37640d3b8e (patch)
treee945a40ecfab033f15217443e548a845edadb120 /x11-fonts/linux-f8-fontconfig
parentfc1fb17bbde8c0d5ea2bb74bc1fd29bbf2fb83a0 (diff)
downloadfreebsd-ports-gnome-e47aa8c7b5dcc09a42ad36607dbe5d37640d3b8e.tar.gz
freebsd-ports-gnome-e47aa8c7b5dcc09a42ad36607dbe5d37640d3b8e.tar.zst
freebsd-ports-gnome-e47aa8c7b5dcc09a42ad36607dbe5d37640d3b8e.zip
. change the prefix (/usr/X11 -> %{LOCALBASE}) at the configuration file; [1]
. do REINPLACE at post-patch instead of post-install; [2] . don't let the linux fc-cache mess up the native cache file (delete [3] the binary and the man); . add some comments to the Makefile. PR: 110632 [1] Submitted by: Karol Kwiatkowski <karol.kwiat at gmail.com> [1] Suggested by: pav [2], netchild [3] Approved by: portmgr (pav)
Diffstat (limited to 'x11-fonts/linux-f8-fontconfig')
-rw-r--r--x11-fonts/linux-f8-fontconfig/Makefile13
-rw-r--r--x11-fonts/linux-f8-fontconfig/pkg-plist2
2 files changed, 9 insertions, 6 deletions
diff --git a/x11-fonts/linux-f8-fontconfig/Makefile b/x11-fonts/linux-f8-fontconfig/Makefile
index e8e5eb54bf25..fd8d8c954c47 100644
--- a/x11-fonts/linux-f8-fontconfig/Makefile
+++ b/x11-fonts/linux-f8-fontconfig/Makefile
@@ -7,7 +7,7 @@
PORTNAME= fontconfig
PORTVERSION= 2.2.3
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= x11-fonts linux
DISTNAME= ${PORTNAME}-${PORTVERSION}-13
@@ -24,10 +24,15 @@ PLIST_SUB+= PORTVERSION="${PORTVERSION}"
BRANDELF_DIRS= usr/bin
+# We will use some other configuration file, so delete a linux one
+# Don't let the linux fc-cache mess up the native cache file
post-extract:
- ${RM} ${WRKSRC}/etc/fonts/fonts.conf
+ @${RM} ${WRKSRC}/etc/fonts/fonts.conf \
+ ${WRKSRC}/usr/bin/fc-cache \
+ ${WRKSRC}/usr/share/man/man1/fc-cache.1.gz
-post-install:
- ${INSTALL_DATA} ${FILESDIR}/fonts.conf ${PREFIX}/etc/fonts/fonts.conf
+# Here is our configuration file
+post-patch:
+ @${CAT} ${FILESDIR}/fonts.conf | ${SED} 's:/usr/X11R6:${LOCALBASE}:g' > ${WRKSRC}/etc/fonts/fonts.conf
.include <bsd.port.mk>
diff --git a/x11-fonts/linux-f8-fontconfig/pkg-plist b/x11-fonts/linux-f8-fontconfig/pkg-plist
index cb1f841b2938..918babda115a 100644
--- a/x11-fonts/linux-f8-fontconfig/pkg-plist
+++ b/x11-fonts/linux-f8-fontconfig/pkg-plist
@@ -1,7 +1,6 @@
etc/fonts/fonts.conf
etc/fonts/fonts.dtd
etc/fonts/local.conf
-usr/bin/fc-cache
usr/bin/fc-list
usr/lib/libfontconfig.so.1
usr/lib/libfontconfig.so.1.0.4
@@ -10,7 +9,6 @@ usr/share/doc/fontconfig-%%PORTVERSION%%/COPYING
usr/share/doc/fontconfig-%%PORTVERSION%%/README
usr/share/doc/fontconfig-%%PORTVERSION%%/fontconfig-user.html
usr/share/doc/fontconfig-%%PORTVERSION%%/fontconfig-user.txt
-usr/share/man/man1/fc-cache.1.gz
usr/share/man/man1/fc-list.1.gz
usr/share/man/man5/fonts-conf.5.gz
@dirrm etc/fonts