summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--print/php4-pdflib/Makefile19
-rw-r--r--print/php4-pdflib/distinfo5
-rw-r--r--print/php4-pdflib/patches/patch-aa15
-rw-r--r--print/php4-pdflib/pkg/DESCR3
4 files changed, 42 insertions, 0 deletions
diff --git a/print/php4-pdflib/Makefile b/print/php4-pdflib/Makefile
new file mode 100644
index 00000000000..fbe9cacdc45
--- /dev/null
+++ b/print/php4-pdflib/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/10/16 06:20:44 jlam Exp $
+
+.include "../php4/Makefile.module"
+
+MODNAME= pdf
+PKGNAME= php-pdflib-${PHP_VERS}
+CATEGORIES= print
+PHP_PKG_VERS= # empty
+COMMENT= PHP4 extension for PDFlib on-the-fly PDF generation
+
+USE_BUILDLINK_ONLY= YES
+CONFIGURE_ARGS+= --with-pdflib=shared,${BUILDLINK_DIR}
+CONFIGURE_ARGS+= --with-jpeg-dir=shared,${BUILDLINK_DIR}
+CONFIGURE_ARGS+= --with-png-dir=shared,${BUILDLINK_DIR}
+CONFIGURE_ARGS+= --with-tiff-dir=shared,${BUILDLINK_DIR}
+CONFIGURE_ENV+= PHP_ZLIB_DIR=${BUILDLINK_DIR}
+
+.include "../../print/pdflib/buildlink.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/print/php4-pdflib/distinfo b/print/php4-pdflib/distinfo
new file mode 100644
index 00000000000..0d9599a9957
--- /dev/null
+++ b/print/php4-pdflib/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2001/10/16 06:20:44 jlam Exp $
+
+SHA1 (php-4.0.6.tar.gz) = 6544eb1085b916541af914a11074e9bb8a037a03
+Size (php-4.0.6.tar.gz) = 3157346 bytes
+SHA1 (patch-aa) = 5bd46f33efb16b344147c9ab58aa991e6c052e21
diff --git a/print/php4-pdflib/patches/patch-aa b/print/php4-pdflib/patches/patch-aa
new file mode 100644
index 00000000000..a4e6d38ad9d
--- /dev/null
+++ b/print/php4-pdflib/patches/patch-aa
@@ -0,0 +1,15 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/10/16 06:20:44 jlam Exp $
+
+--- Makefile.in.orig Mon Feb 12 12:50:37 2001
++++ Makefile.in
+@@ -1,8 +1,7 @@
+
+ LTLIBRARY_NAME = libpdf.la
+ LTLIBRARY_SOURCES = pdf.c
+-LTLIBRARY_SHARED_NAME = libpdf_php.la
+-PDFLIB_SHARED_LIBBADD = -lpdf
+-LTLIBRARY_SHARED_LIBADD = $(PDFLIB_SHARED_LIBBADD)
++LTLIBRARY_SHARED_NAME = pdf.la
++LTLIBRARY_SHARED_LIBADD = $(PDFLIB_SHARED_LIBADD)
+
+ include $(top_srcdir)/build/dynlib.mk
diff --git a/print/php4-pdflib/pkg/DESCR b/print/php4-pdflib/pkg/DESCR
new file mode 100644
index 00000000000..8ac80dfc23a
--- /dev/null
+++ b/print/php4-pdflib/pkg/DESCR
@@ -0,0 +1,3 @@
+PHP is a programming language designed to be embedded into web pages.
+This module provides an interface to PDFlib for on-the-fly PDF generation
+for PHP4.