summaryrefslogtreecommitdiff
path: root/net/openser/files/patch-Makefile.defs
diff options
context:
space:
mode:
authorJean-Yves Lefort <jylefort@FreeBSD.org>2005-11-08 01:35:42 +0000
committerJean-Yves Lefort <jylefort@FreeBSD.org>2005-11-08 01:35:42 +0000
commit6aa17e12b777f9e4075141b75ad54d05211d2122 (patch)
treee66d7eac78a4c963da2a73d063163994730c7085 /net/openser/files/patch-Makefile.defs
parent- Distfile was rerolled, no content change (diff)
Add openser.
OpenSER is a scalable and robust SIP server, spawned from FhG FOKUS SIP Express Router (SER). WWW: http://www.openser.org/ PR: ports/88239 Submitted by: jesusr
Notes
Notes: svn path=/head/; revision=147532
Diffstat (limited to 'net/openser/files/patch-Makefile.defs')
-rw-r--r--net/openser/files/patch-Makefile.defs59
1 files changed, 59 insertions, 0 deletions
diff --git a/net/openser/files/patch-Makefile.defs b/net/openser/files/patch-Makefile.defs
new file mode 100644
index 000000000000..2c7700ecea72
--- /dev/null
+++ b/net/openser/files/patch-Makefile.defs
@@ -0,0 +1,59 @@
+--- Makefile.defs.orig Fri Oct 28 18:32:39 2005
++++ Makefile.defs Sun Oct 30 20:09:02 2005
+@@ -147,13 +147,13 @@
+ TAR ?= tar
+ endif
+
+-INSTALL-TOUCH = touch # used to create the file first (good to
++INSTALL-TOUCH = : # used to create the file first (good to
+ # make solaris install work)
+-INSTALL-CFG = $(INSTALL) -m 644
+-INSTALL-BIN = $(INSTALL) -m 755
+-INSTALL-MODULES = $(INSTALL) -m 755
+-INSTALL-DOC = $(INSTALL) -m 644
+-INSTALL-MAN = $(INSTALL) -m 644
++INSTALL-CFG = $(BSD_INSTALL_DATA)
++INSTALL-BIN = $(BSD_INSTALL_PROGRAM)
++INSTALL-MODULES = $(BSD_INSTALL_PROGRAM)
++INSTALL-DOC = $(BSD_INSTALL_DATA)
++INSTALL-MAN = $(BSD_INSTALL_MAN)
+
+ #set some vars from the environment (and not make builtins)
+ CC := $(shell echo "$${CC}")
+@@ -449,7 +449,7 @@
+ found_lock_method=yes
+ endif
+
+-CFLAGS=
++saved_CFLAGS:=$(CFLAGS)
+ LDFLAGS=
+ # setting CFLAGS
+ ifeq ($(mode), release)
+@@ -970,7 +970,8 @@
+ ifneq ($(found_lock_method), yes)
+ DEFS+= -DUSE_PTHREAD_MUTEX # try pthread sems
+ found_lock_method=yes
+- LIBS= -pthread -lfl #dlopen is in libc
++ saved_CFLAGS+= $(PTHREAD_CFLAGS)
++ LIBS= $(PTHREAD_LIBS) -lfl #dlopen is in libc
+ else
+ LIBS= -lfl #dlopen is in libc
+ endif
+@@ -1045,10 +1046,15 @@
+ endif
+ endif
+
++CFLAGS= $(saved_CFLAGS) -I$(LOCALBASE)/include
++MOD_CFLAGS= -fPIC $(CFLAGS)
++LDFLAGS= -L$(LOCALBASE)/lib
++MOD_LDFLAGS= -shared $(LDFLAGS)
++
+ #add libssl if needed
+ ifneq ($(TLS),)
+-DEFS+= -I$(LOCALBASE)/ssl/include
+-LIBS+= -L$(LOCALBASE)/lib -L$(LOCALBASE)/ssl/lib -lssl -lcrypto
++DEFS+= -I$(OPENSSLINC)
++LIBS+= -L$(OPENSSLLIB) -lssl -lcrypto
+ endif
+
+ ifneq ($(found_lock_method), yes)