summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorjoerg <joerg>2006-01-08 04:57:55 +0000
committerjoerg <joerg>2006-01-08 04:57:55 +0000
commit3f12356d1b5dd79ee360791f22b69c2beecf9563 (patch)
treed9827e55685123b45bd26176e8e2242395ba3e9d /devel
parentf7342dd66651b49f6e40fd59644ef15c2456e1fd (diff)
downloadpkgsrc-3f12356d1b5dd79ee360791f22b69c2beecf9563.tar.gz
Use SUBST framework. Readd some replacements in the mak files, since
they are installed and should work without the pkgsrc framework to define e.g. LIBTOOL. Bump the revision for this. Fix the inclusion in Makefiles by crudely faking the installation directory layout. Remove some explicit casts which break with GCC 3.4 and OpenSSL 0.9.8, this might need to be conditionalized. Add DraogonFly support and somewhat cleanup the FreeBSD sound includes.
Diffstat (limited to 'devel')
-rw-r--r--devel/pwlib/Makefile26
-rw-r--r--devel/pwlib/distinfo27
-rw-r--r--devel/pwlib/patches/patch-aa13
-rw-r--r--devel/pwlib/patches/patch-ab19
-rw-r--r--devel/pwlib/patches/patch-ad39
-rw-r--r--devel/pwlib/patches/patch-ae19
-rw-r--r--devel/pwlib/patches/patch-ag24
-rw-r--r--devel/pwlib/patches/patch-ah18
-rw-r--r--devel/pwlib/patches/patch-ai12
-rw-r--r--devel/pwlib/patches/patch-ak18
-rw-r--r--devel/pwlib/patches/patch-ao12
-rw-r--r--devel/pwlib/patches/patch-ap15
-rw-r--r--devel/pwlib/patches/patch-aq13
-rw-r--r--devel/pwlib/patches/patch-ar15
-rw-r--r--devel/pwlib/patches/patch-as22
-rw-r--r--devel/pwlib/patches/patch-at13
-rw-r--r--devel/pwlib/patches/patch-au31
-rw-r--r--devel/pwlib/patches/patch-av13
-rw-r--r--devel/pwlib/patches/patch-aw13
-rw-r--r--devel/pwlib/patches/patch-ba47
-rw-r--r--devel/pwlib/patches/patch-bb37
21 files changed, 404 insertions, 42 deletions
diff --git a/devel/pwlib/Makefile b/devel/pwlib/Makefile
index 1057bd1c23a..4c21231d106 100644
--- a/devel/pwlib/Makefile
+++ b/devel/pwlib/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.48 2006/01/04 04:29:06 schmonz Exp $
+# $NetBSD: Makefile,v 1.49 2006/01/08 04:57:55 joerg Exp $
DISTNAME= pwlib-v1_8_3-src
PKGNAME= pwlib-1.8.3
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= devel
MASTER_SITES+= http://www.voxgratia.org/releases/
EXTRACT_SUFX= -tar.gz
@@ -27,19 +27,20 @@ PTHREAD_OPTS+= require
BUILD_TARGET= opt
MAKE_ENV+= PWLIBDIR=${WRKSRC:Q} CC=${CC:Q} CPLUS=${CXX:Q}
-FILES_SUBST+= LIBTOOL=${LIBTOOL:Q}
-FILES_SUBST+= PTHREADS_PREFIX="${BUILDLINK_PREFIX.pthread}"
+SUBST_CLASSES+= paths
+SUBST_FILES.paths= make/unix.mak make/lib.mak make/common.mak make/pwlib.mak
+SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g'
+SUBST_SED.paths+= -e 's,@LIBTOOL@,${LIBTOOL},g'
+SUBST_SED.paths+= -e 's,@BSD_INSTALL_LIB@,${INSTALL_LIB},g'
+SUBST_SED.paths+= -e 's,@BSD_INSTALL_PROGRAM@,${INSTALL_PROGRAM},g'
+SUBST_SED.paths+= -e 's,@PTHREAD_FLAGS@,${PTHREAD_LDFLAGS} ${PTHREAD_LIBS},g'
+SUBST_SED.paths+= -e 's,@LIBOSSAUDIO@,${LIBOSSAUDIO},g'
+SUBST_STAGE.paths= post-patch
post-extract:
cd ${WRKDIR}; ${TAR} -xf ${DISTNAME:S/$/-tar/}
-
-post-patch:
- ${_PKG_SILENT}cd ${WRKSRC}/make; \
- for f in unix.mak lib.mak common.mak; do \
- ${SED} ${FILES_SUBST_SED} $$f > $$f.sed; \
- ${MV} -f $$f.sed $$f; \
- done
- ${LN} -sf ${WRKDIR} ${WRKSRC}/share
+ mkdir ${WRKSRC}/share
+ ${LN} -s ../../pwlib ${WRKSRC}/share/pwlib
do-install:
cd ${WRKSRC}/src/ptlib/unix && ${MAKE_ENV} ${GMAKE} install
@@ -57,5 +58,6 @@ do-install:
done
.include "../../security/openssl/buildlink3.mk"
+.include "../../mk/ossaudio.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/devel/pwlib/distinfo b/devel/pwlib/distinfo
index b6ea3761298..0e3bdbb887d 100644
--- a/devel/pwlib/distinfo
+++ b/devel/pwlib/distinfo
@@ -1,18 +1,31 @@
-$NetBSD: distinfo,v 1.15 2005/09/06 08:10:57 abs Exp $
+$NetBSD: distinfo,v 1.16 2006/01/08 04:57:55 joerg Exp $
SHA1 (pwlib-v1_8_3-src-tar.gz) = d3a6eff571ebfd37889e75cbaef75983e6119d2e
RMD160 (pwlib-v1_8_3-src-tar.gz) = 1ce2544ef631c8344543e62988f97022c998bb05
Size (pwlib-v1_8_3-src-tar.gz) = 1900922 bytes
-SHA1 (patch-aa) = f07517555dee8ba1a0b4ecad93aa36a57ae024b2
-SHA1 (patch-ab) = 7d7e09d5403a8b98c832e286eb8403d457164d0e
+SHA1 (patch-aa) = e8dc5e42fc758ec2a437caed47a29495b3017b5e
+SHA1 (patch-ab) = 597cbdcd050b4c0d20d8dee7358bbf5dbf3cf210
SHA1 (patch-ac) = c0284e67ce689d774b715be4dc17214aa88c3d4a
-SHA1 (patch-ad) = 2d27b2485611f5e2ae304541d1b74a61d3498ffc
+SHA1 (patch-ad) = 37df314d226b8e5c420ac7d94fe6d700d7a9bda9
+SHA1 (patch-ae) = ebe340836c7456a355b4518789a49b7550766b06
SHA1 (patch-af) = c38f646d75d57f17101ce42813f8e66232778447
-SHA1 (patch-ai) = 68e6b9ef55695a01193c1e77eb7960232311e695
+SHA1 (patch-ag) = bc08c8fc6d14021b1ebfab12d6ffb86404a588bb
+SHA1 (patch-ah) = fff6483f2a2f5864df57a6d90489846b5cc7ffdf
+SHA1 (patch-ai) = f0a9a80914dd4ae0f531c646001bce06c68e8e2f
SHA1 (patch-aj) = 93e039bb60c5cb75abb916e2797c644b67a6b9b0
+SHA1 (patch-ak) = 74c9733c010c6620d7d6355afb8f482f7087a2b0
SHA1 (patch-al) = 306d4e7882c1e717ae51f0eda70d08e89b40d20e
SHA1 (patch-am) = 5b80fce03de136913dadfdbbdc161edef2f72919
SHA1 (patch-an) = f79776e86d32bd15fd9f8fe1c0c02196ce4bcd3e
-SHA1 (patch-ba) = 4fb25dba8dc9143d7e655194894db1ee4221a1cf
-SHA1 (patch-bb) = b8ec2bb8616de4a7374604006aee4b79c7a0c716
+SHA1 (patch-ao) = 665d7c87476b8bb7afe3bdb1a892cf98f7bff8d2
+SHA1 (patch-ap) = 5f7d299cdd15e5c773ffdc4085be4466d70ca412
+SHA1 (patch-aq) = f590dad7d36d3926586f5158d3ae599fda38f554
+SHA1 (patch-ar) = f4c8b0141758613506a95e2fe0ce328c49898144
+SHA1 (patch-as) = 2764ccc5876bc15a7d56e4416742e951f418945a
+SHA1 (patch-at) = 87bbff9a5426c18c3e8407406b244eef2413cdbd
+SHA1 (patch-au) = 4947ee29e91c84f39a370ebc128c1e67737234d1
+SHA1 (patch-av) = 2bb533f6a29f10d357aed1b12c0bfc43af8a4f3b
+SHA1 (patch-aw) = 236cb19fc7f0b78055b0634b3821c099318abb9f
+SHA1 (patch-ba) = de2f2b6267a561e59951b4787d683c346953fe26
+SHA1 (patch-bb) = 03345fade582539c3b7332f14f1956686ad15289
SHA1 (patch-bd) = 2d2fb1c6772a1e015cc1bceeb27fda39f57f5acc
diff --git a/devel/pwlib/patches/patch-aa b/devel/pwlib/patches/patch-aa
index 3f7fce9a8d9..64054279721 100644
--- a/devel/pwlib/patches/patch-aa
+++ b/devel/pwlib/patches/patch-aa
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.7 2004/11/30 16:44:47 adam Exp $
+$NetBSD: patch-aa,v 1.8 2006/01/08 04:57:55 joerg Exp $
--- make/unix.mak.orig 2004-11-16 00:32:34.000000000 +0000
+++ make/unix.mak
@@ -7,7 +7,7 @@ $NetBSD: patch-aa,v 1.7 2004/11/30 16:44:47 adam Exp $
ifndef PWLIBDIR
-PWLIBDIR = $(HOME)/pwlib
-+PWLIBDIR = /usr/pkg
++PWLIBDIR = @PREFIX@
endif
####################################################
@@ -18,6 +18,15 @@ $NetBSD: patch-aa,v 1.7 2004/11/30 16:44:47 adam Exp $
###############################################################################
#
+@@ -309,7 +309,7 @@ release tagbuild
+ .PHONY: all $(STANDARD_TARGETS)
+
+
+-ifeq (,$(findstring $(OSTYPE),linux FreeBSD OpenBSD NetBSD solaris beos Darwin Carbon AIX Nucleus VxWorks rtems QNX cygwin))
++ifeq (,$(findstring $(OSTYPE),linux DragonFly FreeBSD OpenBSD NetBSD solaris beos Darwin Carbon AIX Nucleus VxWorks rtems QNX cygwin))
+
+ default_target :
+ @echo
@@ -433,9 +433,9 @@ endif # FreeBSD
ifeq ($(OSTYPE),OpenBSD)
diff --git a/devel/pwlib/patches/patch-ab b/devel/pwlib/patches/patch-ab
index cf9707bb9c0..05a0966f5e8 100644
--- a/devel/pwlib/patches/patch-ab
+++ b/devel/pwlib/patches/patch-ab
@@ -1,8 +1,17 @@
-$NetBSD: patch-ab,v 1.7 2004/10/09 14:01:03 mjl Exp $
+$NetBSD: patch-ab,v 1.8 2006/01/08 04:57:55 joerg Exp $
--- make/lib.mak.orig 2004-06-17 08:33:07.000000000 +0200
+++ make/lib.mak 2004-10-09 14:49:04.000000000 +0200
-@@ -200,22 +200,18 @@
+@@ -175,7 +175,7 @@ ifeq ($(P_SHAREDLIB),1)
+ endif
+
+ ifneq ($(OSTYPE), QNX)
+- ifneq (,$(findstring $(OSTYPE),FreeBSD OpenBSDs))
++ ifneq (,$(findstring $(OSTYPE),FreeBSD OpenBSD DragonFly))
+ ifdef P_PTHREADS
+ EXTLIBS += -pthread
+ endif
+@@ -200,22 +200,18 @@ ifeq ($(P_SHAREDLIB),1)
LD = $(CPLUS)
endif
@@ -10,7 +19,7 @@ $NetBSD: patch-ab,v 1.7 2004/10/09 14:01:03 mjl Exp $
- cd $(LIBDIR) ; rm -f $(LIB_FILENAME) ; ln -sf $(LIBNAME_PAT) $(LIB_FILENAME)
- cd $(LIBDIR) ; rm -f $(LIBNAME_MAJ) ; ln -sf $(LIBNAME_PAT) $(LIBNAME_MAJ)
- cd $(LIBDIR) ; rm -f $(LIBNAME_MIN) ; ln -sf $(LIBNAME_PAT) $(LIBNAME_MIN)
-+ ENDLDLIBS += -L$(PREFIX)/lib -lpthread -lossaudio
++ ENDLDLIBS += -L$(PREFIX)/lib @PTHREAD_FLAGS@ @LIBOSSAUDIO@
- $(LIBDIR)/$(LIBNAME_PAT): $(STATIC_LIB_FILE)
+ $(LIBDIR)/$(LIB_FILENAME): $(OBJS)
@@ -18,7 +27,7 @@ $NetBSD: patch-ab,v 1.7 2004/10/09 14:01:03 mjl Exp $
@echo SYSLIBS = $(SYSLIBS)
@if [ ! -d $(LIBDIR) ] ; then mkdir $(LIBDIR) ; fi
- $(LD) $(LDSOOPTS) -o $(LIBDIR)/$(LIBNAME_PAT) $(LDFLAGS) $(EXTLIBS) $(OBJS) $(ENDLDLIBS)
-+ $(LIBTOOL) --tag=CXX --mode=link $(CPLUS) -o $(LIBDIR)/$(LIB_FILENAME) \
++ @LIBTOOL@ --tag=CXX --mode=link $(CPLUS) -o $(LIBDIR)/$(LIB_FILENAME) \
+ $(OBJS:.o=.lo) $(EXTLIBS) $(ENDLDLIBS) -rpath $(INSTALLLIB_DIR) \
+ -release $(MAJOR_VERSION).$(MINOR_VERSION).$(BUILD_NUMBER)
@@ -28,7 +37,7 @@ $NetBSD: patch-ab,v 1.7 2004/10/09 14:01:03 mjl Exp $
- ln -sf $(LIBNAME_PAT) $(INSTALLLIB_DIR)/$(LIBNAME_MAJ)
- ln -sf $(LIBNAME_PAT) $(INSTALLLIB_DIR)/$(LIBNAME_MIN)
+ install: $(LIBDIR)/$(LIB_FILENAME)
-+ $(LIBTOOL) --mode=install install $(LIBDIR)/$(LIB_FILENAME) $(INSTALLLIB_DIR)/$(LIB_FILENAME)
++ @LIBTOOL@ --mode=install @BSD_INSTALL_LIB@ $(LIBDIR)/$(LIB_FILENAME) $(INSTALLLIB_DIR)/$(LIB_FILENAME)
endif # P_SHAREDLIB
diff --git a/devel/pwlib/patches/patch-ad b/devel/pwlib/patches/patch-ad
index d34f0fc9d82..e34109755a8 100644
--- a/devel/pwlib/patches/patch-ad
+++ b/devel/pwlib/patches/patch-ad
@@ -1,9 +1,13 @@
-$NetBSD: patch-ad,v 1.5 2005/09/06 08:10:57 abs Exp $
+$NetBSD: patch-ad,v 1.6 2006/01/08 04:57:55 joerg Exp $
---- src/ptlib/unix/osutil.cxx.orig 2004-09-23 07:00:10.000000000 +0200
+--- src/ptlib/unix/osutil.cxx.orig 2004-09-23 05:00:10.000000000 +0000
+++ src/ptlib/unix/osutil.cxx
-@@ -243,8 +243,13 @@
- #elif defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_NETBSD) || defined(P_MACOSX) || defined(P_MACOS)
+@@ -240,11 +240,16 @@
+ #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
+#if defined(__NetBSD__) && __NetBSD_Version__ > 299000900
@@ -16,3 +20,30 @@ $NetBSD: patch-ad,v 1.5 2005/09/06 08:10:57 abs Exp $
#elif defined(P_HPUX9)
#define P_USE_LANGINFO
+@@ -685,7 +690,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);
+@@ -725,7 +730,7 @@ PString PDirectory::GetVolume() const
+
+ BOOL PDirectory::GetVolumeSpace(PInt64 & total, PInt64 & free, DWORD & clusterSize) const
+ {
+-#if defined(P_LINUX) || defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_NETBSD) || defined(P_MACOSX) || defined(P_MACOS)
++#if defined(P_LINUX) || defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_NETBSD) || defined(P_MACOSX) || defined(P_MACOS) || defined(P_DRAGONFLY)
+
+ struct statfs fs;
+
+@@ -1588,7 +1593,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)
++#elif defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_NETBSD) || defined(P_MACOSX) || defined(P_MACOS) || defined(__BEOS__) || defined(P_QNX) || defined(P_DRAGONFLY)
+ time_t t;
+ time(&t);
+ struct tm ts;
diff --git a/devel/pwlib/patches/patch-ae b/devel/pwlib/patches/patch-ae
new file mode 100644
index 00000000000..e14bd2f68e1
--- /dev/null
+++ b/devel/pwlib/patches/patch-ae
@@ -0,0 +1,19 @@
+$NetBSD: patch-ae,v 1.4 2006/01/08 04:57:55 joerg Exp $
+
+--- configure.orig 2006-01-08 03:13:16.000000000 +0000
++++ configure
+@@ -2059,6 +2059,14 @@ case "$target_os" in
+ need_pragma=yes ;
+ ;;
+
++ dragonfly* ) OSTYPE=DragonFly ;
++ OS_TAG="P_DRAGONFLY" ;
++ if test "x$OSRELEASE" = "x"; then
++ OSRELEASE="`sysctl -n kern.osreldate`" ;
++ fi
++ need_pragma=yes ;
++ ;;
++
+ openbsd* ) OSTYPE=OpenBSD ;
+ OS_TAG="P_OPENBSD" ;
+ OSRELEASE="`sysctl -n kern.osrevision`" ;
diff --git a/devel/pwlib/patches/patch-ag b/devel/pwlib/patches/patch-ag
new file mode 100644
index 00000000000..199c6e6b860
--- /dev/null
+++ b/devel/pwlib/patches/patch-ag
@@ -0,0 +1,24 @@
+$NetBSD: patch-ag,v 1.5 2006/01/08 04:57:55 joerg Exp $
+
+--- include/ptlib/unix/ptlib/videoio.h.orig 2006-01-08 03:14:38.000000000 +0000
++++ include/ptlib/unix/ptlib/videoio.h
+@@ -110,6 +110,10 @@
+ #include <machine/ioctl_meteor.h>
+ #endif
+
++#if defined(P_DRAGONFLY)
++#include <dev/video/meteor/ioctl_meteor.h>
++#endif
++
+ #if defined(P_OPENBSD) || defined(P_NETBSD)
+ #if P_OPENBSD >= 200105
+ #include <dev/ic/bt8xx.h>
+@@ -178,7 +182,7 @@
+ struct video_mmap frameBuffer[2];
+ #endif
+
+-#if defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_NETBSD)
++#if defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_NETBSD) || defined(P_DRAGONFLY)
+ struct video_capability
+ {
+ int channels; /* Num channels */
diff --git a/devel/pwlib/patches/patch-ah b/devel/pwlib/patches/patch-ah
new file mode 100644
index 00000000000..1ac42e1c5cf
--- /dev/null
+++ b/devel/pwlib/patches/patch-ah
@@ -0,0 +1,18 @@
+$NetBSD: patch-ah,v 1.3 2006/01/08 04:57:55 joerg Exp $
+
+--- plugins/sound_oss/sound_oss.h.orig 2006-01-08 03:46:00.000000000 +0000
++++ plugins/sound_oss/sound_oss.h
+@@ -11,12 +11,8 @@
+ #include <sys/soundcard.h>
+ #endif
+
+-#ifdef P_FREEBSD
+-#if P_FREEBSD >= 500000
++#if defined(P_FREEBSD) || defined(P_DRAGONFLY)
+ #include <sys/soundcard.h>
+-#else
+-#include <machine/soundcard.h>
+-#endif
+ #endif
+
+ #if defined(P_OPENBSD) || defined(P_NETBSD)
diff --git a/devel/pwlib/patches/patch-ai b/devel/pwlib/patches/patch-ai
index d82b1ef9d58..30eb5e69e56 100644
--- a/devel/pwlib/patches/patch-ai
+++ b/devel/pwlib/patches/patch-ai
@@ -1,4 +1,4 @@
-$NetBSD: patch-ai,v 1.6 2004/10/09 14:01:03 mjl Exp $
+$NetBSD: patch-ai,v 1.7 2006/01/08 04:57:55 joerg Exp $
--- make/common.mak.orig 2004-06-10 03:36:44.000000000 +0200
+++ make/common.mak 2004-10-09 12:52:56.000000000 +0200
@@ -7,12 +7,12 @@ $NetBSD: patch-ai,v 1.6 2004/10/09 14:01:03 mjl Exp $
$(OBJDIR)/%.o : %.cxx
@if [ ! -d $(OBJDIR) ] ; then mkdir -p $(OBJDIR) ; fi
- $(CPLUS) $(STDCCFLAGS) $(OPTCCFLAGS) $(CFLAGS) $(STDCXXFLAGS) -x c++ -c $< -o $@
-+ $(LIBTOOL) --mode=compile --tag=CXX $(CPLUS) $(STDCCFLAGS) $(OPTCCFLAGS) $(CFLAGS) $(STDCXXFLAGS) -x c++ -c $< -o $@
++ @LIBTOOL@ --mode=compile --tag=CXX $(CPLUS) $(STDCCFLAGS) $(OPTCCFLAGS) $(CFLAGS) $(STDCXXFLAGS) -x c++ -c $< -o $@
$(OBJDIR)/%.o : %.c
@if [ ! -d $(OBJDIR) ] ; then mkdir -p $(OBJDIR) ; fi
- $(CC) $(STDCCFLAGS) $(OPTCCFLAGS) $(CFLAGS) -x c -c $< -o $@
-+ $(LIBTOOL) --mode=compile --tag=CC $(CC) $(STDCCFLAGS) $(OPTCCFLAGS) $(CFLAGS) -x c -c $< -o $@
++ @LIBTOOL@ --mode=compile --tag=CC $(CC) $(STDCCFLAGS) $(OPTCCFLAGS) $(CFLAGS) -x c -c $< -o $@
#
# create list of object files
@@ -21,7 +21,7 @@ $NetBSD: patch-ai,v 1.6 2004/10/09 14:01:03 mjl Exp $
@if [ ! -L $(OBJDIR)/lib ] ; then cd $(OBJDIR); ln -s $(PW_LIBDIR) lib; fi
endif
- $(CPLUS) -o $@ $(CFLAGS) $(LDFLAGS) $(OBJS) $(LDLIBS) $(ENDLDLIBS) $(ENDLDFLAGS)
-+ $(LIBTOOL) --mode=link --tag=CXX $(CPLUS) -o $@ $(CFLAGS) $(LDFLAGS) $(OBJS) $(LDLIBS) $(ENDLDLIBS) $(ENDLDFLAGS)
++ @LIBTOOL@ --mode=link --tag=CXX $(CPLUS) -o $@ $(CFLAGS) $(LDFLAGS) $(OBJS) $(LDLIBS) $(ENDLDLIBS) $(ENDLDFLAGS)
ifeq ($(OSTYPE),VxWorks)
$(LD) --split-by-reloc 65535 -r $(OBJS) -o $@
endif
@@ -30,7 +30,7 @@ $NetBSD: patch-ai,v 1.6 2004/10/09 14:01:03 mjl Exp $
install: $(TARGET)
- $(INSTALL) $(TARGET) $(INSTALLBIN_DIR)
-+ $(LIBTOOL) --mode=install $(BSD_INSTALL_PROGRAM) $(TARGET) $(INSTALLBIN_DIR)
++ @LIBTOOL@ --mode=install @BSD_INSTALL_PROGRAM@ $(TARGET) $(INSTALLBIN_DIR)
endif
# ifdef PROG
@@ -39,7 +39,7 @@ $NetBSD: patch-ai,v 1.6 2004/10/09 14:01:03 mjl Exp $
$(PWLIBDIR)/include/ptlib.h.gch: $(PWLIBDIR)/include/ptlib.h
@if [ ! -d $(OBJDIR) ] ; then mkdir -p $(OBJDIR) ; fi
- $(CPLUS) $(STDCCFLAGS) $(OPTCCFLAGS) $(CFLAGS) $(STDCXXFLAGS) -x c++ -c $< -o $@
-+ $(LIBTOOL) --mode=compile --tag=CXX $(CPLUS) $(STDCCFLAGS) $(OPTCCFLAGS) $(CFLAGS) $(STDCXXFLAGS) -x c++ -c $< -o $@
++ @LIBTOOL@ --mode=compile --tag=CXX $(CPLUS) $(STDCCFLAGS) $(OPTCCFLAGS) $(CFLAGS) $(STDCXXFLAGS) -x c++ -c $< -o $@
PCH := $(PWLIBDIR)/include/ptlib.h.gch
diff --git a/devel/pwlib/patches/patch-ak b/devel/pwlib/patches/patch-ak
new file mode 100644
index 00000000000..3b5b2fb1c0a
--- /dev/null
+++ b/devel/pwlib/patches/patch-ak
@@ -0,0 +1,18 @@
+$NetBSD: patch-ak,v 1.3 2006/01/08 04:57:55 joerg Exp $
+
+--- plugins/sound_esd/sound_esd.h.orig 2006-01-08 03:15:21.000000000 +0000
++++ plugins/sound_esd/sound_esd.h
+@@ -11,12 +11,8 @@
+ #include <sys/soundcard.h>
+ #endif
+
+-#ifdef P_FREEBSD
+-#if P_FREEBSD >= 500000
++#if defined(P_FREEBSD) || defined(P_DRAGONFLY)
+ #include <sys/soundcard.h>
+-#else
+-#include <machine/soundcard.h>
+-#endif
+ #endif
+
+ #if defined(P_OPENBSD) || defined(P_NETBSD)
diff --git a/devel/pwlib/patches/patch-ao b/devel/pwlib/patches/patch-ao
new file mode 100644
index 00000000000..02917f3ac85
--- /dev/null
+++ b/devel/pwlib/patches/patch-ao
@@ -0,0 +1,12 @@
+$NetBSD: patch-ao,v 1.1 2006/01/08 04:57:55 joerg Exp $
+
+--- include/ptbuildopts.h.in.orig 2006-01-08 03:47:03.000000000 +0000
++++ include/ptbuildopts.h.in
+@@ -161,6 +161,7 @@
+
+ #undef P_LINUX
+ #undef P_FREEBSD
++#undef P_DRAGONFLY
+ #undef P_OPENBSD
+ #undef P_NETBSD
+ #undef P_SOLARIS
diff --git a/devel/pwlib/patches/patch-ap b/devel/pwlib/patches/patch-ap
new file mode 100644
index 00000000000..a0903edd579
--- /dev/null
+++ b/devel/pwlib/patches/patch-ap
@@ -0,0 +1,15 @@
+$NetBSD: patch-ap,v 1.1 2006/01/08 04:57:55 joerg Exp $
+
+--- plugins/vidinput_bsd/vidinput_bsd.h.orig 2006-01-08 03:17:25.000000000 +0000
++++ plugins/vidinput_bsd/vidinput_bsd.h
+@@ -10,6 +10,10 @@
+ #include <machine/ioctl_meteor.h>
+ #endif
+
++#if defined(P_DRAGONFLY)
++#include <dev/video/meteor/ioctl_meteor.h>
++#endif
++
+ #if defined(P_OPENBSD) || defined(P_NETBSD)
+ #if P_OPENBSD >= 200105
+ #include <dev/ic/bt8xx.h>
diff --git a/devel/pwlib/patches/patch-aq b/devel/pwlib/patches/patch-aq
new file mode 100644
index 00000000000..9369363b780
--- /dev/null
+++ b/devel/pwlib/patches/patch-aq
@@ -0,0 +1,13 @@
+$NetBSD: patch-aq,v 1.1 2006/01/08 04:57:55 joerg Exp $
+
+--- src/ptlib/common/pvidchan.cxx.orig 2006-01-08 03:18:06.000000000 +0000
++++ src/ptlib/common/pvidchan.cxx
+@@ -123,7 +123,7 @@ PStringList PVideoChannel::GetDeviceName
+
+ PString PVideoChannel::GetDefaultDevice(Directions /*dir*/)
+ {
+-#if defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_NETBSD)
++#if defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_NETBSD) || defined(P_DRAGONFLY)
+ return "/dev/bktr0";
+ #endif
+
diff --git a/devel/pwlib/patches/patch-ar b/devel/pwlib/patches/patch-ar
new file mode 100644
index 00000000000..dcb4e933288
--- /dev/null
+++ b/devel/pwlib/patches/patch-ar
@@ -0,0 +1,15 @@
+$NetBSD: patch-ar,v 1.1 2006/01/08 04:57:55 joerg Exp $
+
+--- src/ptlib/unix/ossaix.cxx.orig 2006-01-08 03:18:33.000000000 +0000
++++ src/ptlib/unix/ossaix.cxx
+@@ -103,8 +103,8 @@
+ #include <sys/time.h>
+ #endif
+
+-#ifdef P_FREEBSD
+-#include <machine/soundcard.h>
++#if defined(P_FREEBSD) || defined(P_DRAGONFLY)
++#include <sys/soundcard.h>
+ #endif
+
+ #if defined(P_OPENBSD) || defined(P_NETBSD)
diff --git a/devel/pwlib/patches/patch-as b/devel/pwlib/patches/patch-as
new file mode 100644
index 00000000000..6a278cf453e
--- /dev/null
+++ b/devel/pwlib/patches/patch-as
@@ -0,0 +1,22 @@
+$NetBSD: patch-as,v 1.1 2006/01/08 04:57:55 joerg Exp $
+
+--- include/ptlib/unix/ptlib/pmachdep.h.orig 2006-01-08 03:44:23.000000000 +0000
++++ include/ptlib/unix/ptlib/pmachdep.h
+@@ -217,7 +217,7 @@ typedef size_t socklen_t;
+ #endif
+
+ ///////////////////////////////////////////////////////////////////////////////
+-#elif defined(P_FREEBSD)
++#elif defined(P_FREEBSD) || defined(P_DRAGONFLY)
+
+ #if defined(P_PTHREADS)
+ #ifndef _THREAD_SAFE
+@@ -241,7 +241,7 @@ typedef size_t socklen_t;
+ #include <netinet/tcp.h>
+
+ /* socklen_t is defined in FreeBSD 3.4-STABLE, 4.0-RELEASE and above */
+-#if (P_FREEBSD <= 340000)
++#if defined(P_FREEBSD) && (P_FREEBSD <= 340000)
+ typedef int socklen_t;
+ #endif
+
diff --git a/devel/pwlib/patches/patch-at b/devel/pwlib/patches/patch-at
new file mode 100644
index 00000000000..95dbc069fe5
--- /dev/null
+++ b/devel/pwlib/patches/patch-at
@@ -0,0 +1,13 @@
+$NetBSD: patch-at,v 1.1 2006/01/08 04:57:55 joerg Exp $
+
+--- src/ptlib/unix/pipechan.cxx.orig 2006-01-08 03:19:37.000000000 +0000
++++ src/ptlib/unix/pipechan.cxx
+@@ -298,7 +298,7 @@ BOOL PPipeChannel::PlatformOpen(const PS
+
+ // Set up new environment if one specified.
+ if (environment != NULL) {
+-#if defined(P_SOLARIS) || defined(P_FREEBSD) || defined(P_OPENBSD) || defined (P_NETBSD) || defined(__BEOS__) || defined(P_MACOSX) || defined(P_MACOS) || defined (P_AIX) || defined(P_IRIX) || defined(P_QNX)
++#if defined(P_SOLARIS) || defined(P_FREEBSD) || defined(P_OPENBSD) || defined (P_NETBSD) || defined(__BEOS__) || defined(P_MACOSX) || defined(P_MACOS) || defined (P_AIX) || defined(P_IRIX) || defined(P_QNX) || defined(P_DRAGONFLY)
+ extern char ** environ;
+ # if defined(P_MACOSX)
+ # define environ (*_NSGetEnviron())
diff --git a/devel/pwlib/patches/patch-au b/devel/pwlib/patches/patch-au
new file mode 100644
index 00000000000..464edef4281
--- /dev/null
+++ b/devel/pwlib/patches/patch-au
@@ -0,0 +1,31 @@
+$NetBSD: patch-au,v 1.1 2006/01/08 04:57:55 joerg Exp $
+
+--- src/ptlib/unix/serchan.cxx.orig 2006-01-08 03:19:59.000000000 +0000
++++ src/ptlib/unix/serchan.cxx
+@@ -112,7 +112,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
+@@ -166,7 +166,7 @@ void PSerialChannel::Construct()
+ Termio.c_iflag = IGNBRK | IGNPAR;
+ Termio.c_cflag = CS8 | CSTOPB | CREAD | CLOCAL;
+
+-#if defined(P_FREEBSD) || defined(P_OPENBSD) || defined (P_NETBSD) || defined(P_MACOSX) || defined(P_MACOS)
++#if defined(P_FREEBSD) || defined(P_OPENBSD) || defined (P_NETBSD) || defined(P_MACOSX) || defined(P_MACOS) || defined(P_DRAGONFLY)
+ Termio.c_ispeed = Termio.c_ospeed = B9600;
+ #else
+ Termio.c_cflag |= B9600;
+@@ -423,7 +423,7 @@ BOOL PSerialChannel::SetSpeed(DWORD newB
+ // save new baud rate
+ baudRate = newBaudRate;
+
+-#if defined(P_FREEBSD) || defined(P_OPENBSD) || defined (P_NETBSD) || defined(P_MACOSX) || defined(P_MACOS)
++#if defined(P_FREEBSD) || defined(P_OPENBSD) || defined (P_NETBSD) || defined(P_MACOSX) || defined(P_MACOS) || defined(P_DRAGONFLY)
+ // The BSD way
+ Termio.c_ispeed = baud;
+ Termio.c_ospeed = baud;
diff --git a/devel/pwlib/patches/patch-av b/devel/pwlib/patches/patch-av
new file mode 100644
index 00000000000..88ed1cf954b
--- /dev/null
+++ b/devel/pwlib/patches/patch-av
@@ -0,0 +1,13 @@
+$NetBSD: patch-av,v 1.1 2006/01/08 04:57:55 joerg Exp $
+
+--- src/ptlib/unix/switch.cxx.orig 2006-01-08 03:21:07.000000000 +0000
++++ src/ptlib/unix/switch.cxx
+@@ -89,7 +89,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>
diff --git a/devel/pwlib/patches/patch-aw b/devel/pwlib/patches/patch-aw
new file mode 100644
index 00000000000..f1b9f7c73c2
--- /dev/null
+++ b/devel/pwlib/patches/patch-aw
@@ -0,0 +1,13 @@
+$NetBSD: patch-aw,v 1.1 2006/01/08 04:57:55 joerg Exp $
+
+--- src/ptlib/unix/tlib.cxx.orig 2006-01-08 03:21:22.000000000 +0000
++++ src/ptlib/unix/tlib.cxx
+@@ -265,7 +265,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(__BEOS__) || defined(P_IRIX) || defined(P_QNX)
++#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(__BEOS__) || defined(P_IRIX) || defined(P_QNX) || defined(P_DRAGONFLY)
+ #include <sys/utsname.h>
+ #define HAS_UNAME
+ #elif defined(P_RTEMS)
diff --git a/devel/pwlib/patches/patch-ba b/devel/pwlib/patches/patch-ba
index df4c61cfb04..4c3b2bebfbc 100644
--- a/devel/pwlib/patches/patch-ba
+++ b/devel/pwlib/patches/patch-ba
@@ -1,8 +1,51 @@
-$NetBSD: patch-ba,v 1.2 2004/10/09 14:01:03 mjl Exp $
+$NetBSD: patch-ba,v 1.3 2006/01/08 04:57:55 joerg Exp $
--- src/ptclib/pssl.cxx.orig 2004-10-09 13:31:30.000000000 +0200
+++ src/ptclib/pssl.cxx 2004-10-09 13:33:39.000000000 +0200
-@@ -743,7 +743,7 @@
+@@ -297,14 +297,14 @@ PSSLPrivateKey::PSSLPrivateKey(const PFi
+
+ PSSLPrivateKey::PSSLPrivateKey(const BYTE * keyData, PINDEX keySize)
+ {
+- key = d2i_AutoPrivateKey(NULL, (BYTE **)&keyData, keySize);
++ key = d2i_AutoPrivateKey(NULL, &keyData, keySize);
+ }
+
+
+ PSSLPrivateKey::PSSLPrivateKey(const PBYTEArray & keyData)
+ {
+ const BYTE * keyPtr = keyData;
+- key = d2i_AutoPrivateKey(NULL, (BYTE **)&keyPtr, keyData.GetSize());
++ key = d2i_AutoPrivateKey(NULL, &keyPtr, keyData.GetSize());
+ }
+
+
+@@ -472,14 +472,14 @@ PSSLCertificate::PSSLCertificate(const P
+
+ PSSLCertificate::PSSLCertificate(const BYTE * certData, PINDEX certSize)
+ {
+- certificate = d2i_X509(NULL, (unsigned char **)&certData, certSize);
++ certificate = d2i_X509(NULL, &certData, certSize);
+ }
+
+
+ PSSLCertificate::PSSLCertificate(const PBYTEArray & certData)
+ {
+ const BYTE * certPtr = certData;
+- certificate = d2i_X509(NULL, (unsigned char **)&certPtr, certData.GetSize());
++ certificate = d2i_X509(NULL, &certPtr, certData.GetSize());
+ }
+
+
+@@ -489,7 +489,7 @@ PSSLCertificate::PSSLCertificate(const P
+ PBase64::Decode(certStr, certData);
+ if (certData.GetSize() > 0) {
+ const BYTE * certPtr = certData;
+- certificate = d2i_X509(NULL, (unsigned char **)&certPtr, certData.GetSize());
++ certificate = d2i_X509(NULL, &certPtr, certData.GetSize());
+ }
+ else
+ certificate = NULL;
+@@ -743,7 +743,7 @@ PSSLDiffieHellman::~PSSLDiffieHellman()
DH_free(dh);
}
diff --git a/devel/pwlib/patches/patch-bb b/devel/pwlib/patches/patch-bb
index 93c70a18a70..52b83892502 100644
--- a/devel/pwlib/patches/patch-bb
+++ b/devel/pwlib/patches/patch-bb
@@ -1,16 +1,27 @@
-$NetBSD: patch-bb,v 1.2 2004/10/09 14:01:03 mjl Exp $
+$NetBSD: patch-bb,v 1.3 2006/01/08 04:57:55 joerg Exp $
--- src/ptlib/unix/socket.cxx.orig 2004-08-24 09:08:11.000000000 +0200
+++ src/ptlib/unix/socket.cxx 2004-10-09 13:40:31.000000000 +0200
-@@ -349,6 +349,7 @@
+@@ -331,7 +331,7 @@
+ #define ifr_macaddr ifr_hwaddr.sa_data
#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_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>
+@@ -348,7 +348,8 @@
+
+ #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/param.h>
#include <sys/sysctl.h>
#endif
-@@ -762,7 +763,7 @@
+@@ -762,7 +763,7 @@ BOOL PTCPSocket::Read(void * buf, PINDEX
}
@@ -19,3 +30,21 @@ $NetBSD: patch-bb,v 1.2 2004/10/09 14:01:03 mjl Exp $
int PSocket::os_recvfrom(
void * buf, // Data to be written as URGENT TCP data.
+@@ -1268,7 +1269,7 @@ BOOL PIPSocket::GetRouteTable(RouteTable
+ }
+ }
+
+-#elif defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_NETBSD) || defined(P_MACOSX) || defined(P_QNX)
++#elif defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_NETBSD) || defined(P_MACOSX) || defined(P_QNX) || defined(P_DRAGONFLY)
+
+ BOOL 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);
+@@ -1806,7 +1807,7 @@ BOOL PIPSocket::GetInterfaceTable(Interf
+ }
+ }
+
+-#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) \