diff options
Diffstat (limited to 'net/asterisk-app-notify/files/patch-Makefile')
-rw-r--r-- | net/asterisk-app-notify/files/patch-Makefile | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/net/asterisk-app-notify/files/patch-Makefile b/net/asterisk-app-notify/files/patch-Makefile new file mode 100644 index 000000000000..8dc2cee71eb8 --- /dev/null +++ b/net/asterisk-app-notify/files/patch-Makefile @@ -0,0 +1,33 @@ +--- Makefile.orig Fri Mar 23 21:14:57 2007 ++++ Makefile Sat Mar 24 00:09:09 2007 +@@ -9,7 +9,7 @@ + NAME=app_notify + CONF=dialer_extensions.conf + +-CFLAGS=-g -Wall -D_REENTRANT -D_GNU_SOURCE -fPIC ++CFLAGS+= -g -Wall -D_REENTRANT -D_GNU_SOURCE -fPIC -I$(LOCALBASE)/include + LIBS= + RES=$(NAME).so + +@@ -19,7 +19,7 @@ + SOLINK=-shared -Xlinker -x + endif + +-MODULES_DIR=/usr/lib/asterisk/modules ++MODULES_DIR=$(PREFIX)/lib/asterisk/modules + + app_notify.so : app_notify.o + $(CC) $(SOLINK) -o $@ $< +@@ -30,10 +30,9 @@ + rm -f $(NAME).o $(NAME).so notifyClient.o notifyClient sampleClient + + install: all +- if ! [ -f /etc/asterisk/$(CONF) ]; then \ +- install -m 644 $(CONF).sample /etc/asterisk/$(CONF) ; \ +- fi ++ install -m 644 $(CONF).sample $(PREFIX)/etc/asterisk/$(CONF).sample ; \ + if [ -f $(NAME).so ]; then \ ++ mkdir -p $(MODULES_DIR) ; \ + install -m 755 $(NAME).so $(MODULES_DIR) ; \ + fi + |