include $(TOPDIR)/rules.mk
PKG_NAME:=php
-PKG_VERSION:=5.0.5
+PKG_VERSION:=5.1.6
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://fr.php.net/distributions/
-PKG_MD5SUM:=b5d4ca75bbb11ee5b830fa67213d9f7f
+PKG_MD5SUM:=08e423aa314369d4392a36b3f7246afc
PKG_CAT:=bzcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
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 \
--without-iconv \
--disable-libxml \
--without-libxml-dir \
+ --disable-xmlreader \
+ --disable-xmlwriter \
--disable-mbstring \
--disable-mbregex \
--with-openssl=shared,"$(STAGING_DIR)/usr" \
--with-zlib-dir="$(STAGING_DIR)/usr" \
ifneq ($(SDK),)
- PKG_BUILDDEP:=libopenssl zlib libcurl libgd libgmp libopenldap libmysqlclient libpq libsqlite2 libexpat
+ PKG_BUILD_DEPENDS:=libopenssl zlib libcurl libgd libgmp libopenldap libmysqlclient libpq libsqlite2 libexpat
# force PKG_CONFIGURE_{LIBS,OPTS} below when built in the SDK
CONFIG_PACKAGE_php5-cli:=m
CONFIG_PACKAGE_php5-cgi:=m
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
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 \
$(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))