497fdfb919
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.
27 lines
681 B
Makefile
27 lines
681 B
Makefile
# $NetBSD: Makefile,v 1.9 2021/03/07 08:11:02 taca Exp $
|
|
|
|
MODNAME= pthreads
|
|
PECL_VERSION= 2.0.10
|
|
CATEGORIES+= devel
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://github.com/krakjoe/pthreads
|
|
COMMENT= PHP extension for POSIX threads support
|
|
LICENSE= php
|
|
|
|
BUILD_DEPENDS+= re2c>=0.13.0.4:../../devel/re2c
|
|
|
|
PHP_VERSIONS_ACCEPTED= 56
|
|
|
|
CONFIGURE_ARGS+= --enable-${MODNAME}=shared,${BUILDLINK_DIR}
|
|
|
|
USE_LANGUAGES+= c c++
|
|
USE_TOOLS+= gsed
|
|
USE_LIBTOOL= yes
|
|
|
|
.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/bsd.pkg.mk"
|