summaryrefslogtreecommitdiff
path: root/fonts/ttf2pk
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>2004-10-09 14:15:22 +0000
committerhubertf <hubertf@pkgsrc.org>2004-10-09 14:15:22 +0000
commit0bde24c668d2427b2fe812b8f7cdad34d52f5210 (patch)
treed83e5f29521f86d25041f2deabefafd1ec78a212 /fonts/ttf2pk
parent306203bd3fa99a6386c47da2318aefa7330374a5 (diff)
downloadpkgsrc-0bde24c668d2427b2fe812b8f7cdad34d52f5210.tar.gz
Import ttf2pk-1.3.1: TrueType to TeX PK font converter
ttf2pk/ttf2tfm permit using TrueType fonts with teTeX. To be used for pkgsrc-wip/cjk-latex & friends (fixes and a working cjk-latex-wadalab font pkg to be committed too)
Diffstat (limited to 'fonts/ttf2pk')
-rw-r--r--fonts/ttf2pk/DESCR1
-rw-r--r--fonts/ttf2pk/Makefile61
-rw-r--r--fonts/ttf2pk/PLIST28
-rw-r--r--fonts/ttf2pk/distinfo8
-rw-r--r--fonts/ttf2pk/patches/patch-ttf2pk-aa21
-rw-r--r--fonts/ttf2pk/patches/patch-ttf2pk-ab28
-rw-r--r--fonts/ttf2pk/patches/patch-ttf2pk-ac17
-rw-r--r--fonts/ttf2pk/patches/patch-ttf2pk-ad15
-rw-r--r--fonts/ttf2pk/patches/patch-ttf2pk-ae21
9 files changed, 200 insertions, 0 deletions
diff --git a/fonts/ttf2pk/DESCR b/fonts/ttf2pk/DESCR
new file mode 100644
index 00000000000..f2210e74b64
--- /dev/null
+++ b/fonts/ttf2pk/DESCR
@@ -0,0 +1 @@
+ttf2pk/ttf2tfm permit using TrueType fonts with teTeX.
diff --git a/fonts/ttf2pk/Makefile b/fonts/ttf2pk/Makefile
new file mode 100644
index 00000000000..021ca06194f
--- /dev/null
+++ b/fonts/ttf2pk/Makefile
@@ -0,0 +1,61 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/09 14:15:22 hubertf Exp $
+#
+
+.include "../../graphics/freetype-lib/Makefile.common"
+
+PKGNAME= ttf2pk-1.3.1
+CATEGORIES= print
+
+MAINTAINER= bernhard@SDG.de,hubertf@NetBSD.org
+HOMEPAGE= http://www.freetype.org/
+COMMENT= TrueType to TeX PK font converter
+
+USE_BUILDLINK3= yes
+
+GNU_CONFIGURE= # defined
+CONFIGURE_ARGS+= --prefix=${LOCALBASE}
+CONFIGURE_ARGS+= --with-kpathsea-dir=${PREFIX}/lib
+
+T2PSRC= ${WRKSRC}/contrib/ttf2pk
+CONFIGURE_DIRS+= ${T2PSRC}
+BUILD_DIRS= ${T2PSRC}
+
+ALL_TARGET= depend all
+
+USE_LIBTOOL= # defined
+
+TEXMF= ${PREFIX}/share/texmf
+
+pre-configure:
+ cd ${T2PSRC}; ${AUTOCONF}
+
+do-install:
+ ${INSTALL_PROGRAM} ${T2PSRC}/ttf2pk \
+ ${T2PSRC}/ttf2tfm \
+ ${PREFIX}/bin
+ ${INSTALL_DATA} ${T2PSRC}/ttf2pk.1 \
+ ${T2PSRC}/ttf2tfm.1 \
+ ${PREFIX}/man/man1
+ ${INSTALL_DATA_DIR} ${TEXMF}/doc/ttf2pk
+ ${INSTALL_DATA} ${T2PSRC}/BUGS \
+ ${T2PSRC}/README \
+ ${T2PSRC}/TODO \
+ ${T2PSRC}/ttf2pk.doc \
+ ${T2PSRC}/data/ttfonts.map \
+ ${TEXMF}/doc/ttf2pk
+ ${INSTALL_DATA_DIR} ${TEXMF}/ttf2tfm
+ ${LN} -fs ttf2tfm \
+ ${TEXMF}/ttf2pk
+ ${INSTALL_DATA_DIR} ${TEXMF}/ttf2tfm/base
+ ${INSTALL_DATA} ${T2PSRC}/data/*.enc \
+ ${T2PSRC}/data/*.rpl \
+ ${T2PSRC}/data/*.sfd \
+ ${TEXMF}/ttf2tfm/base
+ ${TOUCH} ${TEXMF}/ttf2tfm/base/ttfonts.map
+ ${PREFIX}/bin/mktexlsr
+
+.include "../../graphics/freetype-lib/buildlink3.mk"
+.include "../../print/teTeX-bin/kpathsea.buildlink3.mk"
+
+.include "../../mk/autoconf.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/fonts/ttf2pk/PLIST b/fonts/ttf2pk/PLIST
new file mode 100644
index 00000000000..7528316e87f
--- /dev/null
+++ b/fonts/ttf2pk/PLIST
@@ -0,0 +1,28 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/10/09 14:15:22 hubertf Exp $
+bin/ttf2pk
+bin/ttf2tfm
+man/man1/ttf2pk.1
+man/man1/ttf2tfm.1
+share/texmf/doc/ttf2pk/BUGS
+share/texmf/doc/ttf2pk/README
+share/texmf/doc/ttf2pk/TODO
+share/texmf/doc/ttf2pk/ttf2pk.doc
+share/texmf/doc/ttf2pk/ttfonts.map
+share/texmf/ttf2pk
+share/texmf/ttf2tfm/base/Big5.sfd
+share/texmf/ttf2tfm/base/ET5.enc
+share/texmf/ttf2tfm/base/EUC.sfd
+share/texmf/ttf2tfm/base/SJIS.sfd
+share/texmf/ttf2tfm/base/T1-WGL4.enc
+share/texmf/ttf2tfm/base/UBg5plus.sfd
+share/texmf/ttf2tfm/base/UBig5.sfd
+share/texmf/ttf2tfm/base/UGB.sfd
+share/texmf/ttf2tfm/base/UGBK.sfd
+share/texmf/ttf2tfm/base/UJIS.sfd
+share/texmf/ttf2tfm/base/UKS.sfd
+share/texmf/ttf2tfm/base/Unicode.sfd
+share/texmf/ttf2tfm/base/VPS.rpl
+share/texmf/ttf2tfm/base/ttfonts.map
+@dirrm share/texmf/ttf2tfm/base
+@dirrm share/texmf/ttf2tfm
+@dirrm share/texmf/doc/ttf2pk
diff --git a/fonts/ttf2pk/distinfo b/fonts/ttf2pk/distinfo
new file mode 100644
index 00000000000..7a1b4c79598
--- /dev/null
+++ b/fonts/ttf2pk/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/10/09 14:15:22 hubertf Exp $
+
+SHA1 (freetype-1.3.1.tar.gz) = a398fb4d6dd756826e459058d8075759086f8ca4
+Size (freetype-1.3.1.tar.gz) = 1427072 bytes
+SHA1 (patch-aa) = c68fb7745ff9648b70d21fc6320a1631b3daa61b
+SHA1 (patch-ab) = f382a80c7f097ca8061c321c1c2bcd4db3a80a12
+SHA1 (patch-ac) = e65713eaf084479c30ef9200bc866ee850e215d9
+SHA1 (patch-ad) = 7a4fa71239c0f2b3a74c42c7757fbd52aadff2e8
diff --git a/fonts/ttf2pk/patches/patch-ttf2pk-aa b/fonts/ttf2pk/patches/patch-ttf2pk-aa
new file mode 100644
index 00000000000..d66953ad11c
--- /dev/null
+++ b/fonts/ttf2pk/patches/patch-ttf2pk-aa
@@ -0,0 +1,21 @@
+$NetBSD: patch-ttf2pk-aa,v 1.1.1.1 2004/10/09 14:15:22 hubertf Exp $
+
+--- contrib/ttf2pk/Makefile.in.orig Thu Sep 3 07:12:57 1998
++++ contrib/ttf2pk/Makefile.in
+@@ -17,7 +17,6 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
+ CC = @CC@
+ CPP = @CPP@
+
+-LIBTOOL = ../../libtool
+ MKINSTALLDIRS = $(srcdir)/../../mkinstalldirs
+
+ include MakeSub
+@@ -26,7 +25,7 @@ CFLAGS = @CFLAGS@ @XX_CFLAGS@
+ CPPFLAGS = @CPPFLAGS@ @DEFS@
+ FT_CFLAGS = $(CFLAGS) $(CPPFLAGS)
+ LDFLAGS = @LDFLAGS@ @LIBS@
+-LIBDIR = ../../lib
++LIBDIR = ${prefix}/lib
+
+ SRC = $(srcdir)/case.c \
+ $(srcdir)/errormsg.c \
diff --git a/fonts/ttf2pk/patches/patch-ttf2pk-ab b/fonts/ttf2pk/patches/patch-ttf2pk-ab
new file mode 100644
index 00000000000..3e40eef0f62
--- /dev/null
+++ b/fonts/ttf2pk/patches/patch-ttf2pk-ab
@@ -0,0 +1,28 @@
+$NetBSD: patch-ttf2pk-ab,v 1.1.1.1 2004/10/09 14:15:22 hubertf Exp $
+
+--- contrib/ttf2pk/configure.in.orig Thu Jun 10 23:51:36 1999
++++ contrib/ttf2pk/configure.in
+@@ -5,7 +5,7 @@ dnl Process this file with autoconf to p
+ dnl Some tests are omitted since we assume that you've built the
+ dnl FreeType library successfully.
+
+-AC_INIT(../../lib/freetype.h)
++AC_INIT(ttf2pk.c)
+
+ AC_CANONICAL_SYSTEM
+
+@@ -47,12 +47,10 @@ fi
+ AC_CHECK_LIB(m, floor)
+ AC_CHECK_LIB(intl, gettext)
+
+-OLDLIBS=$LIBS
+-LIBS="$LIBS -L../../lib/.libs"
+-CPPFLAGS="-I$srcdir/../../lib $CPPFLAGS"
++CPPFLAGS="$CPPFLAGS -I$prefix/include/freetype"
++
+ AC_CHECK_LIB(ttf, TT_Init_FreeType, LIBS="$LIBS -lttf",[
+ AC_MSG_ERROR([Can't find ttf library! Compile FreeType first.])])
+-LIBS=$OLDLIBS
+
+ dnl get Compiler flags right.
+
diff --git a/fonts/ttf2pk/patches/patch-ttf2pk-ac b/fonts/ttf2pk/patches/patch-ttf2pk-ac
new file mode 100644
index 00000000000..c0f5fb48f67
--- /dev/null
+++ b/fonts/ttf2pk/patches/patch-ttf2pk-ac
@@ -0,0 +1,17 @@
+$NetBSD: patch-ttf2pk-ac,v 1.1.1.1 2004/10/09 14:15:22 hubertf Exp $
+
+--- contrib/ttf2pk/ttfaux.c.orig Thu Sep 2 01:31:17 1999
++++ contrib/ttf2pk/ttfaux.c
+@@ -13,9 +13,9 @@
+ #include <stdlib.h>
+
+ #include "freetype.h"
+-#include "extend/ftxkern.h" /* we are in the FreeType package tree */
+-#include "extend/ftxpost.h"
+-#include "extend/ftxopen.h"
++#include "ftxkern.h" /* we are in the FreeType package tree */
++#include "ftxpost.h"
++#include "ftxopen.h"
+
+ #include "ttf2tfm.h"
+ #include "newobj.h"
diff --git a/fonts/ttf2pk/patches/patch-ttf2pk-ad b/fonts/ttf2pk/patches/patch-ttf2pk-ad
new file mode 100644
index 00000000000..9e12d29503b
--- /dev/null
+++ b/fonts/ttf2pk/patches/patch-ttf2pk-ad
@@ -0,0 +1,15 @@
+$NetBSD: patch-ttf2pk-ad,v 1.1.1.1 2004/10/09 14:15:22 hubertf Exp $
+
+--- contrib/ttf2pk/ttflib.c.orig Thu Sep 2 01:31:17 1999
++++ contrib/ttf2pk/ttflib.c
+@@ -22,8 +22,8 @@
+ #include "newobj.h"
+ #include "ttf2tfm.h"
+
+-#include "extend/ftxpost.h"
+-#include "extend/ftxopen.h"
++#include "ftxpost.h"
++#include "ftxopen.h"
+
+
+ #define Macintosh_platform 1
diff --git a/fonts/ttf2pk/patches/patch-ttf2pk-ae b/fonts/ttf2pk/patches/patch-ttf2pk-ae
new file mode 100644
index 00000000000..11ca0e54236
--- /dev/null
+++ b/fonts/ttf2pk/patches/patch-ttf2pk-ae
@@ -0,0 +1,21 @@
+--- contrib/ttf2pk/data/UBig5.sfd.orig Thu Dec 10 22:40:10 1998
++++ contrib/ttf2pk/data/UBig5.sfd Fri Jan 21 23:38:41 2000
+@@ -1746,12 +1746,12 @@
+ 0x6207 0x6B1E 0x7227 0x864C 0x8EA8 0x9482 0x9480 0x9481 \
+ 0x9A69 0x9A68 0x9B2E 0x9E19 0x7229 0x864B 0x8B9F 0x9483 \
+ 0x9C79 0x9EB7 0x7675 0x9A6B 0x9C7A 0x9E1D 0x7069 0x706A \
+- 0x9EA4 0x9F7E 0x9F49 0x9F98 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+- 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+- 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+- 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+- 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+- 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
++ 0x9EA4 0x9F7E 0x9F49 0x9F98 0x7881 0x92B9 0x88CF 0x58BB \
++ 0x6052 0x7CA7 0x5AFA 0x2554 0x2566 0x2557 0x2560 0x256C \
++ 0x2563 0x255A 0x2569 0x255D 0x2552 0x2564 0x2555 0x255E \
++ 0x256A 0x2561 0x2558 0x2567 0x255B 0x2553 0x2565 0x2556 \
++ 0x255F 0x256B 0x2562 0x2559 0x2568 0x255C 0x2551 0x2550 \
++ 0x256D 0x256E 0x2570 0x256F 0x25A0 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \