2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
6 define Package
/php7-pecl
/Default
10 URL
:=http
://pecl.php.net
/
15 $(Build
/Prepare
/Default
)
16 ( cd
$(PKG_BUILD_DIR
); $(STAGING_DIR
)/usr
/bin
/phpize7
)
20 --with-php-config
=$(STAGING_DIR
)/usr
/bin
/php7-config
24 define Package
/php7-pecl-
$(1)
25 $(call Package
/php7-pecl
/Default
)
33 define Package
/php7-pecl-
$(1)/install
34 $(INSTALL_DIR
) $$(1)/usr
/lib
/php
35 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/modules
/$(subst -,_
,$(1)).so
$$(1)/usr
/lib
/php
/
36 $(INSTALL_DIR
) $$(1)/etc
/php7
38 echo
"zend_extension=/usr/lib/php/$(subst -,_,$(1)).so" > $$(1)/etc
/php7
/$(if
$(4),$(4),20)_
$(subst -,_
,$(1)).ini
40 echo
"extension=$(subst -,_,$(1)).so" > $$(1)/etc
/php7
/$(if
$(4),$(4),20)_
$(subst -,_
,$(1)).ini