summaryrefslogtreecommitdiff
path: root/www/php3-gd
diff options
context:
space:
mode:
authortv <tv>1999-05-03 21:47:27 +0000
committertv <tv>1999-05-03 21:47:27 +0000
commit01c17616f977cc005dee6e23a472c390031958c4 (patch)
treef3222d90a089ad6c029ad15c31ff0c93f63ede24 /www/php3-gd
parent5f4040e39a0d0fbe25d76cb914ffc5bba322ec13 (diff)
downloadpkgsrc-01c17616f977cc005dee6e23a472c390031958c4.tar.gz
PHP3 module for image manipulation based on the GD graphics library.
This module includes support for the Image*() functions.
Diffstat (limited to 'www/php3-gd')
-rw-r--r--www/php3-gd/Makefile23
-rw-r--r--www/php3-gd/pkg/COMMENT1
-rw-r--r--www/php3-gd/pkg/DESCR2
-rw-r--r--www/php3-gd/pkg/PLIST2
4 files changed, 28 insertions, 0 deletions
diff --git a/www/php3-gd/Makefile b/www/php3-gd/Makefile
new file mode 100644
index 00000000000..73749a78297
--- /dev/null
+++ b/www/php3-gd/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1.1.1 1999/05/03 21:47:27 tv Exp $
+#
+
+PKGNAME= php-gd-${PHP_VERSION}
+
+DEPENDS+= gd-1.3p1:../../graphics/gd
+
+USE_PERL5= yes
+
+BUILDING_EXTENSION_MODULE=yes
+
+do-build:
+ cd ${WRKSRC}/functions && \
+ ${COMPILE.c} -I.. -I. -I${LOCALBASE}/include/gd -fPIC -DPIC -DCOMPILE_DL gd.c && \
+ ld -Bshareable -o gd.so gd.o -L${LOCALBASE}/lib -R${LOCALBASE}/lib -lgd
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/functions/gd.so ${PREFIX}/lib/php3/
+
+.include "../php3/Makefile"
+
+# this must be done last, as it is explicitly disabled in php3's CONFIGURE_ARGS
+CONFIGURE_ARGS+=--with-gd
diff --git a/www/php3-gd/pkg/COMMENT b/www/php3-gd/pkg/COMMENT
new file mode 100644
index 00000000000..6a4c59f6fa2
--- /dev/null
+++ b/www/php3-gd/pkg/COMMENT
@@ -0,0 +1 @@
+PHP3 extension for GD graphics library
diff --git a/www/php3-gd/pkg/DESCR b/www/php3-gd/pkg/DESCR
new file mode 100644
index 00000000000..4f588ce03a0
--- /dev/null
+++ b/www/php3-gd/pkg/DESCR
@@ -0,0 +1,2 @@
+PHP is a programming language designed to be embedded into web pages.
+This module provides GD graphics support for PHP3.
diff --git a/www/php3-gd/pkg/PLIST b/www/php3-gd/pkg/PLIST
new file mode 100644
index 00000000000..db0c3c4e91d
--- /dev/null
+++ b/www/php3-gd/pkg/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 1999/05/03 21:47:28 tv Exp $
+lib/php3/gd.so