php-amqp: new package
Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
84902bd0f6
commit
baa566888d
@ -624,6 +624,7 @@ endif
|
||||
if BR2_PACKAGE_PHP
|
||||
if !BR2_STATIC_LIBS
|
||||
menu "External php extensions"
|
||||
source "package/php-amqp/Config.in"
|
||||
source "package/php-geoip/Config.in"
|
||||
source "package/php-gnupg/Config.in"
|
||||
source "package/php-imagick/Config.in"
|
||||
|
14
package/php-amqp/Config.in
Normal file
14
package/php-amqp/Config.in
Normal file
@ -0,0 +1,14 @@
|
||||
config BR2_PACKAGE_PHP_AMQP
|
||||
bool "php-amqp"
|
||||
depends on BR2_PACKAGE_PHP
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # rabbitmq-c
|
||||
depends on !BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX # rabbitmq-c
|
||||
select BR2_PACKAGE_RABBITMQ_C
|
||||
help
|
||||
Communicate with any AMQP compliant server.
|
||||
|
||||
http://pecl.php.net/package/amqp
|
||||
|
||||
comment "php-amqp needs a toolchain w/ threads"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on !BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX
|
2
package/php-amqp/php-amqp.hash
Normal file
2
package/php-amqp/php-amqp.hash
Normal file
@ -0,0 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 38a92eaef1aa863404170bcd15605f7f78140eeec1ff5be6af65c5b8081e2599 amqp-1.7.1.tgz
|
26
package/php-amqp/php-amqp.mk
Normal file
26
package/php-amqp/php-amqp.mk
Normal file
@ -0,0 +1,26 @@
|
||||
################################################################################
|
||||
#
|
||||
# php-amqp
|
||||
#
|
||||
################################################################################
|
||||
|
||||
PHP_AMQP_VERSION = 1.7.1
|
||||
PHP_AMQP_SOURCE = amqp-$(PHP_AMQP_VERSION).tgz
|
||||
PHP_AMQP_SITE = https://pecl.php.net/get
|
||||
PHP_AMQP_CONF_OPTS = --with-php-config=$(STAGING_DIR)/usr/bin/php-config \
|
||||
--with-amqp=$(STAGING_DIR)/usr
|
||||
# phpize does the autoconf magic
|
||||
PHP_AMQP_DEPENDENCIES = rabbitmq-c php host-autoconf
|
||||
PHP_AMQP_LICENSE = PHP
|
||||
PHP_AMQP_LICENSE_FILES = LICENSE
|
||||
|
||||
define PHP_AMQP_PHPIZE
|
||||
(cd $(@D); \
|
||||
PHP_AUTOCONF=$(HOST_DIR)/usr/bin/autoconf \
|
||||
PHP_AUTOHEADER=$(HOST_DIR)/usr/bin/autoheader \
|
||||
$(STAGING_DIR)/usr/bin/phpize)
|
||||
endef
|
||||
|
||||
PHP_AMQP_PRE_CONFIGURE_HOOKS += PHP_AMQP_PHPIZE
|
||||
|
||||
$(eval $(autotools-package))
|
Loading…
Reference in New Issue
Block a user