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:
pavlov 2007-07-18 16:35:41 +00:00
parent fd493d7de8
commit c18969e590
2 changed files with 14342 additions and 0 deletions

View File

@ -150,6 +150,12 @@ define Package/php5-mod-xml
TITLE:=XML module
endef
define Package/php5-mod-apc
$(call Package/php5/Default)
DEPENDS:=php5
TITLE:=APC Extension
endef
PKG_CONFIGURE_LIBS:= -lcrypto -lssl
PKG_CONFIGURE_OPTS:= \
--enable-shared \
@ -259,6 +265,12 @@ ifneq ($(CONFIG_PACKAGE_php5-mod-xml),)
else
PKG_CONFIGURE_OPTS+= --disable-xml
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
endef
@ -304,6 +316,8 @@ endif
ifneq ($(CONFIG_PACKAGE_php5-fastcgi),)
define Build/Compile/php5-fastcgi
-$(MAKE) -C $(PKG_BUILD_DIR) clean
rm $(PKG_BUILD_DIR)/configure
cd $(PKG_BUILD_DIR) && ./buildconf --force
$(call Build/Configure/Default, \
$(PKG_CONFIGURE_OPTS) \
--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-sqlite,sqlite))
$(eval $(call BuildPlugin,php5-mod-xml,xml))
$(eval $(call BuildPlugin,php5-mod-apc))

File diff suppressed because it is too large Load Diff