1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-15 07:56:36 +00:00
freebsd-ports/net/asterisk14/files/patch-channels::Makefile
2011-11-07 23:38:48 +00:00

49 lines
1.7 KiB
Plaintext

--- channels/Makefile.orig 2009-07-21 16:04:44.000000000 +0300
+++ channels/Makefile 2009-11-20 18:05:45.000000000 +0200
@@ -32,9 +32,10 @@
endif
ifeq ($(OSARCH),FreeBSD)
- PTLIB=-lpt_FreeBSD_x86_r
- H323LIB=-lh323_FreeBSD_x86_r
+ PTLIB=-lpt_r
+ H323LIB=-lh323_r
CHANH323LIB=-pthread
+ H323LDLIBS=$(PTLIB) $(H323LIB) $(CHANH323LIB)
endif
ifeq ($(OSARCH),NetBSD)
@@ -78,12 +79,13 @@
h323/libchanh323.a h323/Makefile.ast:
$(CMD_PREFIX) $(MAKE) -C h323
$(CMD_PREFIX) rm -f ../main/asterisk
- $(CMD_PREFIX) echo "***************************************************************"
- $(CMD_PREFIX) echo
- $(CMD_PREFIX) echo "********** Re-run 'make' to pick up H.323 parameters **********"
- $(CMD_PREFIX) echo
- $(CMD_PREFIX) echo "***************************************************************"
- $(CMD_PREFIX) exit 1
+ $(CMD_PREFIX) $(MAKE) -C . chan_h323.so
+# $(CMD_PREFIX) echo "***************************************************************"
+# $(CMD_PREFIX) echo
+# $(CMD_PREFIX) echo "********** Re-run 'make' to pick up H.323 parameters **********"
+# $(CMD_PREFIX) echo
+# $(CMD_PREFIX) echo "***************************************************************"
+# $(CMD_PREFIX) exit 1
endif
dist-clean::
@@ -111,8 +113,12 @@
else
chan_h323.so: chan_h323.o h323/libchanh323.a
$(ECHO_PREFIX) echo " [LD] $^ -> $@"
+ifeq ($(OSARCH),FreeBSD)
+ $(CMD_PREFIX) $(CXX) $(PTHREAD_CFLAGS) $(ASTLDFLAGS) $(SOLINK) $(H323LDFLAGS) -o $@ $< h323/libchanh323.a $(H323LDLIBS) $(CHANH323LIB)
+else
$(CMD_PREFIX) $(CXX) $(PTHREAD_CFLAGS) $(_ASTLDFLAGS) $(SOLINK) -o $@ $< h323/libchanh323.a $(CHANH323LIB) -L$(PWLIBDIR)/lib $(PTLIB) -L$(OPENH323DIR)/lib $(H323LIB) -L/usr/lib -lcrypto -lssl -lexpat $(ASTLDFLAGS)
endif
+endif
chan_misdn.o: _ASTCFLAGS+=-Imisdn