summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/asterisk-app_event/files/app_event-20050627-astcfg.diff')
-rw-r--r--net-misc/asterisk-app_event/files/app_event-20050627-astcfg.diff31
1 files changed, 31 insertions, 0 deletions
diff --git a/net-misc/asterisk-app_event/files/app_event-20050627-astcfg.diff b/net-misc/asterisk-app_event/files/app_event-20050627-astcfg.diff
new file mode 100644
index 000000000000..0e62cea0d197
--- /dev/null
+++ b/net-misc/asterisk-app_event/files/app_event-20050627-astcfg.diff
@@ -0,0 +1,31 @@
+--- Makefile.orig 1970-01-01 00:00:00.000000000 +0000
++++ Makefile 2005-01-26 20:30:27.009331696 +0000
+@@ -0,0 +1,28 @@
++
++CC?=gcc
++ASTCONFIG?=/usr/bin/asterisk-config
++
++CFLAGS=$(shell $(ASTCONFIG) --cflags) -fPIC -DPIC
++SOLINK=$(shell $(ASTCONFIG) --solink)
++LIBS=
++
++ASTMODDIR=$(shell $(ASTCONFIG) --modulesdir)
++
++all: .depend app_event.so
++
++.depend:
++ @if [ ! -x $(ASTCONFIG) ]; then \
++ echo "$(ASTCONFIG) not found!"; \
++ exit 255; \
++ fi
++
++.c.o:
++ $(CC) -c $(CFLAGS) -o $@ $<
++
++app_event.so: app_event.o
++ $(CC) $(SOLINK) -o $@ $< $(LIBS)
++
++install:
++ if [ ! -d $(DESTDIR)$(ASTMODDIR) ]; then mkdir -p $(DESTDIR)$(ASTMODDIR); fi
++ install -m755 app_event.so $(DESTDIR)$(ASTMODDIR)
++