diff options
author | obache <obache> | 2012-03-21 13:36:25 +0000 |
---|---|---|
committer | obache <obache> | 2012-03-21 13:36:25 +0000 |
commit | c834bd64fb90f9668aae63f1fb773c27911978f4 (patch) | |
tree | 394c74c0b033ac769c2e8cf01d429243597e3929 /emulators | |
parent | 1bccdea8ae1b9478cae4ea846de7b71474f6f7b8 (diff) | |
download | pkgsrc-c834bd64fb90f9668aae63f1fb773c27911978f4.tar.gz |
Import suse_fontconfig-12.1 as emulators/suse121_fontconfig.
Linux compatibility package based on the openSUSE Linux distribution.
Please visit http://www.opensuse.org/ for more information about openSUSE
Linux.
This package supports running ELF binaries linked with glibc2 that
require fontconfig shared libraries.
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/suse121_fontconfig/DESCR | 6 | ||||
-rw-r--r-- | emulators/suse121_fontconfig/Makefile | 25 | ||||
-rw-r--r-- | emulators/suse121_fontconfig/PLIST | 2 | ||||
-rw-r--r-- | emulators/suse121_fontconfig/distinfo | 8 | ||||
-rw-r--r-- | emulators/suse121_fontconfig/files/generate.awk | 32 | ||||
-rw-r--r-- | emulators/suse121_fontconfig/files/local.conf.in | 11 |
6 files changed, 84 insertions, 0 deletions
diff --git a/emulators/suse121_fontconfig/DESCR b/emulators/suse121_fontconfig/DESCR new file mode 100644 index 00000000000..a15e242c788 --- /dev/null +++ b/emulators/suse121_fontconfig/DESCR @@ -0,0 +1,6 @@ +Linux compatibility package based on the openSUSE Linux distribution. +Please visit http://www.opensuse.org/ for more information about openSUSE +Linux. + +This package supports running ELF binaries linked with glibc2 that +require fontconfig shared libraries. diff --git a/emulators/suse121_fontconfig/Makefile b/emulators/suse121_fontconfig/Makefile new file mode 100644 index 00000000000..9644dbad2c4 --- /dev/null +++ b/emulators/suse121_fontconfig/Makefile @@ -0,0 +1,25 @@ +# $NetBSD: Makefile,v 1.1.1.1 2012/03/21 13:36:25 obache Exp $ + +DISTNAME= suse_fontconfig-${SUSE_VERSION} +CATEGORIES= emulators +RPMPKGS+= fontconfig-2.8.0-24.14.2.${SUSE_ARCH} + +MAINTAINER= pkgsrc-users@NetBSD.org +COMMENT= Linux compatibility package for fontconfig + +EMUL_MODULES.linux= expat freetype2 + +.include "../../emulators/suse121_linux/Makefile.common" + +PLIST_SRC= ${PKGDIR}/PLIST ${RPM2PKG_PLIST} + +do-build: + ${SETENV} LOCALBASE=${LOCALBASE:Q} X11BASE=${X11BASE:Q} \ + ${AWK} -f ${FILESDIR}/generate.awk ${FILESDIR}/local.conf.in \ + > ${WRKSRC}/local.conf + +post-install: + ${INSTALL_DATA} ${WRKSRC}/local.conf \ + ${DESTDIR}${PREFIX}/${EMULSUBDIR}/etc/fonts/local.conf + +.include "../../mk/bsd.pkg.mk" diff --git a/emulators/suse121_fontconfig/PLIST b/emulators/suse121_fontconfig/PLIST new file mode 100644 index 00000000000..c2a4b425584 --- /dev/null +++ b/emulators/suse121_fontconfig/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2012/03/21 13:36:25 obache Exp $ +${EMULSUBDIRSLASH}etc/fonts/local.conf diff --git a/emulators/suse121_fontconfig/distinfo b/emulators/suse121_fontconfig/distinfo new file mode 100644 index 00000000000..bc4a885bdfb --- /dev/null +++ b/emulators/suse121_fontconfig/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1.1.1 2012/03/21 13:36:25 obache Exp $ + +SHA1 (suse121/fontconfig-2.8.0-24.14.2.i586.rpm) = 35e4420d419122463af1b5ea91b42bc0e4c32469 +RMD160 (suse121/fontconfig-2.8.0-24.14.2.i586.rpm) = 2b5812ee7ae9fc9270accd427e5a4aaa3b0f4516 +Size (suse121/fontconfig-2.8.0-24.14.2.i586.rpm) = 291314 bytes +SHA1 (suse121/fontconfig-2.8.0-24.14.2.x86_64.rpm) = 64108119625a325161bd0a871a97901264b8d716 +RMD160 (suse121/fontconfig-2.8.0-24.14.2.x86_64.rpm) = 4dca21055d2b31cc9e3ae735d977fdae6705ce53 +Size (suse121/fontconfig-2.8.0-24.14.2.x86_64.rpm) = 290860 bytes diff --git a/emulators/suse121_fontconfig/files/generate.awk b/emulators/suse121_fontconfig/files/generate.awk new file mode 100644 index 00000000000..2a5626e12cc --- /dev/null +++ b/emulators/suse121_fontconfig/files/generate.awk @@ -0,0 +1,32 @@ +# $NetBSD: generate.awk,v 1.1.1.1 2012/03/21 13:36:25 obache Exp $ +# +# AWK script to replace @FONTDIR_ENTRIES@ with a list of <dir></dir> +# entries taken from the "entries" array. We do variable replacement +# for ${LOCALBASE} and ${X11BASE} using the values of LOCALBASE and +# X11BASE that are passed to the script. +# + +BEGIN { + entries[0] = "${X11BASE}/lib/X11/fonts" + entries[1] = "${LOCALBASE}/lib/X11/fonts" + entries[2] = "${LOCALBASE}/share/fonts" + entries[3] = "${LOCALBASE}/java/sun-6/lib/fonts" + entries[4] = "${LOCALBASE}/Acrobat7/Resource/CIDFont" + entries[5] = "${LOCALBASE}/Acrobat8/Adobe/Reader8/Resource/Font" + entries[6] = "${LOCALBASE}/Acrobat9/Adobe/Reader9/Resource/Font" + num_entries = 7 + + LOCALBASE = ENVIRON["LOCALBASE"] ? ENVIRON["LOCALBASE"] : "/usr/pkg" + X11BASE = ENVIRON["X11BASE"] ? ENVIRON["X11BASE"] : "/usr/X11R6" +} + +/^@FONTDIR_ENTRIES@/ { + for (i = 0; i < num_entries; i++) { + entry = entries[i] + sub("[$]{LOCALBASE}", LOCALBASE, entry) + sub("[$]{X11BASE}", X11BASE, entry) + print " <dir>" entry "</dir>" + } + next +} +{ print } diff --git a/emulators/suse121_fontconfig/files/local.conf.in b/emulators/suse121_fontconfig/files/local.conf.in new file mode 100644 index 00000000000..43b255d9ebd --- /dev/null +++ b/emulators/suse121_fontconfig/files/local.conf.in @@ -0,0 +1,11 @@ +<?xml version="1.0"?> +<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> +<!-- $NetBSD: local.conf.in,v 1.1.1.1 2012/03/21 13:36:25 obache Exp $ --> +<!-- /etc/fonts/fonts.conf file to configure system font access --> +<fontconfig> + +<!-- Local font directory list --> + +@FONTDIR_ENTRIES@ + +</fontconfig> |