aboutsummaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-07-29 17:24:29 +0800
committerpav <pav@FreeBSD.org>2005-07-29 17:24:29 +0800
commit145f52cd69057a89f1aad2edc747ed010b8c7585 (patch)
treeffac5066f570ecdd3c503275aa5153a52d8d1caa /print
parent51f4f8daf64e2063b2b5024f2b33d7f6e8421e87 (diff)
downloadfreebsd-ports-gnome-145f52cd69057a89f1aad2edc747ed010b8c7585.tar.gz
freebsd-ports-gnome-145f52cd69057a89f1aad2edc747ed010b8c7585.tar.zst
freebsd-ports-gnome-145f52cd69057a89f1aad2edc747ed010b8c7585.zip
This includes some tools that are in FreeType 1's contrib directory.
ttf2pfb: Converting TrueType fonts to the Postscript Type 1 format. ttf2pk: A simple conversion tool to bring TrueType quality to the TeX world. ttf2bdf: Produce bitmapped fonts from TrueType files for your X11 applications. PR: ports/84282 Submitted by: Rong-En Fan <rafan@infor.org>
Diffstat (limited to 'print')
-rw-r--r--print/Makefile1
-rw-r--r--print/freetype-tools/Makefile49
-rw-r--r--print/freetype-tools/distinfo2
-rw-r--r--print/freetype-tools/files/patch-Makefile.in49
-rw-r--r--print/freetype-tools/files/patch-contrib-ttf2pfb-t1asm.c22
-rw-r--r--print/freetype-tools/files/patch-lib-arch-unix-Makefile.in62
-rw-r--r--print/freetype-tools/files/patch-libtool28
-rw-r--r--print/freetype-tools/pkg-descr9
-rw-r--r--print/freetype-tools/pkg-plist5
9 files changed, 227 insertions, 0 deletions
diff --git a/print/Makefile b/print/Makefile
index f5342ad99c0d..daa8dddf1fed 100644
--- a/print/Makefile
+++ b/print/Makefile
@@ -72,6 +72,7 @@
SUBDIR += foomatic-filters
SUBDIR += fpdf
SUBDIR += freetype
+ SUBDIR += freetype-tools
SUBDIR += freetype2
SUBDIR += ft2demos
SUBDIR += gfontview
diff --git a/print/freetype-tools/Makefile b/print/freetype-tools/Makefile
new file mode 100644
index 000000000000..f1158b26ff0c
--- /dev/null
+++ b/print/freetype-tools/Makefile
@@ -0,0 +1,49 @@
+# New ports collection makefile for: print/freetype-tools
+# Date created: Jul 29, 2005
+# Whom: rafan@infor.org
+#
+# $FreeBSD$
+#
+
+PORTNAME= freetype-tools
+PORTVERSION= 1.3.1
+CATEGORIES= print
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:S,%SUBDIR%,freetype,} \
+ http://sunsite.cnlab-switch.ch/ftp/mirror/freetype/%SUBDIR%/ \
+ http://www.funet.fi/pub/mirrors/ftp.freetype.org/%SUBDIR%/ \
+ http://ftp.sunet.se/pub/text-processing/freetype/%SUBDIR%/ \
+ ${MASTER_SITE_RINGSERVER:S,%SUBDIR%,graphics/freetype/&,} \
+ ftp://ftp.freetype.org/freetype/%SUBDIR%/
+MASTER_SITE_SUBDIR= freetype1
+DISTNAME= freetype-${PORTVERSION}
+
+MAINTAINER= rafan@infor.org
+COMMENT= Tools for FreeType 1
+
+BUILD_DEPENDS= ${LOCALBASE}/lib/libkpathsea.a:${PORTSDIR}/print/teTeX-base
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+USE_GMAKE= yes
+USE_LIBTOOL_VER=15
+CONFIGURE_ARGS= --disable-nls --enable-static --enable-shared
+USE_REINPLACE= yes
+
+MAN1= ttf2tfm.1 ttf2pk.1
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|$${CONFIG_SHELL-/bin/sh} $$ac_aux_dir|$$ac_aux_dir|' \
+ ${WRKSRC}/configure
+ @${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
+ 's|LIBTOOL =.*|LIBTOOL = ${LIBTOOL}|'
+
+post-build:
+ cd ${WRKSRC}/contrib/ttf2bdf && ./configure --prefix=${PREFIX} && ${GMAKE}
+ cd ${WRKSRC}/contrib/ttf2pfb && ./configure --prefix=${PREFIX} && ${GMAKE}
+ cd ${WRKSRC}/contrib/ttf2pk && ./configure --prefix=${PREFIX} --with-kpathsea-dir=${LOCALBASE} && ${GMAKE}
+
+do-install:
+ cd ${WRKSRC}/contrib/ttf2pk && ${GMAKE} install
+ cd ${WRKSRC}/contrib/ttf2pfb && ${GMAKE} install
+ cd ${WRKSRC}/contrib/ttf2pk && ${GMAKE} install
+
+.include <bsd.port.mk>
diff --git a/print/freetype-tools/distinfo b/print/freetype-tools/distinfo
new file mode 100644
index 000000000000..7a15a9fc2fa6
--- /dev/null
+++ b/print/freetype-tools/distinfo
@@ -0,0 +1,2 @@
+MD5 (freetype-1.3.1.tar.gz) = 9a9e7ad00c1ef6dfbf8f8e19ceefb300
+SIZE (freetype-1.3.1.tar.gz) = 1427072
diff --git a/print/freetype-tools/files/patch-Makefile.in b/print/freetype-tools/files/patch-Makefile.in
new file mode 100644
index 000000000000..d0a79de00928
--- /dev/null
+++ b/print/freetype-tools/files/patch-Makefile.in
@@ -0,0 +1,49 @@
+--- Makefile.in.orig Wed Nov 8 18:01:07 2000
++++ Makefile.in Wed Nov 8 18:01:38 2000
+@@ -8,7 +8,7 @@
+ FTTESTDIR = test
+ FTPODIR = po
+
+-all: ttlib tttest ttpo
++all: ttlib ttpo
+
+ debug: ttlibdebug tttest ttpo
+
+@@ -22,30 +22,23 @@
+ ttlibdebug:
+ cd $(FTLIBDIR); $(MAKE) -f $(MAKEFILE) debug
+
+-tttest:
+- cd $(FTTESTDIR); $(MAKE) -f $(MAKEFILE) all
+-
+ ttpo:
+ cd $(FTPODIR); $(MAKE) all
+
+ install:
+ cd $(FTLIBDIR); $(MAKE) -f $(MAKEFILE) install
+- cd $(FTTESTDIR); $(MAKE) -f $(MAKEFILE) install
+ cd $(FTPODIR); $(MAKE) install
+
+ uninstall:
+ cd $(FTLIBDIR); $(MAKE) -f $(MAKEFILE) uninstall
+- cd $(FTTESTDIR); $(MAKE) -f $(MAKEFILE) uninstall
+ cd $(FTPODIR); $(MAKE) uninstall
+
+ clean:
+ cd $(FTLIBDIR); $(MAKE) -f $(MAKEFILE) clean
+- cd $(FTTESTDIR); $(MAKE) -f $(MAKEFILE) clean
+ cd $(FTPODIR); $(MAKE) clean
+
+ distclean:
+ cd $(FTLIBDIR); $(MAKE) -f $(MAKEFILE) distclean
+- cd $(FTTESTDIR); $(MAKE) -f $(MAKEFILE) distclean
+ cd $(FTPODIR); $(MAKE) distclean
+ $(RMF) config.cache config.log config.status Makefile \
+ MakeSub ft_conf.h libtool
+@@ -55,6 +48,5 @@
+
+ depend:
+ cd $(FTLIBDIR); $(MAKE) -f $(MAKEFILE) depend
+- cd $(FTTESTDIR); $(MAKE) -f $(MAKEFILE) depend
+
+ # end of Makefile.in
diff --git a/print/freetype-tools/files/patch-contrib-ttf2pfb-t1asm.c b/print/freetype-tools/files/patch-contrib-ttf2pfb-t1asm.c
new file mode 100644
index 000000000000..087241af5420
--- /dev/null
+++ b/print/freetype-tools/files/patch-contrib-ttf2pfb-t1asm.c
@@ -0,0 +1,22 @@
+--- contrib/ttf2pfb/t1asm.c.orig Thu Jul 28 01:54:45 2005
++++ contrib/ttf2pfb/t1asm.c Thu Jul 28 01:56:55 2005
+@@ -49,8 +49,8 @@
+
+ typedef unsigned char byte;
+
+-static FILE *ifp = stdin;
+-static FILE *ofp = stdout;
++static FILE *ifp;
++static FILE *ofp;
+
+ /* flags */
+ static int pfb = 0;
+@@ -437,6 +437,8 @@
+ extern int optind;
+ extern int getopt(int argc, char **argv, char *optstring);
+
++ ifp = stdin;
++ ofp = stdout;
+ fprintf(stderr, "%s", BANNER);
+
+ /* interpret command line arguments using getopt */
diff --git a/print/freetype-tools/files/patch-lib-arch-unix-Makefile.in b/print/freetype-tools/files/patch-lib-arch-unix-Makefile.in
new file mode 100644
index 000000000000..a97729fb0760
--- /dev/null
+++ b/print/freetype-tools/files/patch-lib-arch-unix-Makefile.in
@@ -0,0 +1,62 @@
+--- lib/arch/unix/Makefile.in.orig Sat Jul 31 08:48:17 1999
++++ lib/arch/unix/Makefile.in Sat Aug 21 12:55:07 2004
+@@ -2,8 +2,8 @@
+ #
+ # lib/arch/unix/Makefile.in
+
+-ARCH = arch/unix
+-FT_MAKEFILE = $(ARCH)/Makefile
++FTARCH = arch/unix
++FT_MAKEFILE = $(FTARCH)/Makefile
+
+ RM = @RM@
+ RMF = @RM@ -f
+@@ -83,7 +83,7 @@
+ $(srcdir)/$(FILESRC) \
+ $(srcdir)/$(MEMSRC) \
+ $(srcdir)/$(MUTEXSRC)
+-SRC_S = $(srcdir)/$(ARCH)/freetype.c
++SRC_S = $(srcdir)/$(FTARCH)/freetype.c
+
+ # all header files
+ HEADERS = $(srcdir)/freetype.h \
+@@ -200,10 +200,10 @@
+ -version-info $(version_info) $(FT_LIBS)
+
+ install: libttf.la
+- $(MKINSTALLDIRS) $(libdir) $(includedir)/freetype
++ $(MKINSTALLDIRS) $(libdir) $(includedir)/freetype1/freetype
+ $(LIBTOOL) --mode=install $(INSTALL) libttf.la $(libdir)
+ -for P in $(HEADERS) ; do \
+- $(INSTALL_DATA) $$P $(includedir)/freetype ; \
++ $(INSTALL_DATA) $$P $(includedir)/freetype1/freetype ; \
+ done
+
+ uninstall:
+@@ -218,15 +218,15 @@
+ -$(RMF) file.c memory.c mutex.c
+ -$(RMF) libttf.la
+ -$(RMF) *.orig *~ core *.core
+- -$(RMF) $(ARCH)/Makefile
++ -$(RMF) $(FTARCH)/Makefile
+ -$(RMF) .libs/*
+ -$(RMDIR) .libs
+
+ depend: do_link
+ (echo '/^#.* PUT NO STUFF BELOW/,$$d' ; echo w ; echo q) | \
+- ed - $(ARCH)/Makefile
++ ed - $(FTARCH)/Makefile
+ echo '# Dependencies generated by make depend: PUT NO STUFF BELOW' \
+- >> $(ARCH)/Makefile
++ >> $(FTARCH)/Makefile
+ for file in $(SRC_S) $(SRC_M) $(EXTSRC) ; do \
+ $(CPP) $(CPPFLAGS) $(INCLUDES) $$file | \
+ sed -n -e 's|^# [1-9][0-9]* "\([^/].*\.h\)".*|\1|p' \
+@@ -239,6 +239,6 @@
+ else if ($$1 != last) \
+ { print line ; line = last = $$1 } \
+ line = line " " $$2 } \
+- END { print line }' >> $(ARCH)/Makefile
++ END { print line }' >> $(FTARCH)/Makefile
+
+ # Dependencies generated by make depend: PUT NO STUFF BELOW
diff --git a/print/freetype-tools/files/patch-libtool b/print/freetype-tools/files/patch-libtool
new file mode 100644
index 000000000000..2277236839b2
--- /dev/null
+++ b/print/freetype-tools/files/patch-libtool
@@ -0,0 +1,28 @@
+--- contrib/ttf2pfb/Makefile.in.orig Thu Jul 28 02:09:51 2005
++++ contrib/ttf2pfb/Makefile.in Thu Jul 28 02:10:02 2005
+@@ -40,7 +40,7 @@
+ $(CC) $(CFLAGS) -o $@ $<
+
+ ttf2pfb: ttf2pfb.o $(LIBDIR)/libttf.la
+- $(LIBTOOL) --mode=link $(CC) $(FT_CFLAGS) -o $@ $< \
++ $(LIBTOOL) --tag=CXX --mode=link $(CC) $(FT_CFLAGS) -o $@ $< \
+ $(LIBDIR)/libttf.la $(LDFLAGS)
+
+ clean:
+
+--- contrib/ttf2pk/Makefile.in.orig Tue Jul 26 01:52:45 2005
++++ contrib/ttf2pk/Makefile.in Thu Sep 3 13:12:57 1998
+@@ -61,11 +61,11 @@
+ default all: $(PROGRAMS)
+
+ ttf2pk: $(ttf2pkobjs) $(LIBDIR)/libttf.la
+- $(LIBTOOL) --mode=link $(CC) $(FT_CFLAGS) -o ttf2pk $(ttf2pkobjs) \
++ $(LIBTOOL) --tag=CXX --mode=link $(CC) $(FT_CFLAGS) -o ttf2pk $(ttf2pkobjs) \
+ $(LIBDIR)/libttf.la $(LDFLAGS)
+
+ ttf2tfm: $(ttf2tfmobjs) $(LIBDIR)/libttf.la
+- $(LIBTOOL) --mode=link $(CC) $(FT_CFLAGS) -o ttf2tfm $(ttf2tfmobjs) \
++ $(LIBTOOL) --tag=CXX --mode=link $(CC) $(FT_CFLAGS) -o ttf2tfm $(ttf2tfmobjs) \
+ $(LIBDIR)/libttf.la $(LDFLAGS)
+
+ install: $(PROGRAMS)
diff --git a/print/freetype-tools/pkg-descr b/print/freetype-tools/pkg-descr
new file mode 100644
index 000000000000..9f9e32fc8c79
--- /dev/null
+++ b/print/freetype-tools/pkg-descr
@@ -0,0 +1,9 @@
+This includes some tools that are in FreeType 1's contrib directory.
+
+ttf2pfb: Converting TrueType fonts to the Postscript Type 1 format.
+ttf2pk: A simple conversion tool to bring TrueType quality to the
+ TeX world.
+ttf2bdf: Produce bitmapped fonts from TrueType files for your X11
+ applications.
+
+WWW: http://freetype.sourceforge.net/freetype1/projects.html
diff --git a/print/freetype-tools/pkg-plist b/print/freetype-tools/pkg-plist
new file mode 100644
index 000000000000..2fe9ac020818
--- /dev/null
+++ b/print/freetype-tools/pkg-plist
@@ -0,0 +1,5 @@
+bin/getafm
+bin/t1asm
+bin/ttf2pfb
+bin/ttf2pk
+bin/ttf2tfm