ports/net/mod_amd/files/patch-Makefile
Tobias Kortkamp 84e520cafd New port: net/mod_amd
Asterisk app_amd for FreeSWITCH

This is an implementation of Asterisk's answering machine detection
(voice activity detection) for FreeSWITCH.

WWW: https://github.com/seanbright/mod_amd

PR:		211773
Submitted by:	Šimun Mikecin <numisemis@yahoo.com>
Reviewed by:	koobs
2019-02-07 09:43:16 +00:00

35 lines
886 B
Text

--- Makefile.orig 2015-10-26 15:12:15 UTC
+++ Makefile
@@ -1,20 +1,19 @@
MODNAME = mod_amd.so
MODOBJ = mod_amd.o
-MODCFLAGS = -Wall -Werror
+MODCFLAGS = -Wall
# MODLDFLAGS = -lssl
-CC = gcc
-CFLAGS = -fPIC -g -ggdb `pkg-config --cflags freeswitch` $(MODCFLAGS)
+CFLAGS += -fPIC `pkg-config --cflags freeswitch` $(MODCFLAGS)
LDFLAGS = `pkg-config --libs freeswitch` $(MODLDFLAGS)
.PHONY: all
all: $(MODNAME)
$(MODNAME): $(MODOBJ)
- @$(CC) -shared -o $@ $(MODOBJ) $(LDFLAGS)
+ $(CC) -shared -o $@ $(MODOBJ) $(LDFLAGS)
.c.o: $<
- @$(CC) $(CFLAGS) -o $@ -c $<
+ $(CC) $(CFLAGS) -o $@ -c $<
.PHONY: clean
clean:
@@ -22,5 +21,5 @@ clean:
.PHONY: install
install: $(MODNAME)
- install -d $(DESTDIR)/usr/lib/freeswitch/mod
- install $(MODNAME) $(DESTDIR)/usr/lib/freeswitch/mod
+ install -d $(prefix)/lib/freeswitch/mod
+ install $(MODNAME) $(prefix)/lib/freeswitch/mod