mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-30 01:15:52 +00:00
f40fa78a35
o Add often requested knobs WITHOUT_H323 and WITHOUT_ZAPTEL. o Add untested support for building on sparc64.
27 lines
745 B
Plaintext
27 lines
745 B
Plaintext
|
|
$FreeBSD$
|
|
|
|
--- res/Makefile.orig
|
|
+++ res/Makefile
|
|
@@ -21,7 +21,10 @@
|
|
|
|
CFLAGS+=
|
|
CFLAGS+=$(shell [ -f /usr/include/linux/zaptel.h ] && echo " -DZAPATA_MOH")
|
|
-CFLAGS+=$(shell [ -f /usr/local/include/zaptel.h ] && echo " -DZAPATA_MOH")
|
|
+CFLAGS+=-I$(LOCALBASE)/include
|
|
+ifndef WITHOUT_ZAPTEL
|
|
+CFLAGS+=-DZAPATA_MOH
|
|
+endif
|
|
#
|
|
# Work around buggy RedHat 9.0
|
|
#
|
|
@@ -34,7 +37,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)
|