aboutsummaryrefslogtreecommitdiffstats
path: root/www/mod_php4
diff options
context:
space:
mode:
authorandreas <andreas@FreeBSD.org>1998-07-25 14:51:26 +0800
committerandreas <andreas@FreeBSD.org>1998-07-25 14:51:26 +0800
commit9348adb6fa3e24332fd9bb15ba155c7b43a9ffde (patch)
tree296c1ae685ed66ea5a5d1bac628e7bf9598cb46b /www/mod_php4
parent2c66939821e660838381d6d2da5b3607de8eb178 (diff)
downloadfreebsd-ports-gnome-9348adb6fa3e24332fd9bb15ba155c7b43a9ffde.tar.gz
freebsd-ports-gnome-9348adb6fa3e24332fd9bb15ba155c7b43a9ffde.tar.zst
freebsd-ports-gnome-9348adb6fa3e24332fd9bb15ba155c7b43a9ffde.zip
Upgraded to last php version 3.0.2
Included freetype support for php Why freetype support ? If you compile PHP with gd and freetype[it's already a port], and grab some free truetype fonts from microsoft in self-install.exe format you can generate really nice on the fly gif's with text in them. Buttons, banners etc. William told me: I had to install the free microsoft fonts on my pc and then ftp them. I can't think of a way to extract the files from the .exe archive. I don't think it's a zip type. I got the fonts microsoft link by digging around in http://www.freetype.org Submitted by: William Lloyd <wlloyd@mpd.ca>
Diffstat (limited to 'www/mod_php4')
-rw-r--r--www/mod_php4/Makefile27
-rw-r--r--www/mod_php4/distinfo2
2 files changed, 16 insertions, 13 deletions
diff --git a/www/mod_php4/Makefile b/www/mod_php4/Makefile
index 2edb24ac96f8..09a291150026 100644
--- a/www/mod_php4/Makefile
+++ b/www/mod_php4/Makefile
@@ -3,20 +3,21 @@
# Date created: Wed Sep 3 18:28:20 CEST 1997
# Whom: Andreas Klemm <andreas@klemm.gtn.com>
#
-# $Id: Makefile,v 1.46 1998/06/27 13:52:34 andreas Exp $
+# $Id: Makefile,v 1.47 1998/07/11 20:52:36 andreas Exp $
#
DISTNAME= apache_1.2.6
-PKGNAME= apache-1.2.6-php3.0.1
+PKGNAME= apache-1.2.6-php3.0.2
CATEGORIES= www
MASTER_SITES= ftp://www.apache.org/apache/dist/ \
http://ca.php.net/distributions/
-DISTFILES= apache_1.2.6.tar.gz php-3.0.1.tar.gz
+DISTFILES= apache_1.2.6.tar.gz php-3.0.2.tar.gz
MAINTAINER= andreas@FreeBSD.ORG
BUILD_DEPENDS= ${PREFIX}/lib/libgd.a:${PORTSDIR}/graphics/gd \
- gmake:${PORTSDIR}/devel/gmake
+ gmake:${PORTSDIR}/devel/gmake \
+ ${PREFIX}/include/freetype.h:${PORTSDIR}/print/freetype
NO_PACKAGE= "Support for different databases via make-variable"
@@ -31,11 +32,13 @@ PATCH_DIST_ARGS= -d ${WRKSRC}/src --forward --quiet -E ${PATCH_DIST_STRIP}
.endif
# Set it for local-supplied patch, f.e.
-VERS_ID = PHP-3.0.1
+VERS_ID = PHP-3.0.2
PHP3_CONF_ARGS= --prefix=${PREFIX} --with-gd=${PREFIX} \
--with-system-regex --with-apache=${WRKSRC} \
- --with-config-file-path=${PREFIX}/lib --disable-debug
+ --with-config-file-path=${PREFIX}/lib --disable-debug \
+ --libdir=${PREFIX}/lib --includedir=${PREFIX}/include
+
.if !defined(PHP3_DBTYPE) || ${PHP3_DBTYPE} != msql && ${PHP3_DBTYPE} != mysql && ${PHP3_DBTYPE} != pgsql && ${PHP3_DBTYPE} != dbase
pre-fetch:
@@ -67,18 +70,18 @@ post-patch:
.endif
pre-configure:
- ( cd ${WRKDIR}/php-3.0.1 \
- && CC="${CC}" CFLAGS="${CFLAGS}" ./configure ${PHP3_CONF_ARGS} \
+ ( cd ${WRKDIR}/php-3.0.2 \
+ && CC="${CC}" CFLAGS="${CFLAGS}" CPPFLAGS=-I${PREFIX}/include ./configure ${PHP3_CONF_ARGS} \
&& ${GMAKE} install )
${ECHO} "Module php3_module mod_php3.o" >> ${WRKSRC}/src/Configuration
.if defined(PHP3_DBTYPE) && ${PHP3_DBTYPE} == msql
- ${ECHO} "EXTRA_LIBS=-lmd libphp3.a -L${PREFIX}/lib -lmsql -lgd -lm" >> ${WRKSRC}/src/Configuration
+ ${ECHO} "EXTRA_LIBS=-lmd libphp3.a -L${PREFIX}/lib -lmsql -lgd -lm -lttf" >> ${WRKSRC}/src/Configuration
.elif defined(PHP3_DBTYPE) && ${PHP3_DBTYPE} == mysql
- ${ECHO} "EXTRA_LIBS=-lmd libphp3.a -L${PREFIX}/lib/mysql -lmysqlclient -L${PREFIX}/lib -I${PREFIX}/include/gd -lgd -lm" >> ${WRKSRC}/src/Configuration
+ ${ECHO} "EXTRA_LIBS=-lmd libphp3.a -L${PREFIX}/lib/mysql -lmysqlclient -L${PREFIX}/lib -I${PREFIX}/include/gd -lgd -lm -lttf" >> ${WRKSRC}/src/Configuration
.elif defined(PHP3_DBTYPE) && ${PHP3_DBTYPE} == pgsql
- ${ECHO} "EXTRA_LIBS=-lmd libphp3.a -L${PREFIX}/pgsql/lib -lpq -L${PREFIX}/lib -lgd -lm" >> ${WRKSRC}/src/Configuration
+ ${ECHO} "EXTRA_LIBS=-lmd libphp3.a -L${PREFIX}/pgsql/lib -lpq -L${PREFIX}/lib -lgd -lm -lttf" >> ${WRKSRC}/src/Configuration
.elif defined(PHP3_DBTYPE) && ${PHP3_DBTYPE} == dbase
- ${ECHO} "EXTRA_LIBS=-lmd libphp3.a libdbf.a -L${PREFIX}/lib -lgd -lm" >> ${WRKSRC}/src/Configuration
+ ${ECHO} "EXTRA_LIBS=-lmd libphp3.a libdbf.a -L${PREFIX}/lib -lgd -lm -lttf" >> ${WRKSRC}/src/Configuration
.endif
post-install:
diff --git a/www/mod_php4/distinfo b/www/mod_php4/distinfo
index 88c5b00387c1..cb2cfe981349 100644
--- a/www/mod_php4/distinfo
+++ b/www/mod_php4/distinfo
@@ -1,2 +1,2 @@
MD5 (apache_1.2.6.tar.gz) = ff292bc21fe4f53b0e39dc8024019f44
-MD5 (php-3.0.1.tar.gz) = 9f062f5188672eecf5638d04c459d1c9
+MD5 (php-3.0.2.tar.gz) = bd47e73a3d300263bafa8781ec766377