diff options
author | Koop Mast <kwm@FreeBSD.org> | 2013-09-20 21:50:39 +0000 |
---|---|---|
committer | Koop Mast <kwm@FreeBSD.org> | 2013-09-20 21:50:39 +0000 |
commit | 9e6673f04f2a8178e49b49d1676640bba2149371 (patch) | |
tree | c62b4e58e684a810c47846f1e9a173a16b0d27d1 /devel/ptlib | |
parent | Returning maintainership on my multimedia ports to ports@freebsd.org (diff) |
Move ptlib26, opal3 and ekiga3 to unversioned ports and update to:
ptlib to 2.10.10
opal to 3.10.10
ekiga to 4.0.1
Diffstat (limited to 'devel/ptlib')
-rw-r--r-- | devel/ptlib/Makefile | 176 | ||||
-rw-r--r-- | devel/ptlib/distinfo | 2 | ||||
-rw-r--r-- | devel/ptlib/files/patch-Makefile.in | 35 | ||||
-rw-r--r-- | devel/ptlib/files/patch-include_ptlib_object.h | 11 | ||||
-rw-r--r-- | devel/ptlib/files/patch-plugins_configure.in | 10 | ||||
-rw-r--r-- | devel/ptlib/files/patch-src_ptlib_unix_svcproc.cxx | 29 | ||||
-rw-r--r-- | devel/ptlib/pkg-descr | 7 | ||||
-rw-r--r-- | devel/ptlib/pkg-plist | 194 |
8 files changed, 464 insertions, 0 deletions
diff --git a/devel/ptlib/Makefile b/devel/ptlib/Makefile new file mode 100644 index 000000000000..e1701ed78912 --- /dev/null +++ b/devel/ptlib/Makefile @@ -0,0 +1,176 @@ +# Created by: Roger Hardiman <roger@freebsd.org> +# $FreeBSD$ + +PORTNAME= ptlib +PORTVERSION= 2.10.10 +CATEGORIES= devel +MASTER_SITES= GNOME + +MAINTAINER= gnome@FreeBSD.org +COMMENT= Cross platform C++ library, used by OPAL + +LICENSE= MPL + +LIB_DEPENDS= libexpat.so:${PORTSDIR}/textproc/expat2 + +CONFLICTS= pwlib-1.* + +USE_XZ= yes +USES= bison gmake pkgconfig +USE_AUTOTOOLS= autoconf:env automake:env +GNU_CONFIGURE= yes +USE_OPENSSL= yes +USE_LDCONFIG= yes +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib + +CONFIGURE_ARGS+=--enable-audio \ + --enable-ipv6 \ + --enable-exceptions \ + --enable-oss \ + --enable-plugins + +CONFIGURE_ARGS+=--disable-lua \ + --disable-sasl + +# --with-expat-dir="${LOCALBASE}" +CONFIGURE_ENV+= OPENSSL_CFLAGS="-I${OPENSSLINC}" \ + OPENSSL_LIBS="-L${OPENSSLLIB} -lssl" + +OPTIONS_DEFINE= BSDVIDEO DEBUG ODBC ALSA JABBER V4L SDL LDAP PULSEAUDIO +OPTIONS_DEFAULT=BSDVIDEO SDL V4L JABBER + +BSDVIDEO_DESC= BSD video support +DEBUG_DESC= Install debug library + +NO_STAGE= yes +.include <bsd.port.options.mk> + +PLIST_SUB+= PORTVERSION=${PORTVERSION} \ + PVERSION_MAJOR=${PVERSION_MAJOR} \ + PVERSION_MINOR=${PVERSION_MINOR} + +PVERSION_MAJOR= ${PORTVERSION:C/.[0-9]+.[0-9]+.//} +PVERSION_MINOR= ${PORTVERSION:C/.[0-9]+$//g} + +.if ${PORT_OPTIONS:MDEBUG} +ALL_TARGET= optshared debugshared +PLIST_SUB+= DEBUG="" +.else +ALL_TARGET= optshared +PLIST_SUB+= DEBUG="@comment " +.endif + +.if ${PORT_OPTIONS:MPULSEAUDIO} +LIB_DEPENDS+= libpulse.so:${PORTSDIR}/audio/pulseaudio +CONFIGURE_ARGS+=--enable-pulse +.else +CONFIGURE_ARGS+=--disable-pulse +.endif + +.if ${PORT_OPTIONS:MJABBER} +CONFIGURE_ARGS+=--enable-jabber +PLLIB_VIDEO=1 +.endif + +.if ${PORT_OPTIONS:MODBC} +LIB_DEPENDS+= libodbc.so:${PORTSDIR}/databases/unixODBC +CONFIGURE_ARGS+=--enable-odbc +.else +CONFIGURE_ARGS+=--disable-odbc +.endif + +.if ${PORT_OPTIONS:MALSA} +LIB_DEPENDS+= libasound.so:${PORTSDIR}/audio/alsa-lib +CONFIGURE_ARGS+=--enable-alsa +PLIST_SUB+= ALSA="" +.else +CONFIGURE_ARGS+=--disable-alsa +PLIST_SUB+= ALSA="@comment " +.endif + +.if ${PORT_OPTIONS:MBSDVIDEO} +CONFIGURE_ARGS+=--enable-bsdvideo +PLIST_SUB+= BSDVIDEO="" +PTLIB_VIDEO=1 +.else +CONFIGURE_ARGS+=--disable-bsdvideo +PLIST_SUB+= BSDVIDEO="@comment " +.endif + +.if ${PORT_OPTIONS:MV4L} +BUILD_DEPENDS+= v4l_compat>=0:${PORTSDIR}/multimedia/v4l_compat +LIB_DEPENDS+= libv4l2.so:${PORTSDIR}/multimedia/libv4l +CONFIGURE_ARGS+=--enable-v4l --enable-v4l2 +PLIST_SUB+= V4L="" +PTLIB_VIDEO=1 +.else +CONFIGURE_ARGS+=--disable-v4l --disable-v4l2 +PLIST_SUB+= V4L="@comment " +.endif + +.if defined(PTLIB_VIDEO) +CONFIGURE_ARGS+=--enable-video --enable-vidfile +PLIST_SUB+= VIDEODIR="" +.else +CONFIGURE_ARGS+=--disable-video --disable-vidfile +PLIST_SUB+= VIDEODIR="@comment " +.endif + +.if ${PORT_OPTIONS:MSDL} +USE_SDL+= sdl +CONFIGURE_ARGS+=--enable-sdl +.else +CONFIGURE_ARGS+=--disable-sdl +.endif + +.if ${PORT_OPTIONS:MLDAP} +USE_OPENLDAP= yes +CONFIGURE_ARGS+=--enable-openldap +.else +CONFIGURE_ARGS+=--disable-openldap +.endif + +# ONLY FOR THE BRAVE! +# If someone owns a firewire(4) video device and wants to use it for +# video-conferencing purposes, please download the files: +# libraw1394.shar.gz, libavc1394.shar.gz and libdc1394.shar.gz from +# ftp://ftp.frm2.tum.de/pub/jpulz/FreeBSD/ports/ +# Extract the files in ${PORTSDIR}/devel and uncomment the following lines. +# +##enable libavc1394 +#.if defined(WITH_AVC1394) +#LIB_DEPENDS+= avc1394.2:${PORTSDIR}/devel/libavc1394 \ +# dv.4:${PORTSDIR}/multimedia/libdv +#CONFIGURE_ARGS+= --enable-avc +#PLIST_SUB+= AVC1394="" +#.else +CONFIGURE_ARGS+= --disable-avc +PLIST_SUB+= AVC1394="@comment " +#.endif +# +##enable libdc1394 +#.if defined(WITH_DC1394) +#LIB_DEPENDS+= dc1394.2[0-9]:${PORTSDIR}/multimedia/libdc1394 +#CONFIGURE_ARGS+= --enable-dc +#PLIST_SUB+= DC1394="" +#.else +CONFIGURE_ARGS+= --disable-dc +#PLIST_SUB+= DC1394="@comment " +#.endif + +post-patch: + @${REINPLACE_CMD} -e 's/RTF_WASCLONED/0x20000/' ${WRKSRC}/src/ptlib/unix/socket.cxx + +pre-configure: + cd ${WRKSRC}/plugins/ && autoreconf -fi + +post-install: + ${LN} -sf libpt.so.${PORTVERSION} ${PREFIX}/lib/libpt.so.${PVERSION_MAJOR} + ${LN} -sf libpt.so.${PORTVERSION} ${PREFIX}/lib/libpt.so.${PVERSION_MINOR} +.if ${PORT_OPTIONS:MDEBUG} + ${LN} -sf libpt_d.so.${PORTVERSION} ${PREFIX}/lib/libpt_d.so.${PVERSION_MAJOR} + ${LN} -sf libpt_d.so.${PORTVERSION} ${PREFIX}/lib/libpt_d.so.${PVERSION_MINOR} +.endif + +.include <bsd.port.mk> diff --git a/devel/ptlib/distinfo b/devel/ptlib/distinfo new file mode 100644 index 000000000000..1504b7395f06 --- /dev/null +++ b/devel/ptlib/distinfo @@ -0,0 +1,2 @@ +SHA256 (ptlib-2.10.10.tar.xz) = 7fcaabe194cbd3bc0b370b951dffd19cfe7ea0298bfff6aecee948e97f3207e4 +SIZE (ptlib-2.10.10.tar.xz) = 2520444 diff --git a/devel/ptlib/files/patch-Makefile.in b/devel/ptlib/files/patch-Makefile.in new file mode 100644 index 000000000000..72d2e4b5e541 --- /dev/null +++ b/devel/ptlib/files/patch-Makefile.in @@ -0,0 +1,35 @@ +--- Makefile.in.orig 2013-02-20 03:12:27.000000000 +0100 ++++ Makefile.in 2013-07-11 10:16:26.000000000 +0200 +@@ -111,9 +111,7 @@ + do mkdir -p $$dir ; chmod 755 $$dir ; \ + done ) + ( for lib in $(PT_LIBDIR)/$(LIB_SONAME) \ +- $(PT_LIBDIR)/$(DEBUG_SONAME) \ +- $(PT_LIBDIR)/lib$(PTLIB_BASE)_s.a \ +- $(PT_LIBDIR)/lib$(PTLIB_BASE)_d_s.a ; \ ++ $(PT_LIBDIR)/$(DEBUG_SONAME) ; \ + do \ + ( if test -e $$lib ; then \ + $(INSTALL) -m 444 $$lib $(DESTDIR)$(LIBDIR); \ +@@ -160,9 +158,9 @@ + $(INSTALL) -m 755 make/ptlib-config $(DESTDIR)$(PREFIX)/share/ptlib/make/ + (cd $(DESTDIR)$(PREFIX)/bin; rm -f ptlib-config ; ln -snf ../share/ptlib/make/ptlib-config ptlib-config) + +- mkdir -p $(DESTDIR)$(LIBDIR)/pkgconfig +- chmod 755 $(DESTDIR)$(LIBDIR)/pkgconfig +- $(INSTALL) -m 644 ptlib.pc $(DESTDIR)$(LIBDIR)/pkgconfig/ ++ mkdir -p $(DESTDIR)$(PREFIX)/libdata/pkgconfig ++ chmod 755 $(DESTDIR)$(PREFIX)/libdata/pkgconfig ++ $(INSTALL) -m 644 ptlib.pc $(DESTDIR)$(PREFIX)/libdata/pkgconfig/ + + uninstall: + rm -rf $(DESTDIR)$(PREFIX)/include/ptlib \ +@@ -171,7 +169,7 @@ + $(DESTDIR)$(PREFIX)/include/ptbuildopts.h \ + $(DESTDIR)$(PREFIX)/share/ptlib \ + $(DESTDIR)$(LIBDIR)/$(DEV_PLUGIN_DIR) \ +- $(DESTDIR)$(LIBDIR)/pkgconfig/ptlib.pc ++ $(DESTDIR)$(PREFIX)/libdata/pkgconfig/ptlib.pc + rm -f $(DESTDIR)$(LIBDIR)/lib$(PTLIB_BASE)_s.a \ + $(DESTDIR)$(LIBDIR)/$(PTLIB_FILE) \ + $(DESTDIR)$(LIBDIR)/$(LIB_SONAME) diff --git a/devel/ptlib/files/patch-include_ptlib_object.h b/devel/ptlib/files/patch-include_ptlib_object.h new file mode 100644 index 000000000000..f2198cb5bf94 --- /dev/null +++ b/devel/ptlib/files/patch-include_ptlib_object.h @@ -0,0 +1,11 @@ +--- include/ptlib/object.h.orig 2013-09-16 12:18:01.000000000 +0200 ++++ include/ptlib/object.h 2013-09-16 12:19:59.000000000 +0200 +@@ -1011,7 +1011,7 @@ + + __GNUC_PATCHLEVEL__) + + // Memory pooling allocators +-#if defined(__GNUC__) && (GCC_VERSION > 40000) && !defined(P_MINGW) && !defined(P_MACOSX) ++#if defined(__GNUC__) && (GCC_VERSION > 40000) && !defined(P_MINGW) && !defined(P_MACOSX) && !defined(_LIBCPP_VERSION) + #include <ext/mt_allocator.h> + template <class Type> struct PFixedPoolAllocator : public PAllocatorTemplate<__gnu_cxx::__mt_alloc<Type>, Type> { }; + template <class Type> struct PVariablePoolAllocator : public PAllocatorTemplate<__gnu_cxx::__mt_alloc<Type>, Type> { }; diff --git a/devel/ptlib/files/patch-plugins_configure.in b/devel/ptlib/files/patch-plugins_configure.in new file mode 100644 index 000000000000..2a7f2fac0636 --- /dev/null +++ b/devel/ptlib/files/patch-plugins_configure.in @@ -0,0 +1,10 @@ +--- plugins/configure.in.orig 2013-07-08 22:41:36.000000000 +0200 ++++ plugins/configure.in 2013-07-08 22:44:52.000000000 +0200 +@@ -250,6 +250,7 @@ + AC_ARG_ENABLE(bsdvideo, [ --enable-bsdvideo enable BSD video support],,enable_bsdvideo=yes) + + if test "${enable_bsdvideo}z" = "yesz" ; then ++ AC_CHECK_HEADER(dev/bktr/ioctl_meteor.h, BSDVIDEOHDR=1) + AC_CHECK_HEADER(machine/ioctl_meteor.h, BSDVIDEOHDR=1) + AC_CHECK_HEADER(i386/ioctl_meteor.h, BSDVIDEOHDR=1) + AC_CHECK_HEADER(dev/ic/bt8xx.h, BSDVIDEOHDR=1) diff --git a/devel/ptlib/files/patch-src_ptlib_unix_svcproc.cxx b/devel/ptlib/files/patch-src_ptlib_unix_svcproc.cxx new file mode 100644 index 000000000000..7bc74281fd79 --- /dev/null +++ b/devel/ptlib/files/patch-src_ptlib_unix_svcproc.cxx @@ -0,0 +1,29 @@ +--- src/ptlib/unix/svcproc.cxx.orig 2013-09-20 14:46:03.000000000 +0200 ++++ src/ptlib/unix/svcproc.cxx 2013-09-20 14:46:46.000000000 +0200 +@@ -217,7 +217,7 @@ + pid_t pid; + + { +- ifstream pidfile(pidfilename); ++ ifstream pidfile((const char*)pidfilename); + if (!pidfile.is_open()) { + cout << "Could not open pid file: \"" << pidfilename << "\"" + " - " << strerror(errno) << endl; +@@ -384,7 +384,7 @@ + // Run as a daemon, ie fork + + if (!pidfilename) { +- ifstream pidfile(pidfilename); ++ ifstream pidfile((const char*)pidfilename); + if (pidfile.is_open()) { + pid_t pid; + pidfile >> pid; +@@ -412,7 +412,7 @@ + cout << "Daemon started with pid " << pid << endl; + if (!pidfilename) { + // Write out the child pid to magic file in /var/run (at least for linux) +- ofstream pidfile(pidfilename); ++ ofstream pidfile((const char*)pidfilename); + if (pidfile.is_open()) + pidfile << pid; + else diff --git a/devel/ptlib/pkg-descr b/devel/ptlib/pkg-descr new file mode 100644 index 000000000000..ab38421b0f13 --- /dev/null +++ b/devel/ptlib/pkg-descr @@ -0,0 +1,7 @@ +PWLib is a multi-platform code library that can be used to write +applications that will compile and run on the BSD Unixes, Windows, Linux +and a few other Unix variants. It was developed by Equivalence Ltd Pty. + +It is used by the OPAL library. + +WWW: http://www.opalvoip.org diff --git a/devel/ptlib/pkg-plist b/devel/ptlib/pkg-plist new file mode 100644 index 000000000000..30824ab97664 --- /dev/null +++ b/devel/ptlib/pkg-plist @@ -0,0 +1,194 @@ +bin/ptlib-config +include/ptbuildopts.h +include/ptclib/asnber.h +include/ptclib/asner.h +include/ptclib/asnper.h +include/ptclib/asnxer.h +include/ptclib/cli.h +include/ptclib/cypher.h +include/ptclib/delaychan.h +include/ptclib/dtmf.h +include/ptclib/enum.h +include/ptclib/ftp.h +include/ptclib/guid.h +include/ptclib/html.h +include/ptclib/http.h +include/ptclib/httpform.h +include/ptclib/httpsvc.h +include/ptclib/inetmail.h +include/ptclib/inetprot.h +include/ptclib/ipacl.h +include/ptclib/lua.h +include/ptclib/memfile.h +include/ptclib/mime.h +include/ptclib/modem.h +include/ptclib/paec.h +include/ptclib/pasn.h +include/ptclib/pdns.h +include/ptclib/pffvdev.h +include/ptclib/pils.h +include/ptclib/pldap.h +include/ptclib/pnat.h +include/ptclib/podbc.h +include/ptclib/psasl.h +include/ptclib/psnmp.h +include/ptclib/psoap.h +include/ptclib/psockbun.h +include/ptclib/pssl.h +include/ptclib/pstun.h +include/ptclib/ptts.h +include/ptclib/pvfiledev.h +include/ptclib/pvidfile.h +include/ptclib/pwavfile.h +include/ptclib/pwavfiledev.h +include/ptclib/pxml.h +include/ptclib/pxmlrpc.h +include/ptclib/pxmlrpcs.h +include/ptclib/qchannel.h +include/ptclib/random.h +include/ptclib/rfc1155.h +include/ptclib/shttpsvc.h +include/ptclib/snmp.h +include/ptclib/socks.h +include/ptclib/telnet.h +include/ptclib/threadpool.h +include/ptclib/url.h +include/ptclib/vcard.h +include/ptclib/vsdl.h +include/ptclib/vxml.h +include/ptclib/xmpp.h +include/ptclib/xmpp_c2s.h +include/ptclib/xmpp_muc.h +include/ptclib/xmpp_roster.h +include/ptlib.h +include/ptlib/MacMainIf.h +include/ptlib/args.h +include/ptlib/array.h +include/ptlib/channel.h +include/ptlib/conchan.h +include/ptlib/config.h +include/ptlib/contain.h +include/ptlib/contain.inl +include/ptlib/critsec.h +include/ptlib/dict.h +include/ptlib/dynalink.h +include/ptlib/ethsock.h +include/ptlib/file.h +include/ptlib/filepath.h +include/ptlib/icmpsock.h +include/ptlib/indchan.h +include/ptlib/int64.h +include/ptlib/ipdsock.h +include/ptlib/ipsock.h +include/ptlib/lists.h +include/ptlib/mail.h +include/ptlib/mutex.h +include/ptlib/notifier.h +include/ptlib/notifier_ext.h +include/ptlib/object.h +include/ptlib/osutil.inl +include/ptlib/pdirect.h +include/ptlib/pfactory.h +include/ptlib/pipechan.h +include/ptlib/plugin.h +include/ptlib/pluginmgr.h +include/ptlib/pprocess.h +include/ptlib/psharedptr.h +include/ptlib/pstring.h +include/ptlib/psync.h +include/ptlib/ptime.h +include/ptlib/qos.h +include/ptlib/remconn.h +include/ptlib/safecoll.h +include/ptlib/semaphor.h +include/ptlib/serchan.h +include/ptlib/sfile.h +include/ptlib/smartptr.h +include/ptlib/socket.h +include/ptlib/sockets.h +include/ptlib/sound.h +include/ptlib/svcproc.h +include/ptlib/syncpoint.h +include/ptlib/syncthrd.h +include/ptlib/syslog.h +include/ptlib/tcpsock.h +include/ptlib/textfile.h +include/ptlib/thread.h +include/ptlib/timeint.h +include/ptlib/timer.h +include/ptlib/udpsock.h +include/ptlib/unix/ptlib/beaudio.h +include/ptlib/unix/ptlib/bevideo.h +include/ptlib/unix/ptlib/channel.h +include/ptlib/unix/ptlib/conchan.h +include/ptlib/unix/ptlib/config.h +include/ptlib/unix/ptlib/contain.h +include/ptlib/unix/ptlib/critsec.h +include/ptlib/unix/ptlib/dynalink.h +include/ptlib/unix/ptlib/ethsock.h +include/ptlib/unix/ptlib/file.h +include/ptlib/unix/ptlib/filepath.h +include/ptlib/unix/ptlib/icmpsock.h +include/ptlib/unix/ptlib/ipdsock.h +include/ptlib/unix/ptlib/ipsock.h +include/ptlib/unix/ptlib/maccoreaudio.h +include/ptlib/unix/ptlib/mail.h +include/ptlib/unix/ptlib/mutex.h +include/ptlib/unix/ptlib/pdirect.h +include/ptlib/unix/ptlib/pipechan.h +include/ptlib/unix/ptlib/pmachdep.h +include/ptlib/unix/ptlib/pprocess.h +include/ptlib/unix/ptlib/ptime.h +include/ptlib/unix/ptlib/ptlib.inl +include/ptlib/unix/ptlib/remconn.h +include/ptlib/unix/ptlib/resampler.h +include/ptlib/unix/ptlib/semaphor.h +include/ptlib/unix/ptlib/serchan.h +include/ptlib/unix/ptlib/sfile.h +include/ptlib/unix/ptlib/shmvideo.h +include/ptlib/unix/ptlib/socket.h +include/ptlib/unix/ptlib/sound.h +include/ptlib/unix/ptlib/svcproc.h +include/ptlib/unix/ptlib/syncpoint.h +include/ptlib/unix/ptlib/tcpsock.h +include/ptlib/unix/ptlib/textfile.h +include/ptlib/unix/ptlib/thread.h +include/ptlib/unix/ptlib/timeint.h +include/ptlib/unix/ptlib/timer.h +include/ptlib/unix/ptlib/udpsock.h +include/ptlib/unix/ptlib/video.h +include/ptlib/vconvert.h +include/ptlib/video.h +include/ptlib/videoio.h +include/ptlib/videoio1394dc.h +include/ptlib/wxstring.h +lib/libpt.so +lib/libpt.so.%%PVERSION_MINOR%% +lib/libpt.so.%%PVERSION_MAJOR%% +lib/libpt.so.%%PORTVERSION%% +%%DEBUG%%lib/libpt_d.so +%%DEBUG%%lib/libpt_d.so.%%PVERSION_MINOR%% +%%DEBUG%%lib/libpt_d.so.%%PVERSION_MAJOR%% +%%DEBUG%%lib/libpt_d.so.%%PORTVERSION%% +lib/ptlib-%%PORTVERSION%%/devices/sound/oss_pwplugin.so +%%BSDVIDEO%%lib/ptlib-%%PORTVERSION%%/devices/videoinput/bsdvideo_pwplugin.so +%%V4L%%lib/ptlib-%%PORTVERSION%%/devices/videoinput/v4l_pwplugin.so +%%V4L%%lib/ptlib-%%PORTVERSION%%/devices/videoinput/v4l2_pwplugin.so +libdata/pkgconfig/ptlib.pc +share/ptlib/make/common.mak +share/ptlib/make/lib.mak +share/ptlib/make/plugins.mak +share/ptlib/make/ptbuildopts.mak +share/ptlib/make/ptlib-config +share/ptlib/make/ptlib.mak +share/ptlib/make/unix.mak +@dirrm share/ptlib/make +@dirrm share/ptlib +%%V4L%%@dirrm lib/ptlib-%%PORTVERSION%%/devices/videoinput +@dirrm lib/ptlib-%%PORTVERSION%%/devices/sound +@dirrm lib/ptlib-%%PORTVERSION%%/devices +@dirrm lib/ptlib-%%PORTVERSION%% +@dirrm include/ptlib/unix/ptlib +@dirrm include/ptlib/unix +@dirrm include/ptlib +@dirrm include/ptclib |