freebsd-ports/devel/php5-ice/files/patch-config+Make.rules
Xin LI f5df5b75d8 An Ice language mapping for PHP is a recent and welcome addition
to the Ice product portfolio, enabling developers to take advantage
of the productivity offered by PHP's friendly syntax and extensive
function library.

This Ice distribution is released under the GNU General Public License (GPL).

WWW:		http://www.zeroc.org/
PR:		ports/118323
Submitted by:	DIrk Ye <dirk.ye at gmail.com>
2007-12-11 20:45:43 +00:00

50 lines
1.2 KiB
Text

--- config/Make.rules.orig Wed Aug 22 16:32:59 2007
+++ config/Make.rules Wed Aug 22 21:34:34 2007
@@ -7,6 +7,8 @@
#
# **********************************************************************
+ICE_HOME = %%LOCALBASE%%
+
ifndef ICE_HOME
ifneq ($(shell test -f /usr/include/Ice/Ice.h && echo 0),0)
$(error Ice installation not found, please set ICE_HOME!)
@@ -18,7 +20,7 @@ endif
# if it does not exist.
#
-prefix ?= /opt/IcePHP-$(VERSION)
+prefix ?= %%PREFIX%%/lib/php/$(PHP_EXT_DIR)
#
# The "root directory" for runpath embedded in executables. Can be unset
@@ -31,7 +33,7 @@ embedded_runpath_prefix ?= /opt/Ice-$(V
# Otherwise the Ice extension is built with debug information.
#
-#OPTIMIZE = yes
+OPTIMIZE = yes
#
# Define LP64 as yes if you want to build in 64 bit mode on a platform
@@ -54,7 +56,7 @@ embedded_runpath_prefix ?= /opt/Ice-$(V
# PHP_INCLUDE_DIR and PHP_LIB_DIR.
#
-PHP_HOME ?= /opt/php
+PHP_HOME ?= /usr/local
UNAME := $(shell uname)
@@ -134,9 +136,9 @@ else
endif
ifeq ($(LP64),yes)
- install_libdir = $(prefix)/lib$(lp64suffix)
+ install_libdir = $(prefix)$(lp64suffix)
else
- install_libdir = $(prefix)/lib
+ install_libdir = $(prefix)
endif
ifneq ($(embedded_runpath_prefix),)