php.bsd.mk/php.conf and installed extensions
Melvyn Sopacua
ports at webteckies.org
Sun Nov 30 14:07:09 PST 2003
Hi,
There currently is no way of knowing for other ports, which extensions are
compiled with php. The only assumption that can be made is "if the library is
installed, it prolly is compiled into php".
There is however a php.conf file installed and loaded into bsd.php.mk. The
attached patch hacks bsd.php.mk and lang/php4/Makefile to load PHPEXT_*
variables into php.conf.
Dependent ports requiring a specific php extension can then include bsd.php.mk
and set WANT_PHP${MODULE} and if that module is not installed, than a BROKEN
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 like
this wasn't done, when hacking together php.bsd.mk in the first place?
--
Melvyn
=======================================================
FreeBSD sarevok.webteckies.org 5.2-BETA FreeBSD 5.2-BETA #1: Sat Nov 29
00:15:33 CET 2003 root at sarevok.webteckies.org:/usr/obj/usr/src/sys/
SAREVOK_NOFW_DBG i386
=======================================================
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-aa
Type: text/x-diff
Size: 1368 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20031130/0c5acb27/patch-aa.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: signature
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20031130/0c5acb27/attachment.bin
More information about the freebsd-ports
mailing list