- Enable RFC2190 codec support using ffmpeg, knob WITH_FFMPEG

- Support external speex, knob WITH_SPEEX
- Remove indirect dependencies on expat and openldap (via pwlib)

PR:		ports/95423
Submitted by:	Joerg Pulz <Joerg.Pulz@frm2.tum.de>
Approved by:	Steve Ames <steve@energistic.com> (maintainer)
This commit is contained in:
Pav Lucistnik 2006-05-07 13:10:55 +00:00
parent 649566ad8c
commit 2e794eaa33
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=161590
3 changed files with 34 additions and 5 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= openh323 PORTNAME= openh323
PORTVERSION= 1.18.0 PORTVERSION= 1.18.0
PORTREVISION= 1 PORTREVISION= 2
CATEGORIES= net CATEGORIES= net
MASTER_SITES= http://www.voxgratia.org/releases/ MASTER_SITES= http://www.voxgratia.org/releases/
DISTNAME= ${PORTNAME}-v${PORTVERSION:S/./_/g}-src- DISTNAME= ${PORTNAME}-v${PORTVERSION:S/./_/g}-src-
@ -16,14 +16,12 @@ EXTRACT_SUFX= tar.gz
MAINTAINER= steve@energistic.com MAINTAINER= steve@energistic.com
COMMENT= A H323 Video Conferencing library COMMENT= A H323 Video Conferencing library
LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2 \ LIB_DEPENDS= pt_r.1:${PORTSDIR}/devel/pwlib
pt_r.1:${PORTSDIR}/devel/pwlib
WRKSRC= ${WRKDIR}/${PORTNAME}_v${PORTVERSION:S/./_/g} WRKSRC= ${WRKDIR}/${PORTNAME}_v${PORTVERSION:S/./_/g}
USE_BISON= yes USE_BISON= yes
USE_GMAKE= yes USE_GMAKE= yes
USE_OPENLDAP= yes
USE_AUTOTOOLS= autoconf:259 USE_AUTOTOOLS= autoconf:259
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
INSTALLS_SHLIB= yes INSTALLS_SHLIB= yes
@ -36,6 +34,18 @@ NO_FILTER_SHLIBS= yes
.include <bsd.port.pre.mk> .include <bsd.port.pre.mk>
.ifdef (WITH_FFMPEG)
LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg
CONFIGURE_ARGS+= --enable-rfc2190avcodec=${LOCALBASE}/include/ffmpeg
.endif
.ifdef (WITH_SPEEX)
LIB_DEPENDS+= speex.3:${PORTSDIR}/audio/speex
CONFIGURE_ARGS+= --enable-localspeex=no
.else
CONFIGURE_ARGS+= --enable-localspeex=yes
.endif
.if (${ARCH} == "amd64") || (${ARCH} == "ia64") || (${ARCH} == "sparc64") .if (${ARCH} == "amd64") || (${ARCH} == "ia64") || (${ARCH} == "sparc64")
CFLAGS+= -fPIC CFLAGS+= -fPIC
.endif .endif

View file

@ -0,0 +1,19 @@
--- plugins/audio/Speex/Makefile.in.orig Wed Apr 5 23:40:27 2006
+++ plugins/audio/Speex/Makefile.in Wed Apr 5 23:41:12 2006
@@ -59,6 +59,7 @@
CC=@CC@
CXX=@CXX@
LDSO=@LDSO@
+LDFLAGS=@LDFLAGS@
ifndef PREFIX
PREFIX=/usr/local
@@ -101,7 +102,7 @@
OBJECTS = $(addprefix $(OBJDIR)/,$(patsubst %.cxx,%.o,$(patsubst %.c,%.o,$(notdir $(SRCS)))))
$(PLUGIN): $(OBJECTS)
- $(CC) $(LDSO)$(SONAME) -o $@ $^ $(EXTRALIBS)
+ $(CC) $(LDSO)$(SONAME) -o $@ $^ $(LDFLAGS) $(EXTRALIBS)
install:
mkdir -p $(DESTDIR)$(LIBDIR)/pwlib/codecs/audio/

View file

@ -79,7 +79,7 @@ include/openh323/x224.h
include/openh323/x880.h include/openh323/x880.h
@dirrm include/openh323 @dirrm include/openh323
%%DATADIR%%/openh323u.mak %%DATADIR%%/openh323u.mak
@dirrm %%DATADIR%% @dirrmtry %%DATADIR%%
lib/pwlib/codecs/audio/g726_audio_pwplugin.so lib/pwlib/codecs/audio/g726_audio_pwplugin.so
lib/pwlib/codecs/audio/gsm0610_audio_pwplugin.so lib/pwlib/codecs/audio/gsm0610_audio_pwplugin.so
lib/pwlib/codecs/audio/ilbc_audio_pwplugin.so lib/pwlib/codecs/audio/ilbc_audio_pwplugin.so