import commoncpp

Common C++ offers a highly portable C++ application development
framework.  Common C++ provides classes for threads, sockets, daemon
management, system logging, object synchronization, realtime network
development, persistant object management, and file access.

from brad@

ok ajacoutot@
This commit is contained in:
jakemsr 2007-12-08 05:22:09 +00:00
parent 592d3e88e7
commit b5de437bf0
8 changed files with 147 additions and 0 deletions

38
devel/commoncpp/Makefile Normal file
View File

@ -0,0 +1,38 @@
# $OpenBSD: Makefile,v 1.1.1.1 2007/12/08 05:22:09 jakemsr Exp $
COMMENT= GNU project portable class framework for C++
DISTNAME= commoncpp2-1.5.7
PKGNAME= commoncpp-1.5.7
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU:=commoncpp/}
SHARED_LIBS+= ccext2 0.0 # 0.7
SHARED_LIBS+= ccgnu2 0.0 # 0.7
HOMEPAGE= http://wiki.gnutelephony.org/index.php/GNU_Common_CPP_Framework
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= crypto ssl z
USE_LIBTOOL= Yes
CONFIGURE_STYLE= autoconf
AUTOCONF_VERSION= 2.59
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
--without-nat \
--with-openssl
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
ac_cv_path_DOXYGEN=no \
ac_cv_header_gnutls_gnutls_h=no
do-regress:
cd ${WRKDIST}/tests && ${SETENV} ${MAKE_ENV} ${MAKE} && \
./test.sh
.include <bsd.port.mk>

5
devel/commoncpp/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (commoncpp2-1.5.7.tar.gz) = bd85e157e1f4f457e9137c59d40a13fb
RMD160 (commoncpp2-1.5.7.tar.gz) = 897076e80a9d6acca1c7f11dd1dc94c3a32fc73b
SHA1 (commoncpp2-1.5.7.tar.gz) = f0d522bbbba279c2c5520fa411c78ea7b4814846
SHA256 (commoncpp2-1.5.7.tar.gz) = 95b0e86c27db1ec0b79abe4097f4449f1e15dde1870202ead0551c506269a504
SIZE (commoncpp2-1.5.7.tar.gz) = 858598

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-m4_ost_pthread_m4,v 1.1.1.1 2007/12/08 05:22:09 jakemsr Exp $
--- m4/ost_pthread.m4.orig Sat Jul 21 22:26:34 2007
+++ m4/ost_pthread.m4 Sat Jul 21 22:26:49 2007
@@ -232,7 +232,7 @@ AC_LANG_RESTORE
ost_cv_rt_library="-lrt"
AC_DEFINE(HAVE_HIRES_TIMER, [1], [have hires])
],[
- AC_CHECK_FUNCS(clock_gettime,[
+ AC_CHECK_FUNCS(clock_nanosleep,[
AC_DEFINE(HAVE_HIRES_TIMER, [1], [have hires])
])
])

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-m4_ost_ssl_m4,v 1.1.1.1 2007/12/08 05:22:09 jakemsr Exp $
--- m4/ost_ssl.m4.orig Sun Oct 14 02:17:46 2007
+++ m4/ost_ssl.m4 Sun Oct 14 02:25:45 2007
@@ -40,7 +40,7 @@ AC_DEFUN([OST_LIB_SSL],[
# ])
# ],[
AC_CHECK_HEADER(openssl/ssl.h,[
- SSL_LIBS="-lssl"
+ SSL_LIBS="-lssl -lcrypto"
ost_cv_ssl=true
AC_DEFINE(CCXX_OPENSSL, [1], [define openssl])
AC_DEFINE(CCXX_SSL, [OPENSSL], [defines ssl])

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-src_Makefile_in,v 1.1.1.1 2007/12/08 05:22:09 jakemsr Exp $
--- src/Makefile.in.orig Tue Jun 12 08:43:50 2007
+++ src/Makefile.in Sat Jul 21 22:09:49 2007
@@ -321,7 +321,7 @@ aclocal_DATA = ost_check2.m4
scriptdir = $(bindir)
script_DATA = ccgnu2-config
libccgnu2_la_LIBADD = @THREAD_LIBS@
-libccgnu2_la_LDFLAGS = $(RELEASE) $(SHARED_FLAGS)
+libccgnu2_la_LDFLAGS = $(LT_VERSION) $(SHARED_FLAGS)
noinst_DATA = @STAGE2@
libccgnu2_la_SOURCES = thread.cpp mutex.cpp semaphore.cpp threadkey.cpp \
friends.cpp event.cpp slog.cpp dir.cpp file.cpp inaddr.cpp \
@@ -331,7 +331,7 @@ libccgnu2_la_SOURCES = thread.cpp mutex.cpp semaphore.
nat.cpp runlist.cpp assoc.cpp pointer.cpp linked.cpp map.cpp \
cidr.cpp private.h nat.h
-@EXTRAS_TRUE@libccext2_la_LDFLAGS = @BASE_LIB@ @THREAD_LIBS@ @SSL_LIBS@ @ZSTREAM_LIBS@ $(RELEASE) $(SHARED_FLAGS)
+@EXTRAS_TRUE@libccext2_la_LDFLAGS = @BASE_LIB@ @THREAD_LIBS@ @SSL_LIBS@ @ZSTREAM_LIBS@ $(LT_VERSION) $(SHARED_FLAGS)
@EXTRAS_TRUE@@GETOPT_LONG_TRUE@optincludedir = $(includedir)/cc++2
@EXTRAS_TRUE@@GETOPT_LONG_TRUE@optinclude_HEADERS = getopt.h
@EXTRAS_TRUE@@GETOPT_LONG_FALSE@libccext2_la_SOURCES = numbers.cpp zstream.cpp socketport.cpp \

View File

@ -0,0 +1,4 @@
Common C++ offers a highly portable C++ application development
framework. Common C++ provides classes for threads, sockets, daemon
management, system logging, object synchronization, realtime network
development, persistant object management, and file access.

View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2007/12/08 05:22:09 jakemsr Exp $
@lib lib/libccext2.so.${LIBccext2_VERSION}
@lib lib/libccgnu2.so.${LIBccgnu2_VERSION}

52
devel/commoncpp/pkg/PLIST Normal file
View File

@ -0,0 +1,52 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2007/12/08 05:22:09 jakemsr Exp $
%%SHARED%%
bin/ccgnu2-config
include/cc++/
include/cc++/address.h
include/cc++/buffer.h
include/cc++/cmdoptns.h
include/cc++/common.h
include/cc++/config.h
include/cc++/counter.h
include/cc++/digest.h
include/cc++/exception.h
include/cc++/export.h
include/cc++/file.h
include/cc++/functions.h
include/cc++/mime.h
include/cc++/misc.h
include/cc++/missing.h
include/cc++/network.h
include/cc++/numbers.h
include/cc++/objcount.h
include/cc++/object.h
include/cc++/objlink.h
include/cc++/objmap.h
include/cc++/objsync.h
include/cc++/oststring.h
include/cc++/persist.h
include/cc++/pointer.h
include/cc++/process.h
include/cc++/serial.h
include/cc++/slog.h
include/cc++/socket.h
include/cc++/socketport.h
include/cc++/strchar.h
include/cc++/string.h
include/cc++/template.h
include/cc++/thread.h
include/cc++/tokenizer.h
include/cc++/unix.h
include/cc++/url.h
include/cc++/xml.h
include/cc++/zstream.h
@info info/commoncpp2.info
lib/libccext2.a
lib/libccext2.la
lib/libccgnu2.a
lib/libccgnu2.la
lib/pkgconfig/
lib/pkgconfig/libccext2.pc
lib/pkgconfig/libccgnu2.pc
share/aclocal/
share/aclocal/ost_check2.m4