add option to compile APC for php5
git-svn-id: svn://svn.openwrt.org/openwrt/packages@8043 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
fd493d7de8
commit
c18969e590
@ -150,6 +150,12 @@ define Package/php5-mod-xml
|
|||||||
TITLE:=XML module
|
TITLE:=XML module
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/php5-mod-apc
|
||||||
|
$(call Package/php5/Default)
|
||||||
|
DEPENDS:=php5
|
||||||
|
TITLE:=APC Extension
|
||||||
|
endef
|
||||||
|
|
||||||
PKG_CONFIGURE_LIBS:= -lcrypto -lssl
|
PKG_CONFIGURE_LIBS:= -lcrypto -lssl
|
||||||
PKG_CONFIGURE_OPTS:= \
|
PKG_CONFIGURE_OPTS:= \
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
@ -259,6 +265,12 @@ ifneq ($(CONFIG_PACKAGE_php5-mod-xml),)
|
|||||||
else
|
else
|
||||||
PKG_CONFIGURE_OPTS+= --disable-xml
|
PKG_CONFIGURE_OPTS+= --disable-xml
|
||||||
endif
|
endif
|
||||||
|
ifneq ($(CONFIG_PACKAGE_php5-mod-apc),)
|
||||||
|
PKG_CONFIGURE_OPTS+= --enable-apc --disable-apc-mmap
|
||||||
|
PKG_CONFIGURE_LIBS+= -lrt
|
||||||
|
else
|
||||||
|
PKG_CONFIGURE_OPTS+= --disable-apc
|
||||||
|
endif
|
||||||
|
|
||||||
define Build/Configure
|
define Build/Configure
|
||||||
endef
|
endef
|
||||||
@ -304,6 +316,8 @@ endif
|
|||||||
ifneq ($(CONFIG_PACKAGE_php5-fastcgi),)
|
ifneq ($(CONFIG_PACKAGE_php5-fastcgi),)
|
||||||
define Build/Compile/php5-fastcgi
|
define Build/Compile/php5-fastcgi
|
||||||
-$(MAKE) -C $(PKG_BUILD_DIR) clean
|
-$(MAKE) -C $(PKG_BUILD_DIR) clean
|
||||||
|
rm $(PKG_BUILD_DIR)/configure
|
||||||
|
cd $(PKG_BUILD_DIR) && ./buildconf --force
|
||||||
$(call Build/Configure/Default, \
|
$(call Build/Configure/Default, \
|
||||||
$(PKG_CONFIGURE_OPTS) \
|
$(PKG_CONFIGURE_OPTS) \
|
||||||
--disable-cli \
|
--disable-cli \
|
||||||
@ -376,3 +390,4 @@ $(eval $(call BuildPlugin,php5-mod-session,session))
|
|||||||
$(eval $(call BuildPlugin,php5-mod-sockets,sockets))
|
$(eval $(call BuildPlugin,php5-mod-sockets,sockets))
|
||||||
$(eval $(call BuildPlugin,php5-mod-sqlite,sqlite))
|
$(eval $(call BuildPlugin,php5-mod-sqlite,sqlite))
|
||||||
$(eval $(call BuildPlugin,php5-mod-xml,xml))
|
$(eval $(call BuildPlugin,php5-mod-xml,xml))
|
||||||
|
$(eval $(call BuildPlugin,php5-mod-apc))
|
||||||
|
14327
lang/php5/patches/005-APC.patch
Normal file
14327
lang/php5/patches/005-APC.patch
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user