diff options
author | sobomax <sobomax@FreeBSD.org> | 2008-08-21 15:32:48 +0800 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2008-08-21 15:32:48 +0800 |
commit | 6d070694da1d0e41b2bcd2e2f629807372dd0c41 (patch) | |
tree | e85d066d50a61df59cc68e4f65357282b04c7c4c /net/asterisk10/files | |
parent | c70ae76a7cbe638a755d2ce8753e5e04275f6226 (diff) | |
download | freebsd-ports-gnome-6d070694da1d0e41b2bcd2e2f629807372dd0c41.tar.gz freebsd-ports-gnome-6d070694da1d0e41b2bcd2e2f629807372dd0c41.tar.zst freebsd-ports-gnome-6d070694da1d0e41b2bcd2e2f629807372dd0c41.zip |
Properly link H323 module with ptlib and oh323 libraries. Otherwise
H323 channel fails to load. Bump PORTREVISION.
Reported by: Rodrigo Graeff
Diffstat (limited to 'net/asterisk10/files')
-rw-r--r-- | net/asterisk10/files/patch-channels::Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/net/asterisk10/files/patch-channels::Makefile b/net/asterisk10/files/patch-channels::Makefile index 833abdac1569..fa5a90a988fa 100644 --- a/net/asterisk10/files/patch-channels::Makefile +++ b/net/asterisk10/files/patch-channels::Makefile @@ -3,7 +3,7 @@ $FreeBSD$ --- channels/Makefile.orig +++ channels/Makefile -@@ -32,8 +32,8 @@ +@@ -32,9 +32,10 @@ endif ifeq ($(OSARCH),FreeBSD) @@ -12,9 +12,11 @@ $FreeBSD$ + PTLIB=-lpt_r + H323LIB=-lh323_r CHANH323LIB=-pthread ++ H323LDLIBS=$(PTLIB) $(H323LIB) $(CHANH323LIB) endif -@@ -78,12 +78,13 @@ + ifeq ($(OSARCH),NetBSD) +@@ -78,12 +79,13 @@ h323/libchanh323.a h323/Makefile.ast: $(CMD_PREFIX) $(MAKE) -C h323 $(CMD_PREFIX) rm -f ../main/asterisk @@ -34,12 +36,12 @@ $FreeBSD$ endif dist-clean:: -@@ -113,8 +114,12 @@ +@@ -113,8 +115,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) ++ $(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 endif |