summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authortonnerre <tonnerre@pkgsrc.org>2010-04-27 23:52:53 +0000
committertonnerre <tonnerre@pkgsrc.org>2010-04-27 23:52:53 +0000
commit88b3a2b1e1adfd67a314dd89c0a2f23216648d64 (patch)
tree0a099c010bec75b1e6e5f0ce78971f5fafba06d3 /devel
parentb3a17b9f62c45fc6f8da90fc260ffab02de9760d (diff)
downloadpkgsrc-88b3a2b1e1adfd67a314dd89c0a2f23216648d64.tar.gz
Import clib version 0.2.2.
The clib provides advanced features to the C programming language, such as dynamically resizing arrays, hash tables or operations like establishing a TCP connection to a string.
Diffstat (limited to 'devel')
-rw-r--r--devel/clib/DESCR3
-rw-r--r--devel/clib/Makefile17
-rw-r--r--devel/clib/PLIST4
-rw-r--r--devel/clib/buildlink3.mk13
-rw-r--r--devel/clib/distinfo9
-rw-r--r--devel/clib/patches/patch-aa17
-rw-r--r--devel/clib/patches/patch-ab13
-rw-r--r--devel/clib/patches/patch-ac13
-rw-r--r--devel/clib/patches/patch-ad11
9 files changed, 100 insertions, 0 deletions
diff --git a/devel/clib/DESCR b/devel/clib/DESCR
new file mode 100644
index 00000000000..71740bb1cd9
--- /dev/null
+++ b/devel/clib/DESCR
@@ -0,0 +1,3 @@
+The clib provides advanced features to the C programming language,
+such as dynamically resizing arrays, hash tables or operations
+like establishing a TCP connection to a string.
diff --git a/devel/clib/Makefile b/devel/clib/Makefile
new file mode 100644
index 00000000000..9ba76595195
--- /dev/null
+++ b/devel/clib/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/04/27 23:52:53 tonnerre Exp $
+
+DISTNAME= clib-0.2.2
+CATEGORIES= devel
+MASTER_SITES= ftp://ftp.ancient-solutions.com/pub/bsdprojects/clib/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= tonnerre@NetBSD.org
+HOMEPAGE= http://clib.ancient-solutions.com/
+COMMENT= Enhanced language features for C
+
+PKG_DESTDIR_SUPPORT= destdir
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/clib/PLIST b/devel/clib/PLIST
new file mode 100644
index 00000000000..bae737e65d6
--- /dev/null
+++ b/devel/clib/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2010/04/27 23:52:53 tonnerre Exp $
+include/clib/clib.h
+include/clib/queue.h
+lib/libclib.la
diff --git a/devel/clib/buildlink3.mk b/devel/clib/buildlink3.mk
new file mode 100644
index 00000000000..1adb0d70129
--- /dev/null
+++ b/devel/clib/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2010/04/27 23:52:53 tonnerre Exp $
+
+BUILDLINK_TREE+= clib
+
+.if !defined(CLIB_BUILDLINK3_MK)
+CLIB_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.clib+= clib>=0.2
+BUILDLINK_ABI_DEPENDS.clib+= clib>=0.2
+BUILDLINK_PKGSRCDIR.clib?= ../../devel/clib
+.endif # CLIB_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -clib
diff --git a/devel/clib/distinfo b/devel/clib/distinfo
new file mode 100644
index 00000000000..ccdbfdd0ee4
--- /dev/null
+++ b/devel/clib/distinfo
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1.1.1 2010/04/27 23:52:53 tonnerre Exp $
+
+SHA1 (clib-0.2.2.tar.bz2) = fa52fb10badd399884ef0572173b638f9da8dc05
+RMD160 (clib-0.2.2.tar.bz2) = deef15e980af658d5f38e341240fc83baf486d65
+Size (clib-0.2.2.tar.bz2) = 386945 bytes
+SHA1 (patch-aa) = 9dfec91e036b589c9bcf3cc23d61859df621965d
+SHA1 (patch-ab) = ffdd731c5e4628daa90364887d4793c3ae64a92f
+SHA1 (patch-ac) = 70d80413dcc4fd427d30f9c0e54ae5a099c5e27b
+SHA1 (patch-ad) = 41cd3192d06dd4a6425d925954e0c44adbfba0a0
diff --git a/devel/clib/patches/patch-aa b/devel/clib/patches/patch-aa
new file mode 100644
index 00000000000..38ecbe789b5
--- /dev/null
+++ b/devel/clib/patches/patch-aa
@@ -0,0 +1,17 @@
+$NetBSD: patch-aa,v 1.1.1.1 2010/04/27 23:52:53 tonnerre Exp $
+
+--- clib_internal.h
++++ clib_internal.h
+@@ -36,6 +36,12 @@
+ #include <assert.h>
+ #endif
+
++#ifdef HAVE_NETINET_IN_H
++#include <netinet/in.h>
++#endif
++#ifdef HAVE_NETINET6_IN6_H
++#include <netinet6/in6.h>
++#endif
+ #ifdef HAVE_SYS_SOCKET_H
+ #include <sys/socket.h>
+ #endif
diff --git a/devel/clib/patches/patch-ab b/devel/clib/patches/patch-ab
new file mode 100644
index 00000000000..4c89dfe61c8
--- /dev/null
+++ b/devel/clib/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2010/04/27 23:52:53 tonnerre Exp $
+
+--- configure.ac
++++ configure.ac
+@@ -40,7 +40,7 @@ AC_CHECK_LIB([nbcompat], [main], [LIBS="-lnbcompat $LIBS"])
+ # Checks for header files.
+ AC_CHECK_HEADERS([string.h strings.h memory.h stdlib.h unistd.h queue.h \
+ sys/types.h sys/queue.h nbcompat/queue.h assert.h stddef.h \
+- sys/socket.h netdb.h])
++ sys/socket.h netdb.h netinet/in.h netinet6/in6.h])
+ CL_IFDEF(SLIST_HEAD, [SLIST_HEAD(name,type)],
+ [struct name { struct type *slh_first; /* first element */ }],
+ [Singly-linked list head])
diff --git a/devel/clib/patches/patch-ac b/devel/clib/patches/patch-ac
new file mode 100644
index 00000000000..8a0860ae1a9
--- /dev/null
+++ b/devel/clib/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1.1.1 2010/04/27 23:52:53 tonnerre Exp $
+
+--- configure.orig 2010-04-27 23:42:59.000000000 +0000
++++ configure
+@@ -6813,7 +6813,7 @@ fi
+
+
+ for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
+- inttypes.h stdint.h unistd.h
++ inttypes.h stdint.h unistd.h netinet/in.h netinet6/in6.h
+ do
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
diff --git a/devel/clib/patches/patch-ad b/devel/clib/patches/patch-ad
new file mode 100644
index 00000000000..b8363a94e0e
--- /dev/null
+++ b/devel/clib/patches/patch-ad
@@ -0,0 +1,11 @@
+$NetBSD: patch-ad,v 1.1.1.1 2010/04/27 23:52:53 tonnerre Exp $
+
+--- config.h.in.orig 2010-04-27 23:46:29.000000000 +0000
++++ config.h.in
+@@ -179,3 +179,6 @@
+ /* Define to the type of an unsigned integer type of width exactly 8 bits if
+ such a type exists and the standard includes do not define it. */
+ #undef uint8_t
++
++#undef HAVE_NETINET_IN_H
++#undef HAVE_NETINET6_IN6_H