mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
Prepare for new slave port: www/php4-cgi.
PR: ports/52617 Submitted by: Alex Dupre <sysadmin@alexdupre.com>
This commit is contained in:
parent
0453e9af3e
commit
aac19ca8e7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=82384
12 changed files with 147 additions and 78 deletions
|
@ -24,22 +24,32 @@ PORTVERSION= 4.3.2.r4
|
||||||
CATEGORIES?= lang devel www
|
CATEGORIES?= lang devel www
|
||||||
MASTER_SITES= http://downloads.php.net/jani/ \
|
MASTER_SITES= http://downloads.php.net/jani/ \
|
||||||
http://www.gufi.org/~alex/php/
|
http://www.gufi.org/~alex/php/
|
||||||
.if defined(WITHOUT_CLI)
|
.if defined(WITHOUT_CLI) && !defined(WITHOUT_APACHE)
|
||||||
PKGNAMEPREFIX= mod_
|
PKGNAMEPREFIX= mod_
|
||||||
.endif
|
.else
|
||||||
.if defined(WITHOUT_APACHE)
|
.if defined(WITHOUT_APACHE)
|
||||||
|
.if defined(WITHOUT_CLI)
|
||||||
|
PKGNAMESUFFIX= -cgi
|
||||||
|
.else
|
||||||
PKGNAMESUFFIX= -cli
|
PKGNAMESUFFIX= -cli
|
||||||
.endif
|
.endif
|
||||||
|
.endif
|
||||||
|
.endif
|
||||||
DISTNAME= php-${PORTVERSION:S/.r/RC/}
|
DISTNAME= php-${PORTVERSION:S/.r/RC/}
|
||||||
|
|
||||||
MAINTAINER?= sysadmin@alexdupre.com
|
MAINTAINER?= sysadmin@alexdupre.com
|
||||||
COMMENT= PHP Scripting Language (Apache Module and CLI)
|
COMMENT= PHP Scripting Language (Apache Module and CLI)
|
||||||
.if defined(WITHOUT_APACHE)
|
.if defined(WITHOUT_APACHE)
|
||||||
|
.if defined(WITHOUT_CLI)
|
||||||
|
COMMENT= PHP Common Gateway Interface
|
||||||
|
.else
|
||||||
COMMENT= PHP Command Line Interpreter
|
COMMENT= PHP Command Line Interpreter
|
||||||
.endif
|
.endif
|
||||||
|
.else
|
||||||
.if defined(WITHOUT_CLI)
|
.if defined(WITHOUT_CLI)
|
||||||
COMMENT= PHP Apache Module
|
COMMENT= PHP Apache Module
|
||||||
.endif
|
.endif
|
||||||
|
.endif
|
||||||
|
|
||||||
USE_BZIP2= yes
|
USE_BZIP2= yes
|
||||||
USE_SUBMAKE= yes
|
USE_SUBMAKE= yes
|
||||||
|
@ -54,22 +64,37 @@ CONFIGURE_ARGS= --enable-versioning \
|
||||||
--disable-all
|
--disable-all
|
||||||
|
|
||||||
EXT_DIR= 20020429
|
EXT_DIR= 20020429
|
||||||
SAPI_FILE= ""
|
SAPI_FILE= "@comment "
|
||||||
|
|
||||||
|
CONFLICTS= php4-cli-4* mod_php4-4* php4-cgi-4*
|
||||||
.if defined(WITHOUT_APACHE)
|
.if defined(WITHOUT_APACHE)
|
||||||
CONFLICTS= php4-4* mod_php4-4*
|
.if defined(WITHOUT_CLI)
|
||||||
|
CONFLICTS= php4-4* php4-cli-4* mod_php4-4*
|
||||||
|
.else
|
||||||
|
CONFLICTS= php4-4* php4-cgi-4* mod_php4-4*
|
||||||
|
.endif
|
||||||
|
.else
|
||||||
|
.if defined(WITHOUT_CLI)
|
||||||
|
CONFLICTS= php4-4* php4-cli-4* php4-cgi-4*
|
||||||
|
.endif
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
.if defined(WITHOUT_APACHE)
|
||||||
|
CONFIGURE_ARGS+=--enable-discard-path
|
||||||
|
PLIST_SUB+= APACHE="@comment "
|
||||||
|
.else
|
||||||
|
PLIST_SUB+= APACHE=""
|
||||||
|
.endif
|
||||||
.if defined(WITHOUT_CLI)
|
.if defined(WITHOUT_CLI)
|
||||||
CONFLICTS= php4-4* php4-cli-4*
|
|
||||||
CONFIGURE_ARGS+=--disable-cli
|
CONFIGURE_ARGS+=--disable-cli
|
||||||
PLIST_SUB+= CLI="@comment "
|
PLIST_SUB+= CLI="@comment "
|
||||||
.else
|
.else
|
||||||
MAN1= php.1
|
MAN1= php.1
|
||||||
PLIST_SUB+= CLI=""
|
PLIST_SUB+= CLI=""
|
||||||
.endif
|
.endif
|
||||||
|
.if defined(WITHOUT_APACHE) && defined(WITHOUT_CLI)
|
||||||
CONFLICTS?= php4-cli-4* mod_php4-4*
|
SAPI_FILE= "bin/php"
|
||||||
|
.endif
|
||||||
|
|
||||||
ALL_OPTIONS= BCMATH BZIP2 CALENDAR CRACK CTYPE CURL DBASE DBX DOMXML \
|
ALL_OPTIONS= BCMATH BZIP2 CALENDAR CRACK CTYPE CURL DBASE DBX DOMXML \
|
||||||
DOMXSLT EXIF FILEPRO FTP GD GDBM GETTEXT GMP HYPERWAVE ICONV \
|
DOMXSLT EXIF FILEPRO FTP GD GDBM GETTEXT GMP HYPERWAVE ICONV \
|
||||||
|
@ -508,30 +533,28 @@ pre-configure:
|
||||||
@${ECHO_CMD} "You cannot define WITH_SYBASEDB *and* WITH_SYBASECT!"
|
@${ECHO_CMD} "You cannot define WITH_SYBASEDB *and* WITH_SYBASECT!"
|
||||||
@${FALSE}
|
@${FALSE}
|
||||||
.endif
|
.endif
|
||||||
.if defined(WITHOUT_CLI) && defined(WITHOUT_APACHE)
|
.if !defined(WITHOUT_APACHE) && !defined(WITHOUT_CLI)
|
||||||
@${ECHO_CMD} "You cannot define WITHOUT_CLI *and* WITHOUT_APACHE!"
|
|
||||||
@${FALSE}
|
|
||||||
.endif
|
|
||||||
.if !defined(WITHOUT_CLI) && !defined(WITHOUT_APACHE)
|
|
||||||
@${ECHO_CMD} ""
|
@${ECHO_CMD} ""
|
||||||
@${ECHO_CMD} "You may use the following build options:"
|
@${ECHO_CMD} "You are building the Apache Module and the Command Line Interpreter of PHP."
|
||||||
@${ECHO_CMD} ""
|
@${ECHO_CMD} ""
|
||||||
.if !defined(WITHOUT_CLI) && !defined(WITHOUT_APACHE)
|
@${ECHO_CMD} "Use port:"
|
||||||
@${ECHO_CMD} " WITHOUT_CLI=yes Disable Command Line Interpreter"
|
@${ECHO_CMD} " lang/php4-cli for Command Line Interpreter only"
|
||||||
@${ECHO_CMD} " WITHOUT_APACHE=yes Disable Apache Module"
|
@${ECHO_CMD} " www/php4-cgi for Common Gateway Interface only"
|
||||||
.endif
|
@${ECHO_CMD} " www/mod_php4 for Apache Module only"
|
||||||
@${ECHO_CMD} ""
|
@${ECHO_CMD} ""
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
.if !defined(WITHOUT_CLI)
|
||||||
post-build:
|
post-build:
|
||||||
@${ECHO_CMD} ""
|
@${ECHO_CMD} "You may run the tests from the PHP test framework, typing 'make test' now."
|
||||||
@${ECHO_CMD} "You may run the tests from the PHP test framework."
|
@${ECHO_CMD} "(It is safe to ignore errors about timestamp-related tests,"
|
||||||
@${ECHO_CMD} "You can do this by typing 'make test' now."
|
@${ECHO_CMD} "since they are due to the different FreeBSD mktime() implementation)."
|
||||||
@${ECHO_CMD} ""
|
@${ECHO_CMD} ""
|
||||||
|
|
||||||
test: all
|
test: all
|
||||||
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
|
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
|
||||||
${MAKEFILE} ${MAKE_ARGS} ${.TARGET})
|
${MAKEFILE} ${MAKE_ARGS} ${.TARGET})
|
||||||
|
.endif
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
.if !defined(WITHOUT_CLI)
|
.if !defined(WITHOUT_CLI)
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
PHP, which stands for "PHP: Hypertect Preprocessor" is a widely-used Open
|
PHP, which stands for "PHP: Hypertext Preprocessor" is a widely-used Open
|
||||||
Source general-purpose scripting language that is especially suited for
|
Source general-purpose scripting language that is especially suited for
|
||||||
for Web development and can be embedded into HTML. Its syntax draws upon C,
|
Web development and can be embedded into HTML. Its syntax draws upon C,
|
||||||
Java, and Perl, and is easy to learn. The main goal of the language is to
|
Java, and Perl, and is easy to learn. The main goal of the language is to
|
||||||
allow web developers to write dinamically generated webpages quickly, but
|
allow web developers to write dynamically generated webpages quickly, but
|
||||||
you can do much more with PHP.
|
you can do much more with PHP.
|
||||||
|
|
||||||
WWW: http://www.php.net/
|
WWW: http://www.php.net/
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
You have installed the php4 package.
|
You have installed the php4 package.
|
||||||
|
|
||||||
Have a look at the php-dev port if you need additional extensions
|
Have a look at the php4 port if you need additional extensions
|
||||||
other than ctype, MySQL, PCRE, POSIX, session, tokenizer, XML and ZLIB.
|
other than ctype, MySQL, PCRE, POSIX, session, tokenizer, XML and ZLIB.
|
||||||
|
|
||||||
You can find it at
|
You can find it at
|
||||||
|
|
|
@ -197,7 +197,7 @@ lib/php/build/mkdep.awk
|
||||||
lib/php/build/phpize.m4
|
lib/php/build/phpize.m4
|
||||||
lib/php/build/scan_makefile_in.awk
|
lib/php/build/scan_makefile_in.awk
|
||||||
lib/php/build/shtool
|
lib/php/build/shtool
|
||||||
%%APACHE%%%%SAPI_FILE%%
|
%%SAPI_FILE%%
|
||||||
%%APACHE%%@exec %D/sbin/apxs -e -a -n php4 %f
|
%%APACHE%%@exec %D/sbin/apxs -e -a -n php4 %f
|
||||||
%%APACHE%%@unexec %D/sbin/apxs -e -A -n php4 %f
|
%%APACHE%%@unexec %D/sbin/apxs -e -A -n php4 %f
|
||||||
%%CLI%%share/pear/bootstrap/Archive/Tar.php
|
%%CLI%%share/pear/bootstrap/Archive/Tar.php
|
||||||
|
|
|
@ -24,22 +24,32 @@ PORTVERSION= 4.3.2.r4
|
||||||
CATEGORIES?= lang devel www
|
CATEGORIES?= lang devel www
|
||||||
MASTER_SITES= http://downloads.php.net/jani/ \
|
MASTER_SITES= http://downloads.php.net/jani/ \
|
||||||
http://www.gufi.org/~alex/php/
|
http://www.gufi.org/~alex/php/
|
||||||
.if defined(WITHOUT_CLI)
|
.if defined(WITHOUT_CLI) && !defined(WITHOUT_APACHE)
|
||||||
PKGNAMEPREFIX= mod_
|
PKGNAMEPREFIX= mod_
|
||||||
.endif
|
.else
|
||||||
.if defined(WITHOUT_APACHE)
|
.if defined(WITHOUT_APACHE)
|
||||||
|
.if defined(WITHOUT_CLI)
|
||||||
|
PKGNAMESUFFIX= -cgi
|
||||||
|
.else
|
||||||
PKGNAMESUFFIX= -cli
|
PKGNAMESUFFIX= -cli
|
||||||
.endif
|
.endif
|
||||||
|
.endif
|
||||||
|
.endif
|
||||||
DISTNAME= php-${PORTVERSION:S/.r/RC/}
|
DISTNAME= php-${PORTVERSION:S/.r/RC/}
|
||||||
|
|
||||||
MAINTAINER?= sysadmin@alexdupre.com
|
MAINTAINER?= sysadmin@alexdupre.com
|
||||||
COMMENT= PHP Scripting Language (Apache Module and CLI)
|
COMMENT= PHP Scripting Language (Apache Module and CLI)
|
||||||
.if defined(WITHOUT_APACHE)
|
.if defined(WITHOUT_APACHE)
|
||||||
|
.if defined(WITHOUT_CLI)
|
||||||
|
COMMENT= PHP Common Gateway Interface
|
||||||
|
.else
|
||||||
COMMENT= PHP Command Line Interpreter
|
COMMENT= PHP Command Line Interpreter
|
||||||
.endif
|
.endif
|
||||||
|
.else
|
||||||
.if defined(WITHOUT_CLI)
|
.if defined(WITHOUT_CLI)
|
||||||
COMMENT= PHP Apache Module
|
COMMENT= PHP Apache Module
|
||||||
.endif
|
.endif
|
||||||
|
.endif
|
||||||
|
|
||||||
USE_BZIP2= yes
|
USE_BZIP2= yes
|
||||||
USE_SUBMAKE= yes
|
USE_SUBMAKE= yes
|
||||||
|
@ -54,22 +64,37 @@ CONFIGURE_ARGS= --enable-versioning \
|
||||||
--disable-all
|
--disable-all
|
||||||
|
|
||||||
EXT_DIR= 20020429
|
EXT_DIR= 20020429
|
||||||
SAPI_FILE= ""
|
SAPI_FILE= "@comment "
|
||||||
|
|
||||||
|
CONFLICTS= php4-cli-4* mod_php4-4* php4-cgi-4*
|
||||||
.if defined(WITHOUT_APACHE)
|
.if defined(WITHOUT_APACHE)
|
||||||
CONFLICTS= php4-4* mod_php4-4*
|
.if defined(WITHOUT_CLI)
|
||||||
|
CONFLICTS= php4-4* php4-cli-4* mod_php4-4*
|
||||||
|
.else
|
||||||
|
CONFLICTS= php4-4* php4-cgi-4* mod_php4-4*
|
||||||
|
.endif
|
||||||
|
.else
|
||||||
|
.if defined(WITHOUT_CLI)
|
||||||
|
CONFLICTS= php4-4* php4-cli-4* php4-cgi-4*
|
||||||
|
.endif
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
.if defined(WITHOUT_APACHE)
|
||||||
|
CONFIGURE_ARGS+=--enable-discard-path
|
||||||
|
PLIST_SUB+= APACHE="@comment "
|
||||||
|
.else
|
||||||
|
PLIST_SUB+= APACHE=""
|
||||||
|
.endif
|
||||||
.if defined(WITHOUT_CLI)
|
.if defined(WITHOUT_CLI)
|
||||||
CONFLICTS= php4-4* php4-cli-4*
|
|
||||||
CONFIGURE_ARGS+=--disable-cli
|
CONFIGURE_ARGS+=--disable-cli
|
||||||
PLIST_SUB+= CLI="@comment "
|
PLIST_SUB+= CLI="@comment "
|
||||||
.else
|
.else
|
||||||
MAN1= php.1
|
MAN1= php.1
|
||||||
PLIST_SUB+= CLI=""
|
PLIST_SUB+= CLI=""
|
||||||
.endif
|
.endif
|
||||||
|
.if defined(WITHOUT_APACHE) && defined(WITHOUT_CLI)
|
||||||
CONFLICTS?= php4-cli-4* mod_php4-4*
|
SAPI_FILE= "bin/php"
|
||||||
|
.endif
|
||||||
|
|
||||||
ALL_OPTIONS= BCMATH BZIP2 CALENDAR CRACK CTYPE CURL DBASE DBX DOMXML \
|
ALL_OPTIONS= BCMATH BZIP2 CALENDAR CRACK CTYPE CURL DBASE DBX DOMXML \
|
||||||
DOMXSLT EXIF FILEPRO FTP GD GDBM GETTEXT GMP HYPERWAVE ICONV \
|
DOMXSLT EXIF FILEPRO FTP GD GDBM GETTEXT GMP HYPERWAVE ICONV \
|
||||||
|
@ -508,30 +533,28 @@ pre-configure:
|
||||||
@${ECHO_CMD} "You cannot define WITH_SYBASEDB *and* WITH_SYBASECT!"
|
@${ECHO_CMD} "You cannot define WITH_SYBASEDB *and* WITH_SYBASECT!"
|
||||||
@${FALSE}
|
@${FALSE}
|
||||||
.endif
|
.endif
|
||||||
.if defined(WITHOUT_CLI) && defined(WITHOUT_APACHE)
|
.if !defined(WITHOUT_APACHE) && !defined(WITHOUT_CLI)
|
||||||
@${ECHO_CMD} "You cannot define WITHOUT_CLI *and* WITHOUT_APACHE!"
|
|
||||||
@${FALSE}
|
|
||||||
.endif
|
|
||||||
.if !defined(WITHOUT_CLI) && !defined(WITHOUT_APACHE)
|
|
||||||
@${ECHO_CMD} ""
|
@${ECHO_CMD} ""
|
||||||
@${ECHO_CMD} "You may use the following build options:"
|
@${ECHO_CMD} "You are building the Apache Module and the Command Line Interpreter of PHP."
|
||||||
@${ECHO_CMD} ""
|
@${ECHO_CMD} ""
|
||||||
.if !defined(WITHOUT_CLI) && !defined(WITHOUT_APACHE)
|
@${ECHO_CMD} "Use port:"
|
||||||
@${ECHO_CMD} " WITHOUT_CLI=yes Disable Command Line Interpreter"
|
@${ECHO_CMD} " lang/php4-cli for Command Line Interpreter only"
|
||||||
@${ECHO_CMD} " WITHOUT_APACHE=yes Disable Apache Module"
|
@${ECHO_CMD} " www/php4-cgi for Common Gateway Interface only"
|
||||||
.endif
|
@${ECHO_CMD} " www/mod_php4 for Apache Module only"
|
||||||
@${ECHO_CMD} ""
|
@${ECHO_CMD} ""
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
.if !defined(WITHOUT_CLI)
|
||||||
post-build:
|
post-build:
|
||||||
@${ECHO_CMD} ""
|
@${ECHO_CMD} "You may run the tests from the PHP test framework, typing 'make test' now."
|
||||||
@${ECHO_CMD} "You may run the tests from the PHP test framework."
|
@${ECHO_CMD} "(It is safe to ignore errors about timestamp-related tests,"
|
||||||
@${ECHO_CMD} "You can do this by typing 'make test' now."
|
@${ECHO_CMD} "since they are due to the different FreeBSD mktime() implementation)."
|
||||||
@${ECHO_CMD} ""
|
@${ECHO_CMD} ""
|
||||||
|
|
||||||
test: all
|
test: all
|
||||||
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
|
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
|
||||||
${MAKEFILE} ${MAKE_ARGS} ${.TARGET})
|
${MAKEFILE} ${MAKE_ARGS} ${.TARGET})
|
||||||
|
.endif
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
.if !defined(WITHOUT_CLI)
|
.if !defined(WITHOUT_CLI)
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
PHP, which stands for "PHP: Hypertect Preprocessor" is a widely-used Open
|
PHP, which stands for "PHP: Hypertext Preprocessor" is a widely-used Open
|
||||||
Source general-purpose scripting language that is especially suited for
|
Source general-purpose scripting language that is especially suited for
|
||||||
for Web development and can be embedded into HTML. Its syntax draws upon C,
|
Web development and can be embedded into HTML. Its syntax draws upon C,
|
||||||
Java, and Perl, and is easy to learn. The main goal of the language is to
|
Java, and Perl, and is easy to learn. The main goal of the language is to
|
||||||
allow web developers to write dinamically generated webpages quickly, but
|
allow web developers to write dynamically generated webpages quickly, but
|
||||||
you can do much more with PHP.
|
you can do much more with PHP.
|
||||||
|
|
||||||
WWW: http://www.php.net/
|
WWW: http://www.php.net/
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
You have installed the php4 package.
|
You have installed the php4 package.
|
||||||
|
|
||||||
Have a look at the php-dev port if you need additional extensions
|
Have a look at the php4 port if you need additional extensions
|
||||||
other than ctype, MySQL, PCRE, POSIX, session, tokenizer, XML and ZLIB.
|
other than ctype, MySQL, PCRE, POSIX, session, tokenizer, XML and ZLIB.
|
||||||
|
|
||||||
You can find it at
|
You can find it at
|
||||||
|
|
|
@ -197,7 +197,7 @@ lib/php/build/mkdep.awk
|
||||||
lib/php/build/phpize.m4
|
lib/php/build/phpize.m4
|
||||||
lib/php/build/scan_makefile_in.awk
|
lib/php/build/scan_makefile_in.awk
|
||||||
lib/php/build/shtool
|
lib/php/build/shtool
|
||||||
%%APACHE%%%%SAPI_FILE%%
|
%%SAPI_FILE%%
|
||||||
%%APACHE%%@exec %D/sbin/apxs -e -a -n php4 %f
|
%%APACHE%%@exec %D/sbin/apxs -e -a -n php4 %f
|
||||||
%%APACHE%%@unexec %D/sbin/apxs -e -A -n php4 %f
|
%%APACHE%%@unexec %D/sbin/apxs -e -A -n php4 %f
|
||||||
%%CLI%%share/pear/bootstrap/Archive/Tar.php
|
%%CLI%%share/pear/bootstrap/Archive/Tar.php
|
||||||
|
|
|
@ -24,22 +24,32 @@ PORTVERSION= 4.3.2.r4
|
||||||
CATEGORIES?= lang devel www
|
CATEGORIES?= lang devel www
|
||||||
MASTER_SITES= http://downloads.php.net/jani/ \
|
MASTER_SITES= http://downloads.php.net/jani/ \
|
||||||
http://www.gufi.org/~alex/php/
|
http://www.gufi.org/~alex/php/
|
||||||
.if defined(WITHOUT_CLI)
|
.if defined(WITHOUT_CLI) && !defined(WITHOUT_APACHE)
|
||||||
PKGNAMEPREFIX= mod_
|
PKGNAMEPREFIX= mod_
|
||||||
.endif
|
.else
|
||||||
.if defined(WITHOUT_APACHE)
|
.if defined(WITHOUT_APACHE)
|
||||||
|
.if defined(WITHOUT_CLI)
|
||||||
|
PKGNAMESUFFIX= -cgi
|
||||||
|
.else
|
||||||
PKGNAMESUFFIX= -cli
|
PKGNAMESUFFIX= -cli
|
||||||
.endif
|
.endif
|
||||||
|
.endif
|
||||||
|
.endif
|
||||||
DISTNAME= php-${PORTVERSION:S/.r/RC/}
|
DISTNAME= php-${PORTVERSION:S/.r/RC/}
|
||||||
|
|
||||||
MAINTAINER?= sysadmin@alexdupre.com
|
MAINTAINER?= sysadmin@alexdupre.com
|
||||||
COMMENT= PHP Scripting Language (Apache Module and CLI)
|
COMMENT= PHP Scripting Language (Apache Module and CLI)
|
||||||
.if defined(WITHOUT_APACHE)
|
.if defined(WITHOUT_APACHE)
|
||||||
|
.if defined(WITHOUT_CLI)
|
||||||
|
COMMENT= PHP Common Gateway Interface
|
||||||
|
.else
|
||||||
COMMENT= PHP Command Line Interpreter
|
COMMENT= PHP Command Line Interpreter
|
||||||
.endif
|
.endif
|
||||||
|
.else
|
||||||
.if defined(WITHOUT_CLI)
|
.if defined(WITHOUT_CLI)
|
||||||
COMMENT= PHP Apache Module
|
COMMENT= PHP Apache Module
|
||||||
.endif
|
.endif
|
||||||
|
.endif
|
||||||
|
|
||||||
USE_BZIP2= yes
|
USE_BZIP2= yes
|
||||||
USE_SUBMAKE= yes
|
USE_SUBMAKE= yes
|
||||||
|
@ -54,22 +64,37 @@ CONFIGURE_ARGS= --enable-versioning \
|
||||||
--disable-all
|
--disable-all
|
||||||
|
|
||||||
EXT_DIR= 20020429
|
EXT_DIR= 20020429
|
||||||
SAPI_FILE= ""
|
SAPI_FILE= "@comment "
|
||||||
|
|
||||||
|
CONFLICTS= php4-cli-4* mod_php4-4* php4-cgi-4*
|
||||||
.if defined(WITHOUT_APACHE)
|
.if defined(WITHOUT_APACHE)
|
||||||
CONFLICTS= php4-4* mod_php4-4*
|
.if defined(WITHOUT_CLI)
|
||||||
|
CONFLICTS= php4-4* php4-cli-4* mod_php4-4*
|
||||||
|
.else
|
||||||
|
CONFLICTS= php4-4* php4-cgi-4* mod_php4-4*
|
||||||
|
.endif
|
||||||
|
.else
|
||||||
|
.if defined(WITHOUT_CLI)
|
||||||
|
CONFLICTS= php4-4* php4-cli-4* php4-cgi-4*
|
||||||
|
.endif
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
.if defined(WITHOUT_APACHE)
|
||||||
|
CONFIGURE_ARGS+=--enable-discard-path
|
||||||
|
PLIST_SUB+= APACHE="@comment "
|
||||||
|
.else
|
||||||
|
PLIST_SUB+= APACHE=""
|
||||||
|
.endif
|
||||||
.if defined(WITHOUT_CLI)
|
.if defined(WITHOUT_CLI)
|
||||||
CONFLICTS= php4-4* php4-cli-4*
|
|
||||||
CONFIGURE_ARGS+=--disable-cli
|
CONFIGURE_ARGS+=--disable-cli
|
||||||
PLIST_SUB+= CLI="@comment "
|
PLIST_SUB+= CLI="@comment "
|
||||||
.else
|
.else
|
||||||
MAN1= php.1
|
MAN1= php.1
|
||||||
PLIST_SUB+= CLI=""
|
PLIST_SUB+= CLI=""
|
||||||
.endif
|
.endif
|
||||||
|
.if defined(WITHOUT_APACHE) && defined(WITHOUT_CLI)
|
||||||
CONFLICTS?= php4-cli-4* mod_php4-4*
|
SAPI_FILE= "bin/php"
|
||||||
|
.endif
|
||||||
|
|
||||||
ALL_OPTIONS= BCMATH BZIP2 CALENDAR CRACK CTYPE CURL DBASE DBX DOMXML \
|
ALL_OPTIONS= BCMATH BZIP2 CALENDAR CRACK CTYPE CURL DBASE DBX DOMXML \
|
||||||
DOMXSLT EXIF FILEPRO FTP GD GDBM GETTEXT GMP HYPERWAVE ICONV \
|
DOMXSLT EXIF FILEPRO FTP GD GDBM GETTEXT GMP HYPERWAVE ICONV \
|
||||||
|
@ -508,30 +533,28 @@ pre-configure:
|
||||||
@${ECHO_CMD} "You cannot define WITH_SYBASEDB *and* WITH_SYBASECT!"
|
@${ECHO_CMD} "You cannot define WITH_SYBASEDB *and* WITH_SYBASECT!"
|
||||||
@${FALSE}
|
@${FALSE}
|
||||||
.endif
|
.endif
|
||||||
.if defined(WITHOUT_CLI) && defined(WITHOUT_APACHE)
|
.if !defined(WITHOUT_APACHE) && !defined(WITHOUT_CLI)
|
||||||
@${ECHO_CMD} "You cannot define WITHOUT_CLI *and* WITHOUT_APACHE!"
|
|
||||||
@${FALSE}
|
|
||||||
.endif
|
|
||||||
.if !defined(WITHOUT_CLI) && !defined(WITHOUT_APACHE)
|
|
||||||
@${ECHO_CMD} ""
|
@${ECHO_CMD} ""
|
||||||
@${ECHO_CMD} "You may use the following build options:"
|
@${ECHO_CMD} "You are building the Apache Module and the Command Line Interpreter of PHP."
|
||||||
@${ECHO_CMD} ""
|
@${ECHO_CMD} ""
|
||||||
.if !defined(WITHOUT_CLI) && !defined(WITHOUT_APACHE)
|
@${ECHO_CMD} "Use port:"
|
||||||
@${ECHO_CMD} " WITHOUT_CLI=yes Disable Command Line Interpreter"
|
@${ECHO_CMD} " lang/php4-cli for Command Line Interpreter only"
|
||||||
@${ECHO_CMD} " WITHOUT_APACHE=yes Disable Apache Module"
|
@${ECHO_CMD} " www/php4-cgi for Common Gateway Interface only"
|
||||||
.endif
|
@${ECHO_CMD} " www/mod_php4 for Apache Module only"
|
||||||
@${ECHO_CMD} ""
|
@${ECHO_CMD} ""
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
.if !defined(WITHOUT_CLI)
|
||||||
post-build:
|
post-build:
|
||||||
@${ECHO_CMD} ""
|
@${ECHO_CMD} "You may run the tests from the PHP test framework, typing 'make test' now."
|
||||||
@${ECHO_CMD} "You may run the tests from the PHP test framework."
|
@${ECHO_CMD} "(It is safe to ignore errors about timestamp-related tests,"
|
||||||
@${ECHO_CMD} "You can do this by typing 'make test' now."
|
@${ECHO_CMD} "since they are due to the different FreeBSD mktime() implementation)."
|
||||||
@${ECHO_CMD} ""
|
@${ECHO_CMD} ""
|
||||||
|
|
||||||
test: all
|
test: all
|
||||||
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
|
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
|
||||||
${MAKEFILE} ${MAKE_ARGS} ${.TARGET})
|
${MAKEFILE} ${MAKE_ARGS} ${.TARGET})
|
||||||
|
.endif
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
.if !defined(WITHOUT_CLI)
|
.if !defined(WITHOUT_CLI)
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
PHP, which stands for "PHP: Hypertect Preprocessor" is a widely-used Open
|
PHP, which stands for "PHP: Hypertext Preprocessor" is a widely-used Open
|
||||||
Source general-purpose scripting language that is especially suited for
|
Source general-purpose scripting language that is especially suited for
|
||||||
for Web development and can be embedded into HTML. Its syntax draws upon C,
|
Web development and can be embedded into HTML. Its syntax draws upon C,
|
||||||
Java, and Perl, and is easy to learn. The main goal of the language is to
|
Java, and Perl, and is easy to learn. The main goal of the language is to
|
||||||
allow web developers to write dinamically generated webpages quickly, but
|
allow web developers to write dynamically generated webpages quickly, but
|
||||||
you can do much more with PHP.
|
you can do much more with PHP.
|
||||||
|
|
||||||
WWW: http://www.php.net/
|
WWW: http://www.php.net/
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
You have installed the php4 package.
|
You have installed the php4 package.
|
||||||
|
|
||||||
Have a look at the php-dev port if you need additional extensions
|
Have a look at the php4 port if you need additional extensions
|
||||||
other than ctype, MySQL, PCRE, POSIX, session, tokenizer, XML and ZLIB.
|
other than ctype, MySQL, PCRE, POSIX, session, tokenizer, XML and ZLIB.
|
||||||
|
|
||||||
You can find it at
|
You can find it at
|
||||||
|
|
|
@ -197,7 +197,7 @@ lib/php/build/mkdep.awk
|
||||||
lib/php/build/phpize.m4
|
lib/php/build/phpize.m4
|
||||||
lib/php/build/scan_makefile_in.awk
|
lib/php/build/scan_makefile_in.awk
|
||||||
lib/php/build/shtool
|
lib/php/build/shtool
|
||||||
%%APACHE%%%%SAPI_FILE%%
|
%%SAPI_FILE%%
|
||||||
%%APACHE%%@exec %D/sbin/apxs -e -a -n php4 %f
|
%%APACHE%%@exec %D/sbin/apxs -e -a -n php4 %f
|
||||||
%%APACHE%%@unexec %D/sbin/apxs -e -A -n php4 %f
|
%%APACHE%%@unexec %D/sbin/apxs -e -A -n php4 %f
|
||||||
%%CLI%%share/pear/bootstrap/Archive/Tar.php
|
%%CLI%%share/pear/bootstrap/Archive/Tar.php
|
||||||
|
|
Loading…
Add table
Reference in a new issue