diff options
author | drochner <drochner@pkgsrc.org> | 2000-02-03 19:32:59 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2000-02-03 19:32:59 +0000 |
commit | 5cb106eec742f0ddf4736da409a278f824541d55 (patch) | |
tree | 7c00c703873475c91e77bcc638be2e52d901f895 /print/pdflib/patches | |
parent | e7d73509d4449fb6592da946ee2b8203188cb87a (diff) | |
download | pkgsrc-5cb106eec742f0ddf4736da409a278f824541d55.tar.gz |
Upgrade to pdflib-2.01. Changes include a new (autoconf based) build
environment, bugfixes and documentation improvements.
Diffstat (limited to 'print/pdflib/patches')
-rw-r--r-- | print/pdflib/patches/patch-aa | 111 | ||||
-rw-r--r-- | print/pdflib/patches/patch-ab | 29 |
2 files changed, 78 insertions, 62 deletions
diff --git a/print/pdflib/patches/patch-aa b/print/pdflib/patches/patch-aa index 1f039fb38bb..a8b01d1b6bd 100644 --- a/print/pdflib/patches/patch-aa +++ b/print/pdflib/patches/patch-aa @@ -1,53 +1,60 @@ -$NetBSD: patch-aa,v 1.1.1.1 1999/02/28 15:17:54 hwr Exp $ +$NetBSD: patch-aa,v 1.2 2000/02/03 19:33:01 drochner Exp $ ---- Makefile.orig Sun Feb 28 15:36:30 1999 -+++ Makefile Sun Feb 28 15:37:40 1999 -@@ -37,32 +37,32 @@ - # TIFF and JPEG are not currently supported along with scripting - - #DEFINES = -DUSE_TIFF --DEFINES = -+DEFINES = -DPOSIX -DUSE_ZLIB - EXTRALIBS = - - # ------------------- SWIG related stuff ---------------------------------- - SWIG = swig - --PDFLIB_TCL = BINDINGS/TCL/pdflib.so --SWIGOPT_TCL = -tcl -DTCL -d pdflib_tcl --TCL_OBJS = pdftcl_wrap.o --TCL_INC = -- --PDFLIB_PYTHON = BINDINGS/PYTHON/pdflib.so --SWIGOPT_PYTHON = -python -d pdflib_python --PYTHON_OBJS = pdfpython_wrap.o --PYTHON_INC = -I/usr/include/python1.4 -- --PDFLIB_PERL = BINDINGS/PERL/pdflib.so --SWIGOPT_PERL = -perl5 -shadow -DPERL5 -d pdflib_perl --PERL_OBJS = pdfperl_wrap.o --PERL_INC = -I/usr/lib/perl5/i586-linux/5.004/CORE -+#PDFLIB_TCL = BINDINGS/TCL/pdflib.so -+#SWIGOPT_TCL = -tcl -DTCL -d pdflib_tcl -+#TCL_OBJS = pdftcl_wrap.o -+#TCL_INC = -I/@PREFIX@/include/tcl8.0 -+ -+#PDFLIB_PYTHON = BINDINGS/PYTHON/pdflib.so -+#SWIGOPT_PYTHON = -python -d pdflib_python -+#PYTHON_OBJS = pdfpython_wrap.o -+#PYTHON_INC = -I/usr/include/python1.4 -+ -+#PDFLIB_PERL = BINDINGS/PERL/pdflib.so -+#SWIGOPT_PERL = -perl5 -shadow -DPERL5 -d pdflib_perl -+#PERL_OBJS = pdfperl_wrap.o -+#PERL_INC = -I/usr/local/lib/perl5/i386-netbsd/5.00404/CORE - - SWIG_OBJS = $(TCL_OBJS) $(PYTHON_OBJS) $(PERL_OBJS) - - # ------------------- Make variables for Linux/Gnu Compiler ---------------- - # Additional include directories, e.g. for TIFF and ZLIB library headers --INCDIR = -I/usr/local/include $(TCL_INC) $(PYTHON_INC) $(PERL_INC) -+INCDIR = -I/usr/local/include -I/usr/pkg/include $(TCL_INC) $(PYTHON_INC) $(PERL_INC) - CC = gcc - - # needed only for swig +--- pdflib/Makefile.in.orig Tue Aug 3 14:59:53 1999 ++++ pdflib/Makefile.in Wed Feb 2 21:31:11 2000 +@@ -8,7 +8,7 @@ + srcdir = @srcdir@ + + EXE = @EXE@ +-OBJ = @OBJ@ ++OBJ = lo + AR = @AR@ + CC = @CC@ + RM = @RM@ +@@ -30,16 +30,16 @@ + LDSHARED = @LDSHARED@ + + # Either pdflib.a or pdflib.so, selected by configure script +-PDFLIB = @PDFLIB@ ++PDFLIB = libpdf.la + PDFLIB_STATIC = @PDFLIB_STATIC@ +-PDFLIB_SHARED = @PDFLIB_SHARED@ ++PDFLIB_SHARED = libpdf.la + + CFLAGS = -c @DEFS@ @DEFINES@ @CCSHARED@ $(TIFFINC) $(ZLIBINC) + +-.SUFFIXES: .c ++.SUFFIXES: .lo + +-.c.o: +- $(CC) $(CFLAGS) $(DEFINES) $< ++.c.lo: ++ ${LIBTOOL} --mode=compile $(CC) $(CFLAGS) $(DEFINES) $< + + SRC = \ + $(srcdir)/p_afmparse.c \ +@@ -86,7 +86,8 @@ + + $(PDFLIB_SHARED): $(OBJS) + $(RM) $(PDFLIB_STATIC) $(PDFLIB_SHARED) +- $(LDSHARED) -o $(PDFLIB_SHARED) $(OBJS) ++ ${LIBTOOL} --mode=link ${CC} -o $(PDFLIB_SHARED) $(OBJS) \ ++ -rpath ${prefix}/lib -version-info 2:1 + + clean: + -$(RM) $(OBJS) $(PDFLIB_STATIC) $(PDFLIB_SHARED) +@@ -96,13 +97,7 @@ + + install: $(PDFLIB) + $(INSTALL) pdflib.h $(includedir) +- $(INSTALL) $(PDFLIB) $(libdir) +- cd $(libdir); \ +- if test $(PDFLIB) != $(PDFLIB_STATIC); then \ +- (ldconfig || true) >/dev/null 2>&1; \ +- else \ +- $(RANLIB) $(libdir)/$(PDFLIB_STATIC); \ +- fi ++ ${LIBTOOL} --mode=install $(INSTALL) $(PDFLIB) $(libdir) + + uninstall: + -$(RM) $(includedir)/pdflib.h diff --git a/print/pdflib/patches/patch-ab b/print/pdflib/patches/patch-ab index ecf92eddade..76dce5700ff 100644 --- a/print/pdflib/patches/patch-ab +++ b/print/pdflib/patches/patch-ab @@ -1,13 +1,22 @@ -$NetBSD: patch-ab,v 1.2 1999/03/01 20:33:01 hwr Exp $ +$NetBSD: patch-ab,v 1.3 2000/02/03 19:33:01 drochner Exp $ ---- pdf.h.orig Wed Jul 8 15:32:59 1998 -+++ pdf.h Sun Feb 28 15:29:53 1999 -@@ -20,7 +20,7 @@ +--- Makefile.in.orig Sun Aug 1 14:36:05 1999 ++++ Makefile.in Wed Feb 2 20:54:50 2000 +@@ -29,7 +29,7 @@ - /* default path to font and AFM directory */ - #ifndef PDF_DEFAULT_FONT_PATH --#define PDF_DEFAULT_FONT_PATH "./fonts" -+#define PDF_DEFAULT_FONT_PATH "@PREFIX@/share/afm" - #endif + # ------------------------- default target ------------------------------- - /* Data types and defines */ +-all: pdflib @BINDINGS@ ++all: pdflib + + pdflib:: + cd pdflib && $(MAKE) +@@ -83,7 +83,7 @@ + + # --------------------------- install --------------------------------- + +-install: pdflib_install @BINDINGS_INSTALL@ ++install: pdflib_install + + pdflib_install: + -cd pdflib && $(MAKE) install |