#
-# Copyright (C) 2006-2008 OpenWrt.org
+# Copyright (C) 2006-2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
-# $Id$
include $(TOPDIR)/rules.mk
PKG_NAME:=php4
-PKG_VERSION:=4.4.7
+PKG_VERSION:=4.4.9
PKG_RELEASE:=1
PKG_SOURCE:=php-$(PKG_VERSION).tar.bz2
-PKG_SOURCE_URL:=http://fr.php.net/distributions/
-PKG_MD5SUM:=3f21b44d37a57ca3876d3aea713c700d
+PKG_SOURCE_URL:=http://www.php.net/distributions/
+PKG_MD5SUM:=2e3b2a0e27f10cb84fd00e5ecd7a1880
PKG_BUILD_DIR:=$(BUILD_DIR)/php-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
--without-pear \
\
--with-config-file-path=/etc \
- --disable-ipv6 \
--enable-magic-quotes \
--enable-memory-limit \
--disable-overload \
define Build/Configure
endef
+TARGET_CFLAGS += $(if $(CONFIG_BIG_ENDIAN),-DIEEE_BIG_ENDIAN,-DIEEE_LITTLE_ENDIAN) $(FPIC)
+
ifneq ($(CONFIG_PACKAGE_php4-cli),)
define Build/Compile/php4-cli
-$(MAKE) -C $(PKG_BUILD_DIR) clean
LIBS="$(PKG_CONFIGURE_LIBS)" \
php_cv_cc_rpath="no" \
)
- $(MAKE) -C $(PKG_BUILD_DIR)
+ LD_LIBRARY_PATH="" $(MAKE) -C $(PKG_BUILD_DIR)
mv $(PKG_BUILD_DIR)/sapi/cli/php $(PKG_BUILD_DIR)/php-cli
endef
endif
LIBS="$(PKG_CONFIGURE_LIBS)" \
php_cv_cc_rpath="no" \
)
- $(MAKE) -C $(PKG_BUILD_DIR)
+ LD_LIBRARY_PATH="" $(MAKE) -C $(PKG_BUILD_DIR)
mv $(PKG_BUILD_DIR)/sapi/cgi/php $(PKG_BUILD_DIR)/php-cgi
endef
endif
LIBS="$(PKG_CONFIGURE_LIBS)" \
php_cv_cc_rpath="no" \
)
- $(MAKE) -C $(PKG_BUILD_DIR)
+ LD_LIBRARY_PATH="" $(MAKE) -C $(PKG_BUILD_DIR)
mv $(PKG_BUILD_DIR)/sapi/cgi/php $(PKG_BUILD_DIR)/php-fastcgi
endef
endif