diff options
author | hwr <hwr> | 1999-02-28 15:17:54 +0000 |
---|---|---|
committer | hwr <hwr> | 1999-02-28 15:17:54 +0000 |
commit | 282bfac33ed5ef88d9bc1a29e3a255eff42ab0d4 (patch) | |
tree | acebd6fc0adfef7789805e8010ee00bbef19d726 /print | |
parent | b3ba573d430caec6500ee747c86a495fc5b118dc (diff) | |
download | pkgsrc-282bfac33ed5ef88d9bc1a29e3a255eff42ab0d4.tar.gz |
Pdflib 0.6 A library to generate PDF documents.
XXX One of our pkg-gurus should probably look at this, as
a) /usr/pkg is a the moment hardwired
b) no builtin support for perl/phyton/tcl is yet enabled (I don't want
to build phyton in order to build the pdflib package).
Diffstat (limited to 'print')
-rw-r--r-- | print/pdflib/Makefile | 19 | ||||
-rw-r--r-- | print/pdflib/files/md5 | 3 | ||||
-rw-r--r-- | print/pdflib/patches/patch-aa | 53 | ||||
-rw-r--r-- | print/pdflib/patches/patch-ab | 13 | ||||
-rw-r--r-- | print/pdflib/pkg/COMMENT | 1 | ||||
-rw-r--r-- | print/pdflib/pkg/DESCR | 6 | ||||
-rw-r--r-- | print/pdflib/pkg/PLIST | 21 | ||||
-rw-r--r-- | print/pdflib/scripts/post-extract | 5 | ||||
-rw-r--r-- | print/pdflib/scripts/pre-install | 14 |
9 files changed, 135 insertions, 0 deletions
diff --git a/print/pdflib/Makefile b/print/pdflib/Makefile new file mode 100644 index 00000000000..8813d586cf8 --- /dev/null +++ b/print/pdflib/Makefile @@ -0,0 +1,19 @@ +# $NetBSD: Makefile,v 1.1.1.1 1999/02/28 15:17:54 hwr Exp $ +# + +DISTNAME= pdflib-0.6 +CATEGORIES= print +MASTER_SITES= http://www.ifconnection.de/~tm/software/pdflib/ + +MAINTAINER= packages@netbsd.org +HOMEPAGE= http://www.ifconnection.de/~tm/software/pdflib/ + +BUILD_DEPEND+= gmake:../../devel/ + +USE_GMAKE= yes + +# the next is a empty target, as pdflib itself does not have a install +# target. The real install is done by scripts/pre-install +do-install: + +.include "../../mk/bsd.pkg.mk" diff --git a/print/pdflib/files/md5 b/print/pdflib/files/md5 new file mode 100644 index 00000000000..cd252200d6c --- /dev/null +++ b/print/pdflib/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 1999/02/28 15:17:54 hwr Exp $ + +MD5 (pdflib-0.6.tar.gz) = a7773a2cbebe30655cbbe884f3a012db diff --git a/print/pdflib/patches/patch-aa b/print/pdflib/patches/patch-aa new file mode 100644 index 00000000000..1f039fb38bb --- /dev/null +++ b/print/pdflib/patches/patch-aa @@ -0,0 +1,53 @@ +$NetBSD: patch-aa,v 1.1.1.1 1999/02/28 15:17:54 hwr 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 diff --git a/print/pdflib/patches/patch-ab b/print/pdflib/patches/patch-ab new file mode 100644 index 00000000000..5c95718e3a3 --- /dev/null +++ b/print/pdflib/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1.1.1 1999/02/28 15:17:54 hwr Exp $ + +--- pdf.h.orig Wed Jul 8 15:32:59 1998 ++++ pdf.h Sun Feb 28 15:29:53 1999 +@@ -20,7 +20,7 @@ + + /* default path to font and AFM directory */ + #ifndef PDF_DEFAULT_FONT_PATH +-#define PDF_DEFAULT_FONT_PATH "./fonts" ++#define PDF_DEFAULT_FONT_PATH "/usr/pkg/pdf-afm" + #endif + + /* Data types and defines */ diff --git a/print/pdflib/pkg/COMMENT b/print/pdflib/pkg/COMMENT new file mode 100644 index 00000000000..87e89a9fe5b --- /dev/null +++ b/print/pdflib/pkg/COMMENT @@ -0,0 +1 @@ +A C library to produce PDF files. diff --git a/print/pdflib/pkg/DESCR b/print/pdflib/pkg/DESCR new file mode 100644 index 00000000000..b9a45a42e40 --- /dev/null +++ b/print/pdflib/pkg/DESCR @@ -0,0 +1,6 @@ +PDFlib is a library of C routines which allow you to programmatically +generate files in Adobe's Portable Document Format PDF. PDFlib acts as +a backend processor to your own programs. While you (the programmer) are +responsible for retrieving or maintaining the data to be processed, PDFlib +takes over the task of generating the PDF code which graphically represents +your data. diff --git a/print/pdflib/pkg/PLIST b/print/pdflib/pkg/PLIST new file mode 100644 index 00000000000..5c2ebdc096e --- /dev/null +++ b/print/pdflib/pkg/PLIST @@ -0,0 +1,21 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 1999/02/28 15:17:54 hwr Exp $ +pdf-afm/Courier-Bold.afm +pdf-afm/Courier-BoldOblique.afm +pdf-afm/Courier-Oblique.afm +pdf-afm/Courier.afm +pdf-afm/Helvetica-Bold.afm +pdf-afm/Helvetica-BoldOblique.afm +pdf-afm/Helvetica-Oblique.afm +pdf-afm/Helvetica.afm +pdf-afm/Symbol.afm +pdf-afm/Times-Bold.afm +pdf-afm/Times-BoldItalic.afm +pdf-afm/Times-Italic.afm +pdf-afm/Times-Roman.afm +pdf-afm/ZapfDingbats.afm +pdf-afm/afmlist +@dirrm pdf-afm +lib/libpdf.a +include/pdf.h +include/p_port.h +bin/text2pdf diff --git a/print/pdflib/scripts/post-extract b/print/pdflib/scripts/post-extract new file mode 100644 index 00000000000..6179648ccf1 --- /dev/null +++ b/print/pdflib/scripts/post-extract @@ -0,0 +1,5 @@ +#!/bin/sh +# $NetBSD: post-extract,v 1.1.1.1 1999/02/28 15:17:54 hwr Exp $ + +cd ${WRKSRC} +cp makefile.gcc Makefile diff --git a/print/pdflib/scripts/pre-install b/print/pdflib/scripts/pre-install new file mode 100644 index 00000000000..701d351dae4 --- /dev/null +++ b/print/pdflib/scripts/pre-install @@ -0,0 +1,14 @@ +#!/bin/sh +# $NetBSD: pre-install,v 1.1.1.1 1999/02/28 15:17:54 hwr Exp $ + +echo -n "Worksource:" +echo ${WRKSRC} + +cd ${WRKSRC} +cp p_port.h ${PREFIX}/include +cp pdf.h ${PREFIX}/include +cp libpdf.a ${PREFIX}/lib +mkdir ${PREFIX}/pdf-afm +cp fonts/*.afm ${PREFIX}/pdf-afm/ +cp fonts/afmlist ${PREFIX}/pdf-afm/ +cp text2pdf ${PREFIX}/bin |