diff options
author | mjl <mjl@pkgsrc.org> | 2000-08-25 16:03:42 +0000 |
---|---|---|
committer | mjl <mjl@pkgsrc.org> | 2000-08-25 16:03:42 +0000 |
commit | eb6e78f20192187faed5e00d99a350277bafbe4b (patch) | |
tree | 08259eb597fb23eca1d024d7e2c045e2f09dcbfd /devel/pwlib | |
parent | d22f07232f82c48776cb583e7f131c447179bafc (diff) | |
download | pkgsrc-eb6e78f20192187faed5e00d99a350277bafbe4b.tar.gz |
Initial import of pwlib.
PWLib is a moderately large class library that has its genesis
many years ago as a method to product applications to run on both
Microsoft Windows and Unix X-Windows systems.
Diffstat (limited to 'devel/pwlib')
-rw-r--r-- | devel/pwlib/Makefile | 43 | ||||
-rw-r--r-- | devel/pwlib/files/md5 | 3 | ||||
-rw-r--r-- | devel/pwlib/files/patch-sum | 8 | ||||
-rw-r--r-- | devel/pwlib/patches/patch-aa | 123 | ||||
-rw-r--r-- | devel/pwlib/patches/patch-ab | 61 | ||||
-rw-r--r-- | devel/pwlib/patches/patch-ac | 13 | ||||
-rw-r--r-- | devel/pwlib/patches/patch-ad | 15 | ||||
-rw-r--r-- | devel/pwlib/patches/patch-ae | 14 | ||||
-rw-r--r-- | devel/pwlib/patches/patch-af | 46 | ||||
-rw-r--r-- | devel/pwlib/pkg/COMMENT | 1 | ||||
-rw-r--r-- | devel/pwlib/pkg/DESCR | 13 | ||||
-rw-r--r-- | devel/pwlib/pkg/PLIST | 113 |
12 files changed, 453 insertions, 0 deletions
diff --git a/devel/pwlib/Makefile b/devel/pwlib/Makefile new file mode 100644 index 00000000000..b63e1747d4c --- /dev/null +++ b/devel/pwlib/Makefile @@ -0,0 +1,43 @@ +# $NetBSD: Makefile,v 1.1.1.1 2000/08/25 16:03:42 mjl Exp $ +# + +DISTNAME= pwlib_min_1.1pl17 +PKGNAME= pwlib-1.1pl17 +CATEGORIES= devel +MASTER_SITES= http://www.openh323.org/bin/ \ + http://www.au.openh323.org/bin/ \ + http://www.au2.openh323.org/bin/ \ + http://www.us1.openh323.org/bin/ \ + http://www.us2.openh323.org/bin/ \ + http://www.ru.openh323.org/bin/ \ + http://www.de.openh323.org/bin/ \ + http://www.at.openh323.org/bin/ \ + http://www.cz.openh323.org/bin/ \ + http://www.pl.openh323.org/bin/ + +MAINTAINER= packages@netbsd.org +HOMEPAGE= http://www.openh323.org/ + +DEPENDS+= unproven-pthreads:../../devel/unproven-pthreads + +WRKSRC= ${WRKDIR}/pwlib + +USE_GMAKE= yes +USE_LIBTOOL= yes + +pre-build: + -cd ${WRKSRC}; ${LN} -f -s .. share + +do-build: + cd ${WRKSRC}; env PWLIBDIR=`pwd` ${GMAKE} opt + +do-install: + cd ${WRKSRC}; env PWLIBDIR=`pwd` ${GMAKE} install; + ${MKDIR} ${PREFIX}/include/ptclib ${PREFIX}/include/ptlib/unix/ptlib + cd ${WRKSRC}/include; for f in `find . -name CVS -prune -o -type f -print` ; \ + do ${BSD_INSTALL_DATA} $$f ${PREFIX}/include/`dirname $$f`; done + ${MKDIR} ${PREFIX}/share/pwlib/make + cd ${WRKSRC}/make; for f in unix.mak common.mak lib.mak ptlib.mak ; \ + do ${BSD_INSTALL_DATA} $$f ${PREFIX}/share/pwlib/make; done + +.include "../../mk/bsd.pkg.mk" diff --git a/devel/pwlib/files/md5 b/devel/pwlib/files/md5 new file mode 100644 index 00000000000..a354e3c403a --- /dev/null +++ b/devel/pwlib/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 2000/08/25 16:03:42 mjl Exp $ + +MD5 (pwlib_min_1.1pl17.tar.gz) = 4089db2aafb42cd019b8d96e9b4407a6 diff --git a/devel/pwlib/files/patch-sum b/devel/pwlib/files/patch-sum new file mode 100644 index 00000000000..e13ff231052 --- /dev/null +++ b/devel/pwlib/files/patch-sum @@ -0,0 +1,8 @@ +$NetBSD: patch-sum,v 1.1.1.1 2000/08/25 16:03:42 mjl Exp $ + +MD5 (patch-aa) = d03e041c0a8a3e8dc33ef93f29d56354 +MD5 (patch-ab) = cf3b873bee3676e975d4605f7d2c6a9f +MD5 (patch-ac) = f3b5ecbf024aa01f76d37ef9f6233102 +MD5 (patch-ad) = fe6ad704d70a477532e685e653d9a8e2 +MD5 (patch-ae) = 8e35918b6974ef55079c0407677362ec +MD5 (patch-af) = 70eab357bd9f2a17f6f02c84ec4ad9e0 diff --git a/devel/pwlib/patches/patch-aa b/devel/pwlib/patches/patch-aa new file mode 100644 index 00000000000..c1b7be31711 --- /dev/null +++ b/devel/pwlib/patches/patch-aa @@ -0,0 +1,123 @@ +$NetBSD: patch-aa,v 1.1.1.1 2000/08/25 16:03:42 mjl Exp $ + +*** make/unix.mak.orig Mon Jun 26 13:17:20 2000 +--- make/unix.mak Thu Aug 24 23:01:20 2000 +*************** +*** 494,506 **** + STDCCFLAGS += -m486 + endif + + STDCCFLAGS += -DP_NETBSD + LDLIBS += -lossaudio + + ifdef P_PTHREADS + STDCCFLAGS += -I/usr/pkg/pthreads/include +! LDFLAGS += -L/usr/pkg/pthreads/lib +! LDLIBS += -lpthread + CC := /usr/pkg/pthreads/bin/pgcc + CPLUS := /usr/pkg/pthreads/bin/pg++ + endif +--- 494,508 ---- + STDCCFLAGS += -m486 + endif + ++ P_SHAREDLIB=1 ++ + STDCCFLAGS += -DP_NETBSD + LDLIBS += -lossaudio + + ifdef P_PTHREADS + STDCCFLAGS += -I/usr/pkg/pthreads/include +! LDFLAGS += +! LDLIBS += /usr/pkg/pthreads/lib/libpthread.so + CC := /usr/pkg/pthreads/bin/pgcc + CPLUS := /usr/pkg/pthreads/bin/pg++ + endif +*************** +*** 667,673 **** + endif + + ifndef INSTALL +! INSTALL := install + endif + + ifndef AR +--- 669,675 ---- + endif + + ifndef INSTALL +! INSTALL := ${LIBTOOL} --mode=install ${BSD_INSTALL_PROGRAM} + endif + + ifndef AR +*************** +*** 708,714 **** + ifeq ($(P_SHAREDLIB),0) + LIB_SUFFIX = a + else +! LIB_SUFFIX = so + endif + + ifndef LIB_TYPE +--- 710,716 ---- + ifeq ($(P_SHAREDLIB),0) + LIB_SUFFIX = a + else +! LIB_SUFFIX = la + endif + + ifndef LIB_TYPE +*************** +*** 716,722 **** + endif + + ifndef INSTALL_DIR +! INSTALL_DIR = /usr/local + endif + + ifndef INSTALLBIN_DIR +--- 718,724 ---- + endif + + ifndef INSTALL_DIR +! INSTALL_DIR = ${PREFIX} + endif + + ifndef INSTALLBIN_DIR +*************** +*** 785,791 **** + PW_LIBDIR = $(PWLIBDIR)/lib + + # set name of the PT library +! PTLIB_BASE = pt_$(PLATFORM_TYPE)_$(OBJ_SUFFIX) + PTLIB_FILE = lib$(PTLIB_BASE)$(LIB_TYPE).$(LIB_SUFFIX) + PT_OBJBASE = obj_$(PLATFORM_TYPE)_$(OBJ_SUFFIX) + PT_OBJDIR = $(PW_LIBDIR)/$(PT_OBJBASE) +--- 787,794 ---- + PW_LIBDIR = $(PWLIBDIR)/lib + + # set name of the PT library +! # PTLIB_BASE = pt_$(PLATFORM_TYPE)_$(OBJ_SUFFIX) +! PTLIB_BASE = pt + PTLIB_FILE = lib$(PTLIB_BASE)$(LIB_TYPE).$(LIB_SUFFIX) + PT_OBJBASE = obj_$(PLATFORM_TYPE)_$(OBJ_SUFFIX) + PT_OBJDIR = $(PW_LIBDIR)/$(PT_OBJBASE) +*************** +*** 849,856 **** + + + # add library directory to library path and include the library +! LDFLAGS += -L$(PW_LIBDIR) + +! LDLIBS += -l$(PTLIB_BASE)$(LIB_TYPE) + + # End of unix.mak +--- 852,859 ---- + + + # add library directory to library path and include the library +! LDFLAGS += + +! LDLIBS += ../../lib/lib$(PTLIB_BASE)$(LIB_TYPE).la + + # End of unix.mak diff --git a/devel/pwlib/patches/patch-ab b/devel/pwlib/patches/patch-ab new file mode 100644 index 00000000000..6f52ca78d90 --- /dev/null +++ b/devel/pwlib/patches/patch-ab @@ -0,0 +1,61 @@ +$NetBSD: patch-ab,v 1.1.1.1 2000/08/25 16:03:42 mjl Exp $ + +--- make/lib.mak.orig Fri May 19 03:26:31 2000 ++++ make/lib.mak Thu Aug 24 21:21:28 2000 +@@ -49,29 +49,33 @@ + BUILD_NUMBER := 0 + endif + ++ifndef PROG ++CC := ${LIBTOOL} --mode=compile /usr/pkg/pthreads/bin/pgcc ++CPLUS := ${LIBTOOL} --mode=compile /usr/pkg/pthreads/bin/pg++ ++INSTALL := ${LIBTOOL} --mode=install ${BSD_INSTALL_DATA} ++endif ++ + LIBNAME_MAJ = $(LIB_BASENAME).$(MAJOR_VERSION) + LIBNAME_MIN = $(LIBNAME_MAJ).$(MINOR_VERSION) + LIBNAME_PAT = $(LIBNAME_MIN).$(BUILD_NUMBER)$(BUILD_TYPE) + +-$(LIBDIR)/$(LIB_BASENAME): $(LIBDIR)/$(LIBNAME_PAT) +- @rm -f $(LIBDIR)/$(LIB_BASENAME) +- ln -s $(LIBDIR)/$(LIBNAME_PAT) $(LIBDIR)/$(LIB_BASENAME) +- @rm -f $(LIBDIR)/$(LIBNAME_MAJ) +- ln -s $(LIBDIR)/$(LIBNAME_PAT) $(LIBDIR)/$(LIBNAME_MAJ) +- @rm -f $(LIBDIR)/$(LIBNAME_MIN) +- ln -s $(LIBDIR)/$(LIBNAME_PAT) $(LIBDIR)/$(LIBNAME_MIN) ++# $(LIBDIR)/$(LIB_BASENAME): $(LIBDIR)/$(LIBNAME_PAT) ++ # @rm -f $(LIBDIR)/$(LIB_BASENAME) ++ # ln -s $(LIBDIR)/$(LIBNAME_PAT) $(LIBDIR)/$(LIB_BASENAME) ++ # @rm -f $(LIBDIR)/$(LIBNAME_MAJ) ++ # ln -s $(LIBDIR)/$(LIBNAME_PAT) $(LIBDIR)/$(LIBNAME_MAJ) ++ # @rm -f $(LIBDIR)/$(LIBNAME_MIN) ++ # ln -s $(LIBDIR)/$(LIBNAME_PAT) $(LIBDIR)/$(LIBNAME_MIN) + +-$(LIBDIR)/$(LIBNAME_PAT): $(OBJS) ++$(LIBDIR)/${LIB_BASENAME}: $(OBJS) + @if [ ! -d $(LIBDIR) ] ; then mkdir $(LIBDIR) ; fi +- gcc -shared -Wl,-soname,$(LIB_BASENAME).1 -o $(LIBDIR)/$(LIBNAME_PAT) $(OBJS) ++ ${LIBTOOL} --mode=link g++ -o ${LIBDIR}/${LIB_BASENAME:.so=.la} ${OBJS:.o=.lo} \ ++ -rpath ${PREFIX}/lib -version-info ${MAJOR_VERSION}:${MINOR_VERSION} + + CLEAN_FILES += $(LIBDIR)/$(LIBNAME_PAT) $(LIBDIR)/$(LIB_BASENAME) $(LIBDIR)/$(LIBNAME_MAJ) $(LIBDIR)/$(LIBNAME_MIN) + +-install: $(LIBDIR)/$(LIBNAME_PAT) +- $(INSTALL) $(LIBDIR)/$(LIBNAME_PAT) $(INSTALLLIB_DIR)/$(LIBNAME_PAT) +- ln -s $(INSTALLLIB_DIR)/$(LIBNAME_PAT) $(INSTALLLIB_DIR)/$(LIB_BASENAME) +- ln -s $(INSTALLLIB_DIR)/$(LIBNAME_PAT) $(INSTALLLIB_DIR)/$(LIBNAME_MAJ) +- ln -s $(INSTALLLIB_DIR)/$(LIBNAME_PAT) $(INSTALLLIB_DIR)/$(LIBNAME_MIN) ++install: $(LIBDIR)/$(LIB_BASENAME) ++ $(INSTALL) $(LIBDIR)/$(LIB_BASENAME) $(INSTALLLIB_DIR) + + else + +@@ -81,7 +85,7 @@ + $(AR) rc $(LIBDIR)/$(LIB_BASENAME) $(OBJS) + $(RANLIB) $(LIBDIR)/$(LIB_BASENAME) + else +- $(AR) rcs $(LIBDIR)/$(LIB_BASENAME) $(OBJS) ++ # $(AR) rcs $(LIBDIR)/$(LIB_BASENAME) $(OBJS) + endif + + CLEAN_FILES += $(LIBDIR)/$(LIB_BASENAME) diff --git a/devel/pwlib/patches/patch-ac b/devel/pwlib/patches/patch-ac new file mode 100644 index 00000000000..a200fd82013 --- /dev/null +++ b/devel/pwlib/patches/patch-ac @@ -0,0 +1,13 @@ +$NetBSD: patch-ac,v 1.1.1.1 2000/08/25 16:03:42 mjl Exp $ + +--- make/common.mak.orig Wed Aug 23 22:49:37 2000 ++++ make/common.mak Wed Aug 23 23:05:10 2000 +@@ -213,7 +213,7 @@ + endif + + $(TARGET): $(OBJS) $(TARGET_LIBS) +- $(CPLUS) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(LDLIBS) ++ ${LIBTOOL} --mode=link $(CPLUS) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(LDLIBS) + + ifdef DEBUG + diff --git a/devel/pwlib/patches/patch-ad b/devel/pwlib/patches/patch-ad new file mode 100644 index 00000000000..572e6203682 --- /dev/null +++ b/devel/pwlib/patches/patch-ad @@ -0,0 +1,15 @@ +$NetBSD: patch-ad,v 1.1.1.1 2000/08/25 16:03:42 mjl Exp $ + +--- Makefile.orig Wed Aug 23 23:38:10 2000 ++++ Makefile Wed Aug 23 23:53:35 2000 +@@ -130,6 +130,10 @@ + bothdepend : + $(foreach dir,$(SUBDIRS),$(MAKE) -C $(dir) bothdepend ;) + ++install : ++ $(MAKE) -C src/ptlib/$(TARGETDIR) install ++ $(MAKE) -C tools/asnparser install ++ + ptlib: + $(MAKE) -C src/ptlib/$(TARGETDIR) both + diff --git a/devel/pwlib/patches/patch-ae b/devel/pwlib/patches/patch-ae new file mode 100644 index 00000000000..10b05ed964b --- /dev/null +++ b/devel/pwlib/patches/patch-ae @@ -0,0 +1,14 @@ +$NetBSD: patch-ae,v 1.1.1.1 2000/08/25 16:03:42 mjl Exp $ + +--- make/ptlib.mak.orig Thu Aug 24 20:11:07 2000 ++++ make/ptlib.mak Thu Aug 24 20:11:41 2000 +@@ -38,7 +38,7 @@ + PWLIBDIR=$(HOME)/pwlib + endif + +-include $(PWLIBDIR)/make/unix.mak +-include $(PWLIBDIR)/make/common.mak ++include $(PWLIBDIR)/share/pwlib/make/unix.mak ++include $(PWLIBDIR)/share/pwlib/make/common.mak + + # End of ptlib.mak diff --git a/devel/pwlib/patches/patch-af b/devel/pwlib/patches/patch-af new file mode 100644 index 00000000000..b308160d23a --- /dev/null +++ b/devel/pwlib/patches/patch-af @@ -0,0 +1,46 @@ +$NetBSD: patch-af,v 1.1.1.1 2000/08/25 16:03:42 mjl Exp $ + +--- include/ptlib/unix/ptlib/pmachdep.h.orig Thu Aug 24 21:41:27 2000 ++++ include/ptlib/unix/ptlib/pmachdep.h Thu Aug 24 21:50:46 2000 +@@ -196,28 +196,33 @@ + /////////////////////////////////////////////////////////////////////////////// + #elif defined(P_NETBSD) + +-#if defined(P_PTHREADS) +-#define _THREAD_SAFE +-#define P_THREAD_SAFE_CLIB +- +-#include <pthread.h> +-#include <resolv.h> /* for pthread's h_errno */ +-#endif +- + #include <stdlib.h> + #include <paths.h> + #include <errno.h> + #include <dlfcn.h> + #include <termios.h> + #include <unistd.h> ++#include <sys/endian.h> + #include <sys/fcntl.h> + #include <sys/filio.h> + #include <sys/socket.h> + #include <sys/sockio.h> ++#include <sys/types.h> + #include <sys/ioctl.h> + #include <sys/signal.h> + #include <net/if.h> ++#include <netinet/in.h> + #include <netinet/tcp.h> ++#include <arpa/nameser.h> ++ ++#if defined(P_PTHREADS) ++#define _THREAD_SAFE ++#define P_THREAD_SAFE_CLIB ++ ++#include <pthread.h> ++#include <resolv.h> /* for pthread's h_errno */ ++#endif ++ + + #define HAS_IFREQ + diff --git a/devel/pwlib/pkg/COMMENT b/devel/pwlib/pkg/COMMENT new file mode 100644 index 00000000000..8e393aecbc0 --- /dev/null +++ b/devel/pwlib/pkg/COMMENT @@ -0,0 +1 @@ +Portable Windows Libary diff --git a/devel/pwlib/pkg/DESCR b/devel/pwlib/pkg/DESCR new file mode 100644 index 00000000000..715356787d0 --- /dev/null +++ b/devel/pwlib/pkg/DESCR @@ -0,0 +1,13 @@ +PWLib is a moderately large class library that has its genesis +many years ago as a method to product applications to run on both +Microsoft Windows and Unix X-Windows systems. + +Since then the system has grown to having quite good application +to areas other than mere Windows GUI portability. Classes for I/O +portability, multi-threading portability, aid in producing unix +daemons and NT services portably and all sorts of internet protocols +were added over the years. + +All this over and above basic "container" classes such as arrays, +linear lists, sorted lists (RB Tree) and dictionaries (hash tables) +which were all created before STL became the answer to all our prayers. diff --git a/devel/pwlib/pkg/PLIST b/devel/pwlib/pkg/PLIST new file mode 100644 index 00000000000..4ba13e223b6 --- /dev/null +++ b/devel/pwlib/pkg/PLIST @@ -0,0 +1,113 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2000/08/25 16:03:42 mjl Exp $ +bin/asnparser +include/ptclib/cypher.h +include/ptclib/asner.h +include/ptclib/httpform.h +include/ptclib/ftp.h +include/ptclib/html.h +include/ptclib/http.h +include/ptclib/httpsvc.h +include/ptclib/inetmail.h +include/ptclib/inetprot.h +include/ptclib/ipacl.h +include/ptclib/mime.h +include/ptclib/modem.h +include/ptclib/pasn.h +include/ptclib/psnmp.h +include/ptclib/pssl.h +include/ptclib/random.h +include/ptclib/socks.h +include/ptclib/telnet.h +include/ptclib/url.h +@dirrm include/ptclib +include/ptlib.h +include/ptlib/channel.h +include/ptlib/args.h +include/ptlib/array.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/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/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/semaphor.h +include/ptlib/unix/ptlib/serchan.h +include/ptlib/unix/ptlib/sfile.h +include/ptlib/unix/ptlib/socket.h +include/ptlib/unix/ptlib/sound.h +include/ptlib/unix/ptlib/timer.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/udpsock.h +include/ptlib/unix/ptlib/videoio.h +@dirrm include/ptlib/unix/ptlib +@dirrm include/ptlib/unix +include/ptlib/conchan.h +include/ptlib/config.h +include/ptlib/contain.h +include/ptlib/contain.inl +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/ipdsock.h +include/ptlib/ipsock.h +include/ptlib/ipxsock.h +include/ptlib/lists.h +include/ptlib/mail.h +include/ptlib/mutex.h +include/ptlib/object.h +include/ptlib/osutil.inl +include/ptlib/pdirect.h +include/ptlib/pipechan.h +include/ptlib/pprocess.h +include/ptlib/pstring.h +include/ptlib/ptime.h +include/ptlib/remconn.h +include/ptlib/semaphor.h +include/ptlib/serchan.h +include/ptlib/sfile.h +include/ptlib/socket.h +include/ptlib/sockets.h +include/ptlib/sound.h +include/ptlib/spxsock.h +include/ptlib/svcproc.h +include/ptlib/syncpoint.h +include/ptlib/syncthrd.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/videoio.h +@dirrm include/ptlib +lib/libpt.la +lib/libpt.a +lib/libpt.so +share/pwlib/make/unix.mak +share/pwlib/make/common.mak +share/pwlib/make/lib.mak +share/pwlib/make/ptlib.mak +@dirrm share/pwlib/make +@dirrm share/pwlib |