summaryrefslogtreecommitdiff
path: root/net/asterisk/files/nocodecnego-patch-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/asterisk/files/nocodecnego-patch-Makefile')
-rw-r--r--net/asterisk/files/nocodecnego-patch-Makefile31
1 files changed, 20 insertions, 11 deletions
diff --git a/net/asterisk/files/nocodecnego-patch-Makefile b/net/asterisk/files/nocodecnego-patch-Makefile
index cf5e1df564b0..b0dd3acd4b9a 100644
--- a/net/asterisk/files/nocodecnego-patch-Makefile
+++ b/net/asterisk/files/nocodecnego-patch-Makefile
@@ -1,5 +1,14 @@
---- Makefile.orig 2008-05-05 13:17:55.000000000 -0700
-+++ Makefile 2008-06-10 01:07:09.000000000 -0700
+--- Makefile.orig 2008-11-29 08:58:29.000000000 -0800
++++ Makefile 2009-02-05 17:05:39.000000000 -0800
+@@ -95,7 +95,7 @@
+ OVERWRITE=y
+
+ # Include debug and macro symbols in the executables (-g) and profiling info (-pg)
+-DEBUG=-g3
++#DEBUG=-g3
+
+ # Staging directory
+ # Files are copied here temporarily during the install process
@@ -129,7 +129,7 @@
ASTMANDIR=$(mandir)
ifneq ($(findstring BSD,$(OSARCH)),)
@@ -9,19 +18,19 @@
else
ASTVARLIBDIR=$(localstatedir)/lib/asterisk
endif
-@@ -214,9 +214,11 @@
+@@ -219,9 +219,11 @@
ASTLDFLAGS+=-L/usr/local/lib
endif
-
+
+ifneq ($(OSARCH),FreeBSD)
ifneq ($(PROC),ultrasparc)
ASTCFLAGS+=$(shell if $(CC) -march=$(PROC) -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=$(PROC)"; fi)
endif
+endif
-
+
ifeq ($(PROC),ppc)
ASTCFLAGS+=-fsigned-char
-@@ -224,7 +224,7 @@
+@@ -229,7 +231,7 @@
ifeq ($(OSARCH),FreeBSD)
# -V is understood by BSD Make, not by GNU make.
@@ -30,7 +39,7 @@
ASTCFLAGS+=$(shell if test $(BSDVERSION) -lt 500016 ; then echo "-D_THREAD_SAFE"; fi)
AST_LIBS+=$(shell if test $(BSDVERSION) -lt 502102 ; then echo "-lc_r"; else echo "-pthread"; fi)
endif
-@@ -404,15 +404,15 @@
+@@ -408,15 +410,15 @@
# Should static HTTP be installed during make samples or even with its own target ala
# webvoicemail? There are portions here that *could* be customized but might also be
# improved a lot. I'll put it here for now.
@@ -51,7 +60,7 @@
$(MAKE) -C sounds install
update:
-@@ -433,47 +433,47 @@
+@@ -437,47 +439,47 @@
OLDHEADERS=$(filter-out $(NEWHEADERS),$(notdir $(wildcard $(DESTDIR)$(ASTHEADERDIR)/*.h)))
installdirs:
@@ -131,7 +140,7 @@
fi
$(SUBDIRS_INSTALL):
-@@ -507,7 +507,7 @@
+@@ -513,7 +515,7 @@
@exit 1
endif
@@ -140,7 +149,7 @@
@if [ -x /usr/sbin/asterisk-post-install ]; then \
/usr/sbin/asterisk-post-install $(DESTDIR) . ; \
fi
-@@ -545,31 +545,23 @@
+@@ -551,31 +553,23 @@
upgrade: bininstall
adsi:
@@ -180,7 +189,7 @@
( \
echo "[directories]" ; \
echo "astetcdir => $(ASTETCDIR)" ; \
-@@ -614,20 +606,23 @@
+@@ -621,20 +615,23 @@
echo ";astctlowner = root" ; \
echo ";astctlgroup = apache" ; \
echo ";astctl = asterisk.ctl" ; \