freebsd-ports/net/asterisk/files/patch-channels::Makefile
Max Khon 9f0462bca7 Add asterisk 1.8 port.
Submitted by:	Florian Smeets
2010-11-28 19:33:57 +00:00

29 lines
958 B
Text

--- ./channels/Makefile.orig 2010-06-07 22:04:42.000000000 +0200
+++ ./channels/Makefile 2010-11-06 14:54:36.000000000 +0100
@@ -27,9 +27,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)
@@ -86,9 +87,13 @@
else
chan_h323.so: chan_h323.o h323/libchanh323.a
$(ECHO_PREFIX) echo " [LD] $^ -> $@"
+ifeq ($(OSARCH),FreeBSD)
+ $(CMD_PREFIX) $(CXX) $(PTHREAD_CFLAGS) $(ASTLDFLAGS) $(SOLINK) -L$(LOCALBASE)/lib $(H323LDFLAGS) -o $@ $< h323/libchanh323.a $(H323LDLIBS) $(CHANH323LIB)
+else
$(CMD_PREFIX) $(CXX) $(PTHREAD_CFLAGS) $(_ASTLDFLAGS) $(ASTLDFLAGS) $(SOLINK) -o $@ $< h323/libchanh323.a $(CHANH323LIB) -L$(PWLIBDIR)/lib $(PTLIB) -L$(OPENH323DIR)/lib $(H323LIB) -L/usr/lib -lcrypto -lssl -lexpat
endif
endif
+endif
chan_misdn.o: _ASTCFLAGS+=-Imisdn