freebsd-ports/net/asterisk12/files/patch-res::Makefile
2004-10-17 18:00:02 +00:00

23 lines
755 B
Text

$FreeBSD$
--- res/Makefile.orig Sat Jul 17 23:58:01 2004
+++ res/Makefile Thu Oct 14 19:15:00 2004
@@ -21,7 +21,7 @@
CFLAGS+=
CFLAGS+=$(shell [ -f /usr/include/linux/zaptel.h ] && echo " -DZAPATA_MOH")
-CFLAGS+=$(shell [ -f /usr/local/include/zaptel.h ] && echo " -DZAPATA_MOH")
+CFLAGS+=-DZAPATA_MOH -I$(LOCALBASE)/include
#
# Work around buggy RedHat 9.0
#
@@ -34,7 +34,7 @@
rm -f $(DESTDIR)$(ASTHEADERDIR)/parking.h
rm -f $(DESTDIR)$(MODULES_DIR)/app_agi.so
rm -f $(DESTDIR)$(MODULES_DIR)/res_parking.so
- for x in $(MODS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done
+ for x in $(MODS); do $(BSD_INSTALL_PROGRAM) $$x $(DESTDIR)$(MODULES_DIR) ; done
res_crypto.so: res_crypto.o
$(CC) $(SOLINK) -o $@ $< $(CRYPTO_LIBS)