From owner-freebsd-ports@FreeBSD.ORG Sun Nov 30 14:07:09 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 977D316A4CE for ; Sun, 30 Nov 2003 14:07:09 -0800 (PST) Received: from morpheus.webteckies.org (node123e0.a2000.nl [24.132.35.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id B7F6943FDF for ; Sun, 30 Nov 2003 14:07:07 -0800 (PST) (envelope-from ports@webteckies.org) Received: from sarevok.idg.nl (unknown [192.168.1.12]) by morpheus.webteckies.org (Postfix) with ESMTP id 6FA67107C6 for ; Sun, 30 Nov 2003 23:03:45 +0100 (CET) From: Melvyn Sopacua Organization: WebTeckies.org To: ports@FreeBSD.org Date: Sun, 30 Nov 2003 23:07:02 +0100 User-Agent: KMail/1.5.93 MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-03=_Gomy/5gEWGwlZ7N"; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200311302307.02902.ports@webteckies.org> Subject: php.bsd.mk/php.conf and installed extensions X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Nov 2003 22:07:09 -0000 --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--