This makes the installed m4 file look like this
dnl Find php-config script
PHP_ARG_WITH(php-config,,
-[ --with-php-config=PATH Path to php-config [php-config]], php-config, no)
+[ --with-php-config=PATH Path to php-config [php-config]], php-config-{$PV},
no)
This doesn't seem right to me, how is PV going to get passed in?
(It won't affect ports anyway as the php module already sets --with-php-config).
On 2018/06/15 10:02, Martijn van Duren wrote:
> ping
>
> On 06/05/18 12:00, Martijn van Duren wrote:
> > After running phpize inside a pecl directory the configure script will
> > ask where to find php-config. The following patch will add the required
> > magic to make it find it itself.
> >
> > OK?
> >
> > martijn@
> >
> > Index: 5.6/Makefile
> > ===================================================================
> > RCS file: /cvs/ports/lang/php/5.6/Makefile,v
> > retrieving revision 1.75
> > diff -u -p -r1.75 Makefile
> > --- 5.6/Makefile 4 Jun 2018 15:22:36 -0000 1.75
> > +++ 5.6/Makefile 5 Jun 2018 10:00:17 -0000
> > @@ -3,6 +3,7 @@
> > PV= 5.6
> > V= ${PV}.36
> > REVISION= 7
> > +REVISION-main= 8
> >
> > MASTER_SITES0= https://download.suhosin.org/
> >
> > Index: 5.6/patches/patch-scripts_phpize_m4
> > ===================================================================
> > RCS file: 5.6/patches/patch-scripts_phpize_m4
> > diff -N 5.6/patches/patch-scripts_phpize_m4
> > --- /dev/null 1 Jan 1970 00:00:00 -0000
> > +++ 5.6/patches/patch-scripts_phpize_m4 5 Jun 2018 10:00:17 -0000
> > @@ -0,0 +1,12 @@
> > +$OpenBSD$
> > +--- scripts/phpize.m4.orig Thu Jul 6 00:25:00 2017
> > ++++ scripts/phpize.m4 Wed Oct 11 14:13:26 2017
> > +@@ -36,7 +36,7 @@ PHP_SHLIB_SUFFIX_NAMES
> > +
> > + dnl Find php-config script
> > + PHP_ARG_WITH(php-config,,
> > +-[ --with-php-config=PATH Path to php-config [php-config]], php-config,
> > no)
> > ++[ --with-php-config=PATH Path to php-config [php-config]],
> > php-config-{$PV}, no)
> > +
> > + dnl For BC
> > + PHP_CONFIG=$PHP_PHP_CONFIG
> > Index: 7.0/Makefile
> > ===================================================================
> > RCS file: /cvs/ports/lang/php/7.0/Makefile,v
> > retrieving revision 1.58
> > diff -u -p -r1.58 Makefile
> > --- 7.0/Makefile 4 Jun 2018 15:22:36 -0000 1.58
> > +++ 7.0/Makefile 5 Jun 2018 10:00:17 -0000
> > @@ -3,6 +3,7 @@
> > PV= 7.0
> > V= ${PV}.30
> > REVISION= 7
> > +REVISION-main= 8
> >
> > BUILD_DEPENDS+= devel/bison
> >
> > Index: 7.0/patches/patch-scripts_phpize_m4
> > ===================================================================
> > RCS file: 7.0/patches/patch-scripts_phpize_m4
> > diff -N 7.0/patches/patch-scripts_phpize_m4
> > --- /dev/null 1 Jan 1970 00:00:00 -0000
> > +++ 7.0/patches/patch-scripts_phpize_m4 5 Jun 2018 10:00:17 -0000
> > @@ -0,0 +1,12 @@
> > +$OpenBSD$
> > +--- scripts/phpize.m4.orig Tue Sep 26 10:55:54 2017
> > ++++ scripts/phpize.m4 Wed Oct 11 09:23:37 2017
> > +@@ -36,7 +36,7 @@ PHP_SHLIB_SUFFIX_NAMES
> > +
> > + dnl Find php-config script
> > + PHP_ARG_WITH(php-config,,
> > +-[ --with-php-config=PATH Path to php-config [php-config]], php-config,
> > no)
> > ++[ --with-php-config=PATH Path to php-config [php-config]],
> > php-config-${PV}, no)
> > +
> > + dnl For BC
> > + PHP_CONFIG=$PHP_PHP_CONFIG
> >
>