Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

4
devel/ptlib/DESCR Normal file
View File

@@ -0,0 +1,4 @@
PTLib is a multi-platform C++ class library. Programs based on PTLib can run
on both Microsoft Windows and Unix/Linux. The library contains both the
"basic" classes (strings, arrays, lists) and the higher-level functionality
(networking, multi-threading).

62
devel/ptlib/Makefile Normal file
View File

@@ -0,0 +1,62 @@
# $NetBSD: Makefile,v 1.19 2013/02/06 23:20:53 jperkin Exp $
DISTNAME= ptlib-2.10.7
PKGREVISION= 3
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/ptlib/2.10/}
EXTRACT_SUFX= .tar.xz
MAINTAINER= darcy@NetBSD.org
HOMEPAGE= http://www.ekiga.net/
COMMENT= Portable Windows Libary
# modified-bsd stands for Spencer's regex license, quite similar
LICENSE= mpl-1.0 AND modified-bsd
CONFLICTS+= pwlib-[0-9]*
USE_TOOLS+= bison flex gmake pkg-config
BUILD_TARGET= optshared
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-httpforms
CONFIGURE_ARGS+= --enable-httpsvc
CONFIGURE_ARGS+= --enable-plugins
CONFIGURE_ARGS+= --enable-jabber
CONFIGURE_ARGS+= --enable-vxml
CONFIGURE_ARGS+= --enable-xmlrpc
CONFIGURE_ARGS+= --enable-soap
CONFIGURE_ARGS+= --enable-oss
CONFIGURE_ARGS+= --enable-opal
CONFIGURE_ARGS+= --enable-openldap
#CONFIGURE_ARGS+= --enable-openssl
CONFIGURE_ARGS+= --enable-expat
#CONFIGURE_ARGS+= --enable-samples
CONFIGURE_ARGS+= --disable-bsdvideo
CONFIGURE_ARGS+= --disable-sunaudio
CONFIGURE_ARGS+= --disable-alsa
CONFIGURE_ARGS+= --disable-avc
CONFIGURE_ARGS+= --disable-dc
PTHREAD_OPTS+= require
.include "../../mk/bsd.prefs.mk"
PLIST_VARS+= video4l2
.if ${OPSYS} != "DragonFly"
CONFIGURE_ARGS+= --enable-v4l2
PLIST.video4l2= yes
.endif
post-install:
${INSTALL_DATA} ${WRKSRC}/version.h ${DESTDIR}${PREFIX}/share/ptlib
.include "../../databases/openldap-client/buildlink3.mk"
.include "../../devel/SDL/buildlink3.mk"
.include "../../graphics/libv4l/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../textproc/expat/buildlink3.mk"
.include "../../lang/lua/buildlink3.mk"
.include "../../mk/oss.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

179
devel/ptlib/PLIST Normal file
View File

@@ -0,0 +1,179 @@
@comment $NetBSD: PLIST,v 1.11 2012/10/13 22:43:23 darcy Exp $
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.${PKGVERSION}
lib/libpt_s.a
lib/pkgconfig/ptlib.pc
lib/${PKGNAME}/devices/sound/oss_pwplugin.so
lib/${PKGNAME}/devices/videoinput/v4l2_pwplugin.so
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
share/ptlib/version.h

22
devel/ptlib/buildlink3.mk Normal file
View File

@@ -0,0 +1,22 @@
# $NetBSD: buildlink3.mk,v 1.12 2013/02/06 23:20:53 jperkin Exp $
BUILDLINK_TREE+= ptlib
.if !defined(PTLIB_BUILDLINK3_MK)
PTLIB_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.ptlib+= ptlib>=2.6.1
BUILDLINK_ABI_DEPENDS.ptlib+= ptlib>=2.10.7nb3
BUILDLINK_PKGSRCDIR.ptlib?= ../../devel/ptlib
PTLIB_CONFIG?= ${BUILDLINK_PREFIX.ptlib}/bin/ptlib-config
CONFIGURE_ENV+= PTLIB_CONFIG=${PTLIB_CONFIG:Q}
.include "../../devel/SDL/buildlink3.mk"
.include "../../databases/openldap-client/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../textproc/expat/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.endif # PTLIB_BUILDLINK3_MK
BUILDLINK_TREE+= -ptlib

26
devel/ptlib/distinfo Normal file
View File

@@ -0,0 +1,26 @@
$NetBSD: distinfo,v 1.17 2012/12/01 15:28:03 darcy Exp $
SHA1 (ptlib-2.10.7.tar.xz) = 51077b76aed30ab614e31b2a18cb383848d4332c
RMD160 (ptlib-2.10.7.tar.xz) = 0c05b57f5435f4646af05278e66718e0e433a10a
Size (ptlib-2.10.7.tar.xz) = 2420924 bytes
SHA1 (patch-Nucleus-NucleusPTime.cxx) = b8f88355b6c74e8d8d318167fd38214fd2b2453f
SHA1 (patch-configure) = d05e68485a9cd3190410e7f4beb14ac44050d2cb
SHA1 (patch-configure.ac) = f319f4a183a6fc6c59693f516d9c68921625158b
SHA1 (patch-include_ptbuildopts.h.in) = 2b7ba6a6dbbe9480880652de774afbff346ce635
SHA1 (patch-include_ptclib_pldap.h) = ccb5b36a5afa7d1762e90eb9bfdb134066d2d84f
SHA1 (patch-include_ptlib_pmachdep.h) = 92dd7b693dc8d10ffaee7a22f8a3f3a1526e55c2
SHA1 (patch-make_unix.mak) = 13d814a914b3bc4897a350f4393873b9b3a2b685
SHA1 (patch-plugins_sound_esd_sound_esd.h) = 2c36497fa2b9f62144442e74eb9fd07e53ae07b8
SHA1 (patch-plugins_sound_oss_sound_oss.cxx) = 50817861710a82e98ebb3b029d021619a09c1132
SHA1 (patch-plugins_sound_oss_sound_oss.h) = ff48d7385a1e21d2bd896658d1ff8e39d737208b
SHA1 (patch-plugins_vidinput_bsd_vidinput_bsd.h) = dd965232d9645cd12a866e597828bdf8da7cb389
SHA1 (patch-src-unix-tlibthrd.cxx) = 0617f208b98ffe85730f411fb8494407e8c6324d
SHA1 (patch-src_ptclib_pldap.cxx) = 791f3a6efeee35efa44d311eb7077bb0bad441f0
SHA1 (patch-unix-config.cxx) = 6127f91bc04d7f008087ebdb9a2fbd1dbb41fd19
SHA1 (patch-unix-ossaix.cxx) = 3e7a902eb4b73388db01bd53e6c30546c96fe78d
SHA1 (patch-unix-osutil.cxx) = e907fc2c068f3e20af2f0e97540a1f4e47895a18
SHA1 (patch-unix-pmachdep.h) = 0cc2d61fa624b60461fb45e1aebfd37d486be5c9
SHA1 (patch-unix-serchan.cxx) = f77eb9839a84db91a16b72faafdc8d1499e78b31
SHA1 (patch-unix-socket.cxx) = 80ff4d0bc67f4bf59e5bfd3e17e3b380f7774bbb
SHA1 (patch-unix-switch.cxx) = 2c1bc4057a79b6b34651b299042876d2452a84b7
SHA1 (patch-unix-tlib.cxx) = 1685b856cf0991168954f5951f93b9b9f1e08db2

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-Nucleus-NucleusPTime.cxx,v 1.2 2012/12/01 15:28:03 darcy Exp $
- Add Dragonfly support
--- src/ptlib/Nucleus++/NucleusPTime.cxx.orig 2009-09-21 00:25:17.000000000 +0000
+++ src/ptlib/Nucleus++/NucleusPTime.cxx
@@ -302,7 +302,7 @@ int PTime::GetTimeZone(PTime::TimeZoneTy
return tz;
else
return tz + ::daylight*60;
-#elif defined(P_FREEBSD)
+#elif defined(P_FREEBSD) || defined(P_DRAGONFLY)
time_t t;
time(&t);
struct tm * tm = localtime(&t);

View File

@@ -0,0 +1,124 @@
$NetBSD: patch-configure,v 1.4 2012/10/13 00:49:38 darcy Exp $
- Add DragonFly support
--- configure.orig 2012-08-23 02:13:11.000000000 +0000
+++ configure
@@ -4411,6 +4411,108 @@ fi
;;
+ dragonfly*) OSTYPE=DragonFly ;
+ OS_TAG="P_DRAGONFLY" ;
+ if test "x$OSRELEASE" = "x"; then
+ OSRELEASE="`sysctl -n kern.osreldate`" ;
+ fi
+ need_pragma=yes ;
+
+cat >>confdefs.h <<\_ACEOF
+#define P_PTHREADS 1
+_ACEOF
+
+ { echo "$as_me:$LINENO: checking for swab" >&5
+echo $ECHO_N "checking for swab... $ECHO_C" >&6; }
+if test "${ac_cv_func_swab+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define swab to an innocuous variant, in case <limits.h> declares swab.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define swab innocuous_swab
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char swab (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef swab
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char swab ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_swab || defined __stub___swab
+choke me
+#endif
+
+int
+main ()
+{
+return swab ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_cxx_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext &&
+ $as_test_x conftest$ac_exeext; then
+ ac_cv_func_swab=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_func_swab=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_func_swab" >&5
+echo "${ECHO_T}$ac_cv_func_swab" >&6; }
+if test $ac_cv_func_swab = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define USE_SYSTEM_SWAB
+_ACEOF
+
+fi
+
+ ;;
+
freebsd*|kfreebsd*) OSTYPE=FreeBSD ;
OS_TAG="P_FREEBSD" ;
if test "x$OSRELEASE" = "x"; then
@@ -6806,7 +6908,7 @@ $as_echo "no" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
case "$target_os" in
- freebsd*|openbsd*|netbsd*|darwin*|beos*)
+ dragonfly*|freebsd*|openbsd*|netbsd*|darwin*|beos*)
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
$as_echo_n "checking for dlopen in -lc... " >&6; }
if ${ac_cv_lib_c_dlopen+:} false; then :

View File

@@ -0,0 +1,23 @@
$NetBSD: patch-configure.ac,v 1.2 2012/12/01 15:28:03 darcy Exp $
- Add Dragonfly support
--- configure.ac.orig 2009-09-21 00:25:59.000000000 +0000
+++ configure.ac
@@ -232,6 +232,16 @@ case "$target_os" in
AC_CHECK_FUNC([swab], [AC_DEFINE([USE_SYSTEM_SWAB], [], [Use system swab()] )] )
;;
+ dragonfly*) OSTYPE=DragonFly ;
+ OS_TAG="P_DRAGONFLY" ;
+ if test "x$OSRELEASE" = "x"; then
+ OSRELEASE="`sysctl -n kern.osreldate`" ;
+ fi
+ need_pragma=yes ;
+ AC_DEFINE(P_PTHREADS, 1, "PThreads found")
+ AC_CHECK_FUNC([swab], [AC_DEFINE([USE_SYSTEM_SWAB], [], [Use system swab()] )] )
+ ;;
+
freebsd*|kfreebsd*) OSTYPE=FreeBSD ;
OS_TAG="P_FREEBSD" ;
if test "x$OSRELEASE" = "x"; then

View File

@@ -0,0 +1,14 @@
$NetBSD: patch-include_ptbuildopts.h.in,v 1.2 2012/12/01 15:28:03 darcy Exp $
- Add Dragonfly support
--- include/ptbuildopts.h.in.orig 2009-09-21 00:25:53.000000000 +0000
+++ include/ptbuildopts.h.in
@@ -43,6 +43,7 @@
//
#undef P_LINUX
+#undef P_DRAGONFLY
#undef P_FREEBSD
#undef P_OPENBSD
#undef P_NETBSD

View File

@@ -0,0 +1,19 @@
$NetBSD: patch-include_ptclib_pldap.h,v 1.3 2012/12/01 15:28:03 darcy Exp $
- Allow building on Solaris
--- include/ptclib/pldap.h.orig 2012-08-23 02:13:03.000000000 +0000
+++ include/ptclib/pldap.h
@@ -103,12 +103,7 @@ class PLDAPSession : public PObject
AuthSimple,
AuthSASL,
AuthKerberos,
-#ifdef SOLARIS
- NumAuthenticationMethod1,
- NumAuthenticationMethod2
-#else
NumAuthenticationMethod
-#endif
};
/**Start encrypted connection

View File

@@ -0,0 +1,46 @@
$NetBSD: patch-include_ptlib_pmachdep.h,v 1.2 2012/10/17 10:26:16 jperkin Exp $
- Prevent an annoying warning while building
--- include/ptlib/unix/ptlib/pmachdep.h.orig 2012-08-23 02:12:57.000000000 +0000
+++ include/ptlib/unix/ptlib/pmachdep.h
@@ -112,7 +112,9 @@ typedef int socklen_t;
#elif defined(P_OPENBSD)
#if defined(P_PTHREADS)
+#ifndef _THREAD_SAFE
#define _THREAD_SAFE
+#endif
#define P_THREAD_SAFE_CLIB
#include <pthread.h>
@@ -137,7 +139,9 @@ typedef int socklen_t;
#elif defined(P_NETBSD)
#if defined(P_PTHREADS)
+#ifndef _THREAD_SAFE
#define _THREAD_SAFE
+#endif
#define P_THREAD_SAFE_CLIB
#include <pthread.h>
@@ -447,7 +451,9 @@ struct hostent * Vx_gethostbyaddr(char *
#define strcasecmp strcmp
#define P_HAS_SEMAPHORES
+#ifndef _THREAD_SAFE
#define _THREAD_SAFE
+#endif
#define P_THREAD_SAFE_CLIB
typedef long PThreadIdentifier;
typedef long PProcessIdentifier;
@@ -481,7 +487,9 @@ extern "C" {
#elif defined(P_QNX)
#if defined(P_PTHREADS)
+#ifndef _THREAD_SAFE
#define _THREAD_SAFE
+#endif
#define P_THREAD_SAFE_CLIB
#include <pthread.h>

View File

@@ -0,0 +1,47 @@
$NetBSD: patch-make_unix.mak,v 1.2 2012/10/13 00:49:38 darcy Exp $
- Add DragonFly support
--- make/unix.mak.orig 2012-08-23 02:12:44.000000000 +0000
+++ make/unix.mak
@@ -57,7 +57,7 @@ release tagbuild
.PHONY: all $(STANDARD_TARGETS)
-ifeq (,$(findstring $(OSTYPE),linux gnu FreeBSD OpenBSD NetBSD solaris beos Darwin Carbon AIX Nucleus VxWorks rtems QNX cygwin mingw))
+ifeq (,$(findstring $(OSTYPE),linux gnu DragonFly FreeBSD OpenBSD NetBSD solaris beos Darwin Carbon AIX Nucleus VxWorks rtems QNX cygwin mingw))
default_target :
@echo
@@ -203,6 +203,31 @@ endif # gnu
####################################################
+ifeq ($(OSTYPE),DragonFly)
+
+ifeq ($(MACHTYPE),x86)
+ifdef CPUTYPE
+STDCCFLAGS += -mcpu=$(CPUTYPE)
+endif
+endif
+
+ifeq ($(MACHTYPE),x86_64)
+STDCCFLAGS += -DP_64BIT
+endif
+
+P_USE_RANLIB := 1
+#STDCCFLAGS += -DP_USE_PRAGMA # migrated to configure
+
+ifeq ($(P_SHAREDLIB),1)
+ifndef PROG
+STDCCFLAGS += -fPIC -DPIC
+endif # PROG
+endif # P_SHAREDLIB
+
+endif # DragonFly
+
+####################################################
+
ifeq ($(OSTYPE),FreeBSD)
ifeq ($(MACHTYPE),x86)

View File

@@ -0,0 +1,17 @@
$NetBSD: patch-plugins_sound_esd_sound_esd.h,v 1.2 2012/12/01 15:28:03 darcy Exp $
- Add Dragonfly support
--- plugins/sound_esd/sound_esd.h.orig 2009-09-21 00:25:31.000000000 +0000
+++ plugins/sound_esd/sound_esd.h
@@ -11,6 +11,10 @@
#include <sys/soundcard.h>
#endif
+#ifdef P_DRAGONFLY
+#include <sys/soundcard.h>
+#endif
+
#ifdef P_FREEBSD
#if P_FREEBSD >= 500000
#include <sys/soundcard.h>

View File

@@ -0,0 +1,19 @@
$NetBSD: patch-plugins_sound_oss_sound_oss.cxx,v 1.2 2012/10/13 00:49:38 darcy Exp $
- Add DragonFly support
--- plugins/sound_oss/sound_oss.cxx.orig 2012-08-23 02:12:47.000000000 +0000
+++ plugins/sound_oss/sound_oss.cxx
@@ -183,6 +183,12 @@ static void CollectSoundDevices(PDirecto
devname = devdir + "dsp" + numbers;
PTRACE(1, "OSS\tCollectSoundDevices FreeBSD devname set to devfs(5) name:" << devname );
#endif /* defined (P_FREEBSD) */
+#if defined (P_DRAGONFLY)
+ // Same as FreeBSD
+ devname = devdir + "dsp0";
+ PTRACE(1, "OSS\tCollectSoundDevices DragonFly devname set to devfs(5) name:" << devname );
+#endif /* defined (P_DRAGONFLY) */
+
dsp.SetAt(cardnum+1, devname);
}
}

View File

@@ -0,0 +1,17 @@
$NetBSD: patch-plugins_sound_oss_sound_oss.h,v 1.2 2012/12/01 15:28:03 darcy Exp $
- Add Dragonfly support
--- plugins/sound_oss/sound_oss.h.orig 2009-09-21 00:25:31.000000000 +0000
+++ plugins/sound_oss/sound_oss.h
@@ -15,6 +15,10 @@
#include <sys/soundcard.h>
#endif
+#ifdef P_DRAGONFLY
+#include <sys/soundcard.h>
+#endif
+
#ifdef P_FREEBSD
#if P_FREEBSD >= 500000
#include <sys/soundcard.h>

View File

@@ -0,0 +1,18 @@
$NetBSD: patch-plugins_vidinput_bsd_vidinput_bsd.h,v 1.2 2012/12/01 15:28:03 darcy Exp $
- Add Dragonfly support
--- plugins/vidinput_bsd/vidinput_bsd.h.orig 2009-09-21 00:25:31.000000000 +0000
+++ plugins/vidinput_bsd/vidinput_bsd.h
@@ -13,6 +13,11 @@
#include <ptlib/vconvert.h>
#include <ptclib/delaychan.h>
+#if defined(P_DRAGONFLY)
+#include <sys/param.h>
+#include <machine/ioctl_meteor.h>
+#endif
+
#if defined(P_FREEBSD)
#include <sys/param.h>
# if __FreeBSD_version >= 502100

View File

@@ -0,0 +1,18 @@
$NetBSD: patch-src-unix-tlibthrd.cxx,v 1.2 2012/12/01 15:28:03 darcy Exp $
- deal with lack of pthread_yield on NetBSD
- XXX needs other platforms to be checked.
--- src/ptlib/unix/tlibthrd.cxx.orig 2012-08-23 02:12:27.000000000 +0000
+++ src/ptlib/unix/tlibthrd.cxx
@@ -1531,6 +1531,10 @@ PTimedMutex::~PTimedMutex()
for (PINDEX i = 0; i < 100; ++i) {
if ((result = pthread_mutex_destroy(&m_mutex)) != EBUSY)
break;
+#if defined(P_NETBSD)
+ sched_yield();
+#else
pthread_yield();
+#endif
}
}

View File

@@ -0,0 +1,20 @@
$NetBSD: patch-src_ptclib_pldap.cxx,v 1.2 2012/12/01 15:28:03 darcy Exp $
- Add Solaris support
--- src/ptclib/pldap.cxx.orig 2009-09-21 02:25:24.000000000 +0200
+++ src/ptclib/pldap.cxx 2012-04-18 20:29:09.841685925 +0200
@@ -132,13 +132,8 @@ PBoolean PLDAPSession::Bind(const PStrin
else
whoPtr = who;
-#ifdef SOLARIS
- static const int AuthMethodCode[NumAuthenticationMethod2] = {
- LDAP_AUTH_SIMPLE, LDAP_AUTH_SASL, LDAP_AUTH_KRBV41_30, LDAP_AUTH_KRBV42_30
-#else
static const int AuthMethodCode[NumAuthenticationMethod] = {
LDAP_AUTH_SIMPLE, LDAP_AUTH_SASL, LDAP_AUTH_KRBV4
-#endif
};
errorNumber = ldap_bind_s(ldapContext, whoPtr, passwd, AuthMethodCode[authMethod]);
return errorNumber == LDAP_SUCCESS;

View File

@@ -0,0 +1,14 @@
$NetBSD: patch-unix-config.cxx,v 1.2 2012/12/01 15:28:03 darcy Exp $
- Add Dragonfly support
--- src/ptlib/unix/config.cxx.orig 2009-09-21 00:25:17.000000000 +0000
+++ src/ptlib/unix/config.cxx
@@ -49,6 +49,6 @@
#define EXTENSION ".ini"
#define ENVIRONMENT_CONFIG_STR "/\~~environment~~\/"
-#if defined(P_MACOSX) || defined(P_SOLARIS) || defined(P_FREEBSD)
+#if defined(P_MACOSX) || defined(P_SOLARIS) || defined(P_FREEBSD) || defined(P_DRAGONFLY)
#define environ (NULL)
#endif

View File

@@ -0,0 +1,17 @@
$NetBSD: patch-unix-ossaix.cxx,v 1.2 2012/12/01 15:28:03 darcy Exp $
- Add Dragonfly support
--- src/ptlib/unix/ossaix.cxx.orig 2009-09-21 00:25:17.000000000 +0000
+++ src/ptlib/unix/ossaix.cxx
@@ -40,6 +40,10 @@
#include <sys/time.h>
#endif
+#if defined(P_DRAGONFLY)
+#include <machine/soundcard.h>
+#endif
+
#ifdef P_FREEBSD
#include <machine/soundcard.h>
#endif

View File

@@ -0,0 +1,33 @@
$NetBSD: patch-unix-osutil.cxx,v 1.3 2012/12/01 15:28:03 darcy Exp $
- Add DragonFly support
--- src/ptlib/unix/osutil.cxx.orig 2012-08-23 02:12:27.000000000 +0000
+++ src/ptlib/unix/osutil.cxx
@@ -80,7 +80,7 @@
#define P_USE_LANGINFO
#endif
-#elif defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_NETBSD) || defined(P_MACOSX) || defined(P_MACOS)
+#elif defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_NETBSD) || defined(P_MACOSX) || defined(P_MACOS) || defined(P_DRAGONFLY)
#define P_USE_STRFTIME
#include <sys/param.h>
@@ -535,7 +535,7 @@ PString PDirectory::GetVolume() const
}
fclose(fp);
-#elif defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_NETBSD) || defined(P_MACOSX) || defined(P_MACOS)
+#elif defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_NETBSD) || defined(P_MACOSX) || defined(P_MACOS) || defined(P_DRAGONFLY)
struct statfs * mnt;
int count = getmntinfo(&mnt, MNT_NOWAIT);
@@ -1452,7 +1452,7 @@ int PTime::GetTimeZone(PTime::TimeZoneTy
return tz;
else
return tz + ::daylight*60;
-#elif defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_NETBSD) || defined(P_MACOSX) || defined(P_MACOS) || defined(__BEOS__) || defined(P_QNX) || defined(P_GNU_HURD)
+#elif defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_NETBSD) || defined(P_MACOSX) || defined(P_MACOS) || defined(__BEOS__) || defined(P_QNX) || defined(P_GNU_HURD) || defined(P_DRAGONFLY)
time_t t;
time(&t);
struct tm ts;

View File

@@ -0,0 +1,41 @@
$NetBSD: patch-unix-pmachdep.h,v 1.2 2012/10/13 00:49:38 darcy Exp $
- Add DragonFly support
--- include/ptlib/unix/ptlib/pmachdep.h.orig 2012-08-23 02:12:57.000000000 +0000
+++ include/ptlib/unix/ptlib/pmachdep.h
@@ -78,6 +78,34 @@ typedef size_t socklen_t;
#define HAS_IFREQ
///////////////////////////////////////////////////////////////////////////////
+#elif defined(P_DRAGONFLY)
+
+#if defined(P_PTHREADS)
+#ifndef _THREAD_SAFE
+#define _THREAD_SAFE
+#endif
+#define P_THREAD_SAFE_CLIB
+
+#include <pthread.h>
+#endif
+
+#include <paths.h>
+#include <errno.h>
+#include <dlfcn.h>
+#include <termios.h>
+#include <sys/fcntl.h>
+#include <sys/filio.h>
+#include <sys/socket.h>
+#include <sys/sockio.h>
+#include <sys/signal.h>
+#include <net/if.h>
+#include <netinet/tcp.h>
+
+#define HAS_IFREQ
+
+#define PSETPGRP() setpgrp(0, 0)
+
+///////////////////////////////////////////////////////////////////////////////
#elif defined(P_FREEBSD)
#if defined(P_PTHREADS)

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-unix-serchan.cxx,v 1.2 2012/12/01 15:28:03 darcy Exp $
- Add Dragonfly support
--- src/ptlib/unix/serchan.cxx.orig 2009-09-21 00:25:17.000000000 +0000
+++ src/ptlib/unix/serchan.cxx
@@ -43,7 +43,7 @@
#define TCSETATTR(f,t) tcsetattr(f,TCSANOW,t)
#define TCGETATTR(f,t) tcgetattr(f,t)
-#elif defined(P_FREEBSD) || defined(P_OPENBSD) || defined (P_NETBSD) || defined(P_MACOSX) || defined(P_MACOS) || defined(P_RTEMS)
+#elif defined(P_FREEBSD) || defined(P_OPENBSD) || defined (P_NETBSD) || defined(P_MACOSX) || defined(P_MACOS) || defined(P_RTEMS) || defined(P_DRAGONFLY)
#include <sys/ttycom.h>
#define TCGETA TIOCGETA
#define TCSETAW TIOCSETAW

View File

@@ -0,0 +1,60 @@
$NetBSD: patch-unix-socket.cxx,v 1.2 2012/10/13 00:49:39 darcy Exp $
- Add DragonFly support
--- src/ptlib/unix/socket.cxx.orig 2012-08-23 02:12:27.000000000 +0000
+++ src/ptlib/unix/socket.cxx
@@ -54,7 +54,7 @@
#define ifr_macaddr ifr_hwaddr.sa_data
#endif
-#if defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_NETBSD) || defined(P_SOLARIS) || defined(P_MACOSX) || defined(P_MACOS) || defined(P_IRIX) || defined(P_VXWORKS) || defined(P_RTEMS) || defined(P_QNX)
+#if defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_NETBSD) || defined(P_SOLARIS) || defined(P_MACOSX) || defined(P_MACOS) || defined(P_IRIX) || defined(P_VXWORKS) || defined(P_RTEMS) || defined(P_QNX) || defined(P_DRAGONFLY)
#define ifr_netmask ifr_addr
#include <net/if_dl.h>
@@ -78,7 +78,7 @@
#endif
-#if defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_NETBSD) || defined(P_MACOSX) || defined(P_MACOS) || defined(P_QNX)
+#if defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_NETBSD) || defined(P_MACOSX) || defined(P_MACOS) || defined(P_QNX) || defined(P_DRAGONFLY)
#include <sys/sysctl.h>
#endif
@@ -92,7 +92,7 @@
#include <be/bone/sys/sockio.h> // for SIOCGI*
#endif
-#if defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_NETBSD) || defined(P_MACOSX) || defined(P_VXWORKS) || defined(P_RTEMS) || defined(P_QNX)
+#if defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_NETBSD) || defined(P_MACOSX) || defined(P_VXWORKS) || defined(P_RTEMS) || defined(P_QNX) || defined(P_DRAGONFLY)
// Define _SIZEOF_IFREQ for platforms (eg OpenBSD) which do not have it.
#ifndef _SIZEOF_ADDR_IFREQ
#define _SIZEOF_ADDR_IFREQ(ifr) \
@@ -526,7 +526,7 @@ PBoolean PIPSocket::IsLocalHost(const PS
}
}
-#if defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_MACOSX) || defined(P_VXWORKS) || defined(P_RTEMS) || defined(P_QNX)
+#if defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_MACOSX) || defined(P_VXWORKS) || defined(P_RTEMS) || defined(P_QNX) || defined(P_DRAGONFLY)
// move the ifName pointer along to the next ifreq entry
ifName = (struct ifreq *)((char *)ifName + _SIZEOF_ADDR_IFREQ(*ifName));
#elif !defined(P_NETBSD)
@@ -1100,7 +1100,7 @@ PBoolean PIPSocket::GetRouteTable(RouteT
return !table.IsEmpty();
}
-#elif (defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_NETBSD) || defined(P_MACOSX) || defined(P_QNX)) && !defined(P_IPHONEOS)
+#elif (defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_NETBSD) || defined(P_MACOSX) || defined(P_QNX)) && !defined(P_IPHONEOS) || defined(P_DRAGONFLY)
PBoolean process_rtentry(struct rt_msghdr *rtm, char *ptr, unsigned long *p_net_addr,
unsigned long *p_net_mask, unsigned long *p_dest_addr, int *p_metric);
@@ -1966,7 +1966,7 @@ PBoolean PIPSocket::GetInterfaceTable(In
}
}
-#if defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_MACOSX) || defined(P_VXWORKS) || defined(P_RTEMS) || defined(P_QNX)
+#if defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_MACOSX) || defined(P_VXWORKS) || defined(P_RTEMS) || defined(P_QNX) || defined(P_DRAGONFLY)
// move the ifName pointer along to the next ifreq entry
ifName = (struct ifreq *)((char *)ifName + _SIZEOF_ADDR_IFREQ(*ifName));
#elif !defined(P_NETBSD)

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-unix-switch.cxx,v 1.2 2012/12/01 15:28:03 darcy Exp $
- Add Dragonfly support
--- src/ptlib/unix/switch.cxx.orig 2009-09-21 00:25:17.000000000 +0000
+++ src/ptlib/unix/switch.cxx
@@ -54,7 +54,7 @@
#endif
#endif
-#if defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_NETBSD)
+#if defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_NETBSD) || defined(P_DRAGONFLY)
#define SET_STACK context[0]._jb[2] = (int)stackTop-16;
#if defined(P_NETBSD)
#include <sys/mman.h>

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-unix-tlib.cxx,v 1.2 2012/10/13 00:49:39 darcy Exp $
- Add DragonFly support
--- src/ptlib/unix/tlib.cxx.orig 2012-08-23 02:12:27.000000000 +0000
+++ src/ptlib/unix/tlib.cxx
@@ -70,7 +70,7 @@
#include <sys/mman.h>
#endif
-#if defined(P_LINUX) || defined(P_SUN4) || defined(P_SOLARIS) || defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_NETBSD) || defined(P_MACOSX) || defined(P_MACOS) || defined (P_AIX) || defined(P_BEOS) || defined(P_IRIX) || defined(P_QNX) || defined(P_GNU_HURD)
+#if defined(P_LINUX) || defined(P_SUN4) || defined(P_SOLARIS) || defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_NETBSD) || defined(P_MACOSX) || defined(P_MACOS) || defined (P_AIX) || defined(P_BEOS) || defined(P_IRIX) || defined(P_QNX) || defined(P_GNU_HURD) || defined(P_DRAGONFLY)
#include <sys/utsname.h>
#define HAS_UNAME
#elif defined(P_RTEMS)