First Commit
[librecmc/package-feed.git] / lang / php7-pecl-http / Makefile
1 #
2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
4 #
5
6 include $(TOPDIR)/rules.mk
7
8 PECL_NAME:=pecl_http
9 PECL_LONGNAME:=Extended HTTP Support
10
11 PKG_VERSION:=3.0.1
12 PKG_RELEASE:=2
13 PKG_MD5SUM:=042c97314c180f6473338f0c5d35fabd
14
15 PKG_NAME:=php7-pecl-http
16 PKG_SOURCE:=$(PECL_NAME)-$(PKG_VERSION).tgz
17 PKG_SOURCE_URL:=http://pecl.php.net/get/
18
19 PKG_MAINTAINER:=Michael Heimpold <mhei@heimpold.de>
20
21 PKG_LICENSE:=BSD-2-Clause
22 PKG_LICENSE_FILES:=LICENSE
23
24 PKG_BUILD_DEPENDS:=php7 php7-pecl-propro php7-pecl-raphf
25 PKG_BUILD_DIR:=$(BUILD_DIR)/pecl-php7/$(PECL_NAME)-$(PKG_VERSION)
26 PKG_BUILD_PARALLEL:=1
27
28 PKG_FIXUP:=autoreconf
29
30 include $(INCLUDE_DIR)/package.mk
31 include $(INCLUDE_DIR)/nls.mk
32 include ../php7/pecl.mk
33
34 CONFIGURE_VARS+= \
35         PHP_PROPRO=yes \
36         PHP_RAPHF=yes \
37
38 CONFIGURE_ARGS+= \
39         --with-http \
40         --without-http-shared-deps \
41         --with-http-libcurl-dir="$(STAGING_DIR)/usr" \
42         --with-http-libevent-dir="$(STAGING_DIR)/usr" \
43         --with-http-libidn-dir="$(STAGING_DIR)/usr"
44
45 $(eval $(call PECLPackage,http,$(PECL_LONGNAME),+libcurl +librt +libevent2 +libidn +php7-mod-iconv +php7-mod-session +php7-pecl-raphf +php7-pecl-propro,30))
46 $(eval $(call BuildPackage,$(PKG_NAME)))