ifneq ($(BR2_PACKAGE_PHP5_MOD_GD),)
PKG_CONFIGURE_OPTS+= --with-gd=shared,"$(STAGING_DIR)/usr" \
--without-freetype-dir \
- --without-jpeg-dir \
+ --with-jpeg-dir="$(STAGING_DIR)/usr" \
--with-png-dir="$(STAGING_DIR)/usr" \
--without-xpm-dir \
--without-ttf \
install -m0755 -d $(IDIR_PHP5_CLI)/etc
install -m0644 ./files/php.ini $(IDIR_PHP5_CLI)/etc/
install -m0755 -d $(IDIR_PHP5_CLI)/usr/bin
- cp -fpR $(PKG_BUILD_DIR)/php-cli $(IDIR_PHP5_CLI)/usr/bin/php
+ $(CP) $(PKG_BUILD_DIR)/php-cli $(IDIR_PHP5_CLI)/usr/bin/php
$(RSTRIP) $(IDIR_PHP5_CLI)
$(IPKG_BUILD) $(IDIR_PHP5_CLI) $(PACKAGE_DIR)
install -m0755 -d $(IDIR_PHP5_CGI)/etc
install -m0644 ./files/php.ini $(IDIR_PHP5_CGI)/etc/
install -m0755 -d $(IDIR_PHP5_CGI)/usr/bin
- cp -fpR $(PKG_BUILD_DIR)/php-cgi $(IDIR_PHP5_CGI)/usr/bin/php
+ $(CP) $(PKG_BUILD_DIR)/php-cgi $(IDIR_PHP5_CGI)/usr/bin/php
$(RSTRIP) $(IDIR_PHP5_CGI)
$(IPKG_BUILD) $(IDIR_PHP5_CGI) $(PACKAGE_DIR)
install -m0755 -d $(IDIR_PHP5_FASTCGI)/etc/init.d
install -m0755 ./files/php.init $(IDIR_PHP5_FASTCGI)/etc/init.d/php
install -m0755 -d $(IDIR_PHP5_FASTCGI)/usr/sbin
- cp -fpR $(PKG_BUILD_DIR)/php-fastcgi $(IDIR_PHP5_FASTCGI)/usr/sbin/php
+ $(CP) $(PKG_BUILD_DIR)/php-fastcgi $(IDIR_PHP5_FASTCGI)/usr/sbin/php
$(RSTRIP) $(IDIR_PHP5_FASTCGI)
$(IPKG_BUILD) $(IDIR_PHP5_FASTCGI) $(PACKAGE_DIR)