pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/php-pthreads devel/php-pthreads: fix build problem



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0f8f6c473322
branches:  trunk
changeset: 448281:0f8f6c473322
user:      taca <taca%pkgsrc.org@localhost>
date:      Sun Mar 07 08:11:02 2021 +0000

description:
devel/php-pthreads: fix build problem

Fix build problem.  Since "lang/php/phpversion.mk" dose not pull in
"mk/pkg-build-options.mk", PKG_BUILD_OPTIONS.${PHP_PKG_PREFIX} was
always undefined.

And PKG_BUILD_OPTIONS.* is defined based on PKGBASE, check
PKG_BUILD_OPTIONS.php.

diffstat:

 devel/php-pthreads/Makefile |  11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)

diffs (25 lines):

diff -r d14779dd47d2 -r 0f8f6c473322 devel/php-pthreads/Makefile
--- a/devel/php-pthreads/Makefile       Sun Mar 07 08:08:38 2021 +0000
+++ b/devel/php-pthreads/Makefile       Sun Mar 07 08:11:02 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2019/11/04 17:47:30 rillig Exp $
+# $NetBSD: Makefile,v 1.9 2021/03/07 08:11:02 taca Exp $
 
 MODNAME=       pthreads
 PECL_VERSION=  2.0.10
@@ -19,12 +19,9 @@
 USE_TOOLS+=    gsed
 USE_LIBTOOL=   yes
 
-.include "../../lang/php/phpversion.mk"
-
-.if empty(PKG_BUILD_OPTIONS.${PHP_PKG_PREFIX}:Mmaintainer-zts)
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../lang/php/ext.mk"
+.if empty(PKG_BUILD_OPTIONS.php:Mmaintainer-zts)
 BROKEN=                "Requires the maintainer-zts option enabled in PHP."
 .endif
-
-.include "../../mk/pthread.buildlink3.mk"
-.include "../../lang/php/ext.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index