summaryrefslogtreecommitdiff
path: root/www/php3-gd/Makefile
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/Makefile
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/Makefile')
-rw-r--r--www/php3-gd/Makefile23
1 files changed, 23 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