diff options
author | joerg <joerg@pkgsrc.org> | 2006-09-17 18:20:20 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-09-17 18:20:20 +0000 |
commit | 2ab0c4a3c43cb9d0636f3d5a38a3a28cf0ee571c (patch) | |
tree | 972155506af8090229ac3882379a504be4fc23cc /fonts/fontconfig | |
parent | 0a68ba3c414156d08e25670169e1e8d3c7116599 (diff) | |
download | pkgsrc-2ab0c4a3c43cb9d0636f3d5a38a3a28cf0ee571c.tar.gz |
Honour VARBASE for the fontconfig cache. Use INSTALL script to create it
if necessary and run fc-cache to set up the initial database.
Remove the cache at DEINSTALL time. Bump revision for this.
Diffstat (limited to 'fonts/fontconfig')
-rw-r--r-- | fonts/fontconfig/DEINSTALL | 9 | ||||
-rw-r--r-- | fonts/fontconfig/INSTALL | 10 | ||||
-rw-r--r-- | fonts/fontconfig/Makefile | 6 | ||||
-rw-r--r-- | fonts/fontconfig/PLIST | 6 |
4 files changed, 25 insertions, 6 deletions
diff --git a/fonts/fontconfig/DEINSTALL b/fonts/fontconfig/DEINSTALL new file mode 100644 index 00000000000..2e11944bba2 --- /dev/null +++ b/fonts/fontconfig/DEINSTALL @@ -0,0 +1,9 @@ +# $NetBSD: DEINSTALL,v 1.1 2006/09/17 18:20:20 joerg Exp $ + +VARBASE="@VARBASE@" + +case ${STAGE} in +DEINSTALL) + ${RM} -rf ${VARBASE}/cache/fontconfig + ;; +esac diff --git a/fonts/fontconfig/INSTALL b/fonts/fontconfig/INSTALL new file mode 100644 index 00000000000..21123dee790 --- /dev/null +++ b/fonts/fontconfig/INSTALL @@ -0,0 +1,10 @@ +# $NetBSD: INSTALL,v 1.1 2006/09/17 18:20:20 joerg Exp $ + +VARBASE="@VARBASE@" + +case ${STAGE} in +POST-INSTALL) + ${MKDIR} ${VARBASE}/cache/fontconfig + ${PREFIX}/bin/fc-cache + ;; +esac diff --git a/fonts/fontconfig/Makefile b/fonts/fontconfig/Makefile index ad74c18b7d6..9bcf1f35c90 100644 --- a/fonts/fontconfig/Makefile +++ b/fonts/fontconfig/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.56 2006/09/14 15:07:12 tron Exp $ +# $NetBSD: Makefile,v 1.57 2006/09/17 18:20:20 joerg Exp $ DISTNAME= fontconfig-2.4.0 +PKGREVISION= 1 CATEGORIES= fonts MASTER_SITES= http://www.fontconfig.org/release/ @@ -23,6 +24,7 @@ CONFIGURE_ARGS+= --with-freetype-config=${BUILDLINK_PREFIX.freetype2}/bin/freety CONFIGURE_ARGS+= --with-expat-includes=${BUILDLINK_PREFIX.expat}/include CONFIGURE_ARGS+= --with-expat-lib=${BUILDLINK_PREFIX.expat}/lib CONFIGURE_ARGS+= --with-confdir=${PKG_SYSCONFDIR:Q} +CONFIGURE_ARGS+= --with-cache-dir=${VARBASE:Q}/cache/fontconfig CONFIGURE_ARGS+= --with-x CONFIGURE_ARGS+= --enable-docs CONFIGURE_ENV+= HASDOCBOOK=no @@ -57,6 +59,8 @@ CONF_FILES+= ${EGDIR}/conf.d/69-unifont.conf ${PKG_SYSCONFDIR}/conf.d/69-unifont CONF_FILES+= ${EGDIR}/conf.d/80-delicious.conf ${PKG_SYSCONFDIR}/conf.d/80-delicious.conf CONF_FILES+= ${EGDIR}/conf.d/90-synthetic.conf ${PKG_SYSCONFDIR}/conf.d/90-synthetic.conf +MAKE_DIRS+= ${VARBASE}/cache + LIBS+= ${BUILDLINK_LDADD.iconv} TEST_TARGET= check diff --git a/fonts/fontconfig/PLIST b/fonts/fontconfig/PLIST index a4efb866987..2bbe7c2f0c8 100644 --- a/fonts/fontconfig/PLIST +++ b/fonts/fontconfig/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.12 2006/09/11 18:53:16 wiz Exp $ +@comment $NetBSD: PLIST,v 1.13 2006/09/17 18:20:20 joerg Exp $ bin/fc-cache bin/fc-cat bin/fc-list @@ -318,10 +318,6 @@ share/examples/fontconfig/conf.d/80-delicious.conf share/examples/fontconfig/conf.d/90-synthetic.conf share/examples/fontconfig/fonts.conf share/examples/fontconfig/fonts.dtd -@exec ${MKDIR} %D/var/cache/fontconfig -@unexec ${RMDIR} %D/var/cache/fontconfig 2> /dev/null || ${TRUE} -@unexec ${RMDIR} %D/var/cache 2> /dev/null || ${TRUE} -@unexec ${RMDIR} %D/var 2> /dev/null || ${TRUE} @dirrm share/examples/fontconfig/conf.d @dirrm share/examples/fontconfig/conf.avail @dirrm share/examples/fontconfig |