summaryrefslogtreecommitdiffstats
path: root/abs/core/xorg-font-utils
diff options
context:
space:
mode:
authorJames Meyer <James.meyer@operamail.com>2008-10-02 03:19:12 (GMT)
committerJames Meyer <James.meyer@operamail.com>2008-10-02 03:19:12 (GMT)
commit0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a (patch)
treec0aa2c0b53c317be87eacfcb77b63f53f1f415e7 /abs/core/xorg-font-utils
downloadlinhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.zip
linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.tar.gz
linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.tar.bz2
initial import
Diffstat (limited to 'abs/core/xorg-font-utils')
-rw-r--r--abs/core/xorg-font-utils/PKGBUILD54
-rw-r--r--abs/core/xorg-font-utils/ttmkfdir.patch86
-rw-r--r--abs/core/xorg-font-utils/ttmkfdir_gcc43.patch8
-rw-r--r--abs/core/xorg-font-utils/xorg-font-utils.install8
4 files changed, 156 insertions, 0 deletions
diff --git a/abs/core/xorg-font-utils/PKGBUILD b/abs/core/xorg-font-utils/PKGBUILD
new file mode 100644
index 0000000..a97db44
--- /dev/null
+++ b/abs/core/xorg-font-utils/PKGBUILD
@@ -0,0 +1,54 @@
+# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
+# Maintainer: Alexander Baldeck <alexander@archlinux.org>
+# Contributor: Jan de Groot <jgc@archlinux.org>
+pkgname=xorg-font-utils
+pkgver=1.0.3
+pkgrel=3
+pkgdesc="X.Org font utilities"
+arch=(i686 x86_64)
+url="http://xorg.freedesktop.org/"
+options=('!libtool')
+depends=('libxfont' 'libfontenc' 'xproto')
+makedepends=('pkgconfig')
+replaces=('font-util')
+provides=('font-util')
+conflicts=('font-util')
+install=xorg-font-utils.install
+source=(${url}/releases/individual/app/bdftopcf-1.0.1.tar.bz2
+ ${url}/releases/individual/app/fonttosfnt-1.0.3.tar.bz2
+ ${url}/releases/individual/app/mkfontdir-1.0.3.tar.bz2
+ ${url}/releases/individual/app/mkfontscale-1.0.3.tar.bz2
+ ${url}/releases/individual/font/font-util-1.0.1.tar.bz2
+ http://people.redhat.com/yshao/ttmkfdir2.20021109.tar.bz2
+ ttmkfdir.patch
+ ttmkfdir_gcc43.patch)
+
+build() {
+ cd ${startdir}/src
+
+ for i in *; do
+ if [ -d "${i}" ]; then
+ pushd "${i}"
+ if [ "${i}" = "ttmkfdir2" ]; then
+ patch -Np0 -i ${startdir}/src/ttmkfdir.patch || return 1
+ patch -Np1 -i ${startdir}/src/ttmkfdir_gcc43.patch || return 1
+ make || return 1
+ mkdir -p ${startdir}/pkg/usr/bin
+ install -m755 ttmkfdir ${startdir}/pkg/usr/bin/ || return 1
+ else
+ ./configure --prefix=/usr --with-mapdir=/usr/share/fonts/util
+ make || return 1
+ make DESTDIR=${startdir}/pkg install || return 1
+ fi
+ popd
+ fi
+ done
+}
+md5sums=('9685fab33d39954ab8a0d22e0969d5a4'
+ 'b0ebd86029571239b9d7b0c61191b591'
+ '4d0f89a23f77e22f1671a77bf0898955'
+ '1d608771aca9695b828cec1e34178fd1'
+ 'b81535f78fe05732931f02841e5ca37b'
+ '79e0401393c9728865aa73bb2bd68dd4'
+ '099278628ad63631e872bc5590bade74'
+ '43cd6303d38dbbf36ba91d3a08430bb4')
diff --git a/abs/core/xorg-font-utils/ttmkfdir.patch b/abs/core/xorg-font-utils/ttmkfdir.patch
new file mode 100644
index 0000000..983c18b
--- /dev/null
+++ b/abs/core/xorg-font-utils/ttmkfdir.patch
@@ -0,0 +1,86 @@
+--- encoding.cpp.orig Tue Mar 12 15:40:09 2002
++++ encoding.cpp Sun Mar 21 22:33:00 2004
+@@ -2,7 +2,7 @@
+ #include <cstdio>
+ #include <cstdlib>
+ #include <cstring>
+-#include "freetype/freetype.h"
++#include <ft2build.h>
+
+ #include "ttmkfdir.h"
+ #include "encoding.h"
+
+--- encoding.h.orig Tue Mar 12 15:41:27 2002
++++ encoding.h Sun Mar 21 22:35:15 2004
+@@ -6,7 +6,8 @@
+ #include <map>
+ #include <string>
+
+-#include "freetype/freetype.h"
++#include <ft2build.h>
++#include FT_FREETYPE_H
+
+ #include "util.h"
+
+--- ttf.h.orig Wed Mar 13 19:16:38 2002
++++ ttf.h Sun Mar 21 22:30:16 2004
+@@ -3,15 +3,18 @@
+ #define TTF_H__
+
+ #include <string>
+-#include "freetype/freetype.h"
+-#include "freetype/tttables.h"
+-#include "freetype/ftsnames.h"
+-#include "freetype/ttnameid.h"
+-#include "freetype/fterrors.h"
+-#include "freetype/ftmodule.h"
++#include <ft2build.h>
++#include FT_FREETYPE_H
++#include FT_TRUETYPE_TABLES_H
++#include FT_SFNT_NAMES_H
++#include FT_TRUETYPE_IDS_H
++#include FT_ERRORS_H
++#include FT_MODULE_H
+
+ #include "util.h"
+ #include "encoding.h"
++
++using namespace std;
+
+ namespace ttf {
+
+--- Makefile.orig Thu Mar 14 14:03:49 2002
++++ Makefile Sun Jan 22 20:15:17 2006
+@@ -1,10 +1,7 @@
+-FREETYPE_BASE=/usr/include/freetype2
+-FREETYPE_INCL=-I$(FREETYPE_BASE)/.
+-FREETYPE_LIB=/usr/lib/libfreetype.so
+-
+-DEBUG=-ggdb
+-CXX=g++
+-CXXFLAGS=-Wall -pedantic $(FREETYPE_INCL) $(DEBUG)
++FREETYPE_INCL=`freetype-config --cflags`
++FREETYPE_LIB=`freetype-config --libs`
+
+-LDFLAGS=$(FREETYPE_LIB) $(DEBUG)
++CXXFLAGS+=$(FREETYPE_INCL)
++
++LDFLAGS+=$(FREETYPE_LIB)
+
+@@ -21,3 +18,3 @@
+ parser.cpp: encoding.l
+- flex -i -8 -o$@ $<
++ lex -i -8 -o$@ $<
+
+--- ttf.cpp.orig 2002-11-07 06:30:04.000000000 +0100
++++ ttf.cpp
+@@ -226,7 +226,7 @@ Face::FontFamilyName (void) const
+ for (i = 0; i < n; i++) {
+ if ((fterror = FT_Get_Sfnt_Name (face, i, &NamePtr)) != FT_Err_Ok) {
+ std::cout << "Warning: Can't SFNT name : " << FileName << "(" << fterror << ")" << std::endl;
+- return;
++ return "unknown";
+ };
+ platform = NamePtr.platform_id;
+ encoding = NamePtr.encoding_id;
+
diff --git a/abs/core/xorg-font-utils/ttmkfdir_gcc43.patch b/abs/core/xorg-font-utils/ttmkfdir_gcc43.patch
new file mode 100644
index 0000000..5dadb11
--- /dev/null
+++ b/abs/core/xorg-font-utils/ttmkfdir_gcc43.patch
@@ -0,0 +1,8 @@
+--- ttmkfdir-3.0.9-orig/directory.cpp 2008-04-20 19:48:00.000000000 -0600
++++ ttmkfdir-3.0.9/directory.cpp 2008-04-20 19:48:39.000000000 -0600
+@@ -1,4 +1,5 @@
+ #include <cctype>
++#include <cstring>
+ #include <dirent.h>
+ #include <sys/stat.h>
+ #include <unistd.h>
diff --git a/abs/core/xorg-font-utils/xorg-font-utils.install b/abs/core/xorg-font-utils/xorg-font-utils.install
new file mode 100644
index 0000000..a291dc6
--- /dev/null
+++ b/abs/core/xorg-font-utils/xorg-font-utils.install
@@ -0,0 +1,8 @@
+# arg 1: the new package version
+post_install() {
+ ldconfig -r .
+}
+
+op=$1
+shift
+$op $*