Date: Sun, 30 Nov 2003 23:07:02 +0100 From: Melvyn Sopacua <ports@webteckies.org> To: ports@FreeBSD.org Subject: php.bsd.mk/php.conf and installed extensions Message-ID: <200311302307.02902.ports@webteckies.org>
next in thread | raw e-mail | index | archive | help
--Boundary-03=_Gomy/5gEWGwlZ7N Content-Type: multipart/mixed; boundary="Boundary-01=_Gomy/n2HRVZnWlD" Content-Transfer-Encoding: 7bit Content-Disposition: inline --Boundary-01=_Gomy/n2HRVZnWlD Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, There currently is no way of knowing for other ports, which extensions are= =20 compiled with php. The only assumption that can be made is "if the library = is=20 installed, it prolly is compiled into php". There is however a php.conf file installed and loaded into bsd.php.mk. The= =20 attached patch hacks bsd.php.mk and lang/php4/Makefile to load PHPEXT_*=20 variables into php.conf. Dependent ports requiring a specific php extension can then include bsd.php= =2Emk=20 and set WANT_PHP${MODULE} and if that module is not installed, than a BROKE= N=20 message (maybe something more suttle is in order) is displayed. I could probably hack this further and call upon 'pear install' if desired. Is this a welcome addition or were there specific reasons that something li= ke=20 this wasn't done, when hacking together php.bsd.mk in the first place? =2D-=20 Melvyn =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D =46reeBSD sarevok.webteckies.org 5.2-BETA FreeBSD 5.2-BETA #1: Sat Nov 29=20 00:15:33 CET 2003 root@sarevok.webteckies.org:/usr/obj/usr/src/sys/ SAREVOK_NOFW_DBG i386 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D --Boundary-01=_Gomy/n2HRVZnWlD Content-Type: text/x-diff; charset="us-ascii"; name="patch-aa" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="patch-aa" =2D-- bsd.php.mk.orig Thu Nov 20 12:07:33 2003 +++ bsd.php.mk Sun Nov 30 22:48:32 2003 @@ -126,6 +126,23 @@ =20 PLIST_SUB+=3D PHP_EXT_DIR=3D${PHP_EXT_DIR} =20 +.if !defined(ALL_OPTIONS) +ALL_OPTIONS=3D BCMATH BZIP2 CALENDAR CDB CRACK CTYPE CURL DB4 DBASE DBX \ + DOMXML DOMXSLT EXIF FILEPRO FRIBIDI FTP GD GDBM GETTEXT \ + GMP HYPERWAVE ICONV IMAP INTERBASE INIFILE MBSTRING MCAL MCVE \ + MCRYPT MHASH MIME MING MNOGOSEARCH MYSQL NCURSES OPENLDAP \ + OPENSSL ORACLE OVERLOAD PCNTL PCRE PDFLIB POSIX POSTGRESQL \ + PSPELL READLINE RECODE SESSION SHMOP SNMP SOCKETS SYBASEDB \ + SYBASECT SYSVSEM SYSVSHM TOKENIZER UNIXODBC WDDX XML XMLRPC \ + XSLT YAZ YP ZIP ZLIB +.endif + +.for opt in ${ALL_OPTIONS} +.if defined(WANT_PHP${opt}) && !defined(PHPEXT_${opt}) +BROKEN=3D This port requires the php ${opt} extension to be installed. +.endif +.endfor + .if defined(USE_PHPIZE) BUILD_DEPENDS+=3D phpize:${PHP_PORT} USE_LIBTOOL=3D yes =2D-- Makefile.orig Sun Nov 30 20:53:58 2003 +++ Makefile Sun Nov 30 22:46:22 2003 @@ -654,6 +654,8 @@ @${ECHO_CMD} "PHP_SAPI=3Dcgi" >> ${WRKDIR}/php.conf .endif .endif + @${SED} -e "s/WITH_/PHPEXT_/" ${WRKDIR}/Makefile.inc \ + >> ${WRKDIR}/php.conf .if !defined(WITHOUT_CLI) @${ECHO_CMD} "You may run the tests from the PHP test framework, typing '= make test' now." @${ECHO_CMD} "(It is safe to ignore errors about timestamp-related tests," --Boundary-01=_Gomy/n2HRVZnWlD-- --Boundary-03=_Gomy/5gEWGwlZ7N Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQA/ymoGOv9JNmfFN5URAgkPAJ48yipVV7h2YdIQaocyIu4bILPELwCgvmpL qhhMdOhp42x8i/JD+sH8xPY= =+LWL -----END PGP SIGNATURE----- --Boundary-03=_Gomy/5gEWGwlZ7N--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311302307.02902.ports>