Commit efeda1bc authored by Gustavo Zacarias's avatar Gustavo Zacarias Committed by Peter Korsgaard
Browse files

php-zmq: new package

parent 3f8b5133
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -394,6 +394,16 @@ menu "Perl libraries/modules"
endmenu
endif
source "package/php/Config.in"
if BR2_PACKAGE_PHP
if !BR2_PREFER_STATIC_LIB
menu "External php extensions"
source "package/php-zmq/Config.in"
endmenu
endif
if BR2_PREFER_STATIC_LIB
comment "External PHP extensions need a toolchain w/ dynamic library"
endif
endif
source "package/python/Config.in"
if BR2_PACKAGE_PYTHON
menu "external python modules"
+17 −0
Original line number Diff line number Diff line
comment "php-zmq needs a toolchain w/ C++, IPv6, largefile, wchar, threads"
	depends on !(BR2_INSTALL_LIBSTDCPP && BR2_INET_IPV6 && BR2_LARGEFILE \
		&& BR2_USE_WCHAR && BR2_TOOLCHAIN_HAS_THREADS)

config BR2_PACKAGE_PHP_ZMQ
	bool "php-zmq"
	depends on BR2_PACKAGE_PHP
	depends on BR2_INSTALL_LIBSTDCPP
	depends on BR2_INET_IPV6
	depends on BR2_LARGEFILE # util-linux
	depends on BR2_USE_WCHAR # util-linux
	depends on BR2_TOOLCHAIN_HAS_THREADS
	select BR2_PACKAGE_ZEROMQ
	help
	  ZeroMQ messaging bindings for PHP

	  http://pecl.php.net/package/zmq
+25 −0
Original line number Diff line number Diff line
################################################################################
#
# php-zmq
#
################################################################################

PHP_ZMQ_VERSION = 1.1.2
PHP_ZMQ_SOURCE = zmq-$(PHP_ZMQ_VERSION).tgz
PHP_ZMQ_SITE = http://pecl.php.net/get
# phpize does the autoconf magic
PHP_ZMQ_DEPENDENCIES = php zeromq host-autoconf host-pkgconf
PHP_ZMQ_CONF_OPT = --with-php-config=$(STAGING_DIR)/usr/bin/php-config
PHP_ZMQ_LICENSE = BSD-3c
PHP_ZMQ_LICENSE_FILES = LICENSE

define PHP_ZMQ_PHPIZE
	(cd $(@D); \
		PHP_AUTOCONF=$(HOST_DIR)/usr/bin/autoconf \
		PHP_AUTOHEADER=$(HOST_DIR)/usr/bin/autoheader \
		$(STAGING_DIR)/usr/bin/phpize)
endef

PHP_ZMQ_PRE_CONFIGURE_HOOKS += PHP_ZMQ_PHPIZE

$(eval $(autotools-package))