summaryrefslogtreecommitdiff
path: root/net/SDL_net
diff options
context:
space:
mode:
authorzuntum <zuntum@pkgsrc.org>2001-07-10 09:05:28 +0000
committerzuntum <zuntum@pkgsrc.org>2001-07-10 09:05:28 +0000
commitf6072c8b5ebd95103eb90b56c64dcede3c430260 (patch)
tree59da153e1185ddfd9c7dd4f5ee835fd82f9a09c5 /net/SDL_net
parent7883071892ede759c0c1cdbce9fc79cf5f7e1ad2 (diff)
downloadpkgsrc-f6072c8b5ebd95103eb90b56c64dcede3c430260.tar.gz
Initial import of SDL_net-1.2.0
This is a small sample cross-platform networking library
Diffstat (limited to 'net/SDL_net')
-rw-r--r--net/SDL_net/Makefile19
-rw-r--r--net/SDL_net/buildlink.mk36
-rw-r--r--net/SDL_net/distinfo5
-rw-r--r--net/SDL_net/patches/patch-aa16
-rw-r--r--net/SDL_net/pkg/DESCR1
-rw-r--r--net/SDL_net/pkg/PLIST9
6 files changed, 86 insertions, 0 deletions
diff --git a/net/SDL_net/Makefile b/net/SDL_net/Makefile
new file mode 100644
index 00000000000..e99b5c84b82
--- /dev/null
+++ b/net/SDL_net/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/07/10 09:05:28 zuntum Exp $
+#
+
+DISTNAME= SDL_net-1.2.0
+CATEGORIES= net
+MASTER_SITES= http://www.libsdl.org/projects/SDL_net/release/
+
+MAINTAINER= zuntum@netbsd.org
+HOMEPAGE= http://www.libsdl.org/projects/SDL_net/
+COMMENT= small sample cross-platform networking library
+
+USE_BUILDLINK_ONLY= YES
+GNU_CONFIGURE= YES
+
+USE_LIBTOOL= YES
+LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
+
+.include "../../devel/SDL/buildlink.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/SDL_net/buildlink.mk b/net/SDL_net/buildlink.mk
new file mode 100644
index 00000000000..c87bd28a753
--- /dev/null
+++ b/net/SDL_net/buildlink.mk
@@ -0,0 +1,36 @@
+# $NetBSD: buildlink.mk,v 1.1.1.1 2001/07/10 09:05:28 zuntum Exp $
+#
+# This Makefile fragment is included by packages that use SDL_net.
+#
+# To use this Makefile fragment, simply:
+#
+# (1) Optionally define BUILDLINK_DEPENDS.SDL_net to the dependency pattern
+# for the version of SDL_net desired.
+# (2) Include this Makefile fragment in the package Makefile,
+# (3) Add ${BUILDLINK_DIR}/include to the front of the C preprocessor's header
+# search path, and
+# (4) Add ${BUILDLINK_DIR}/lib to the front of the linker's library search
+# path.
+
+.if !defined(SDL_NET_BUILDLINK_MK)
+SDL_NET_BUILDLINK_MK= # defined
+
+.include "../../mk/bsd.buildlink.mk"
+
+BUILDLINK_DEPENDS.SDL_net?= SDL_net>=1.2.0
+DEPENDS+= ${BUILDLINK_DEPENDS.SDL_net}:../../net/SDL_net
+
+BUILDLINK_PREFIX.SDL_net= ${LOCALBASE}
+BUILDLINK_FILES.SDL_net= include/SDL/SDL_net.h
+BUILDLINK_FILES.SDL_net+= lib/libSDL_net-*
+BUILDLINK_FILES.SDL_net+= lib/libSDL_net.*
+
+.include "../../devel/SDL/buildlink.mk"
+
+BUILDLINK_TARGETS.SDL_net= SDL_net-buildlink
+BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.SDL_net}
+
+pre-configure: ${BUILDLINK_TARGETS.SDL_net}
+SDL_net-buildlink: _BUILDLINK_USE
+
+.endif # SDL_NET_BUILDLINK_MK
diff --git a/net/SDL_net/distinfo b/net/SDL_net/distinfo
new file mode 100644
index 00000000000..4dde325c239
--- /dev/null
+++ b/net/SDL_net/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2001/07/10 09:05:28 zuntum Exp $
+
+SHA1 (SDL_net-1.2.0.tar.gz) = 69c43246c365a1f418cd86d8cc4fd7127976dc0b
+Size (SDL_net-1.2.0.tar.gz) = 156381 bytes
+SHA1 (patch-aa) = 2c1b70ea58eb61ef11c8be16d51b96e3dac1ad69
diff --git a/net/SDL_net/patches/patch-aa b/net/SDL_net/patches/patch-aa
new file mode 100644
index 00000000000..2badafdebc2
--- /dev/null
+++ b/net/SDL_net/patches/patch-aa
@@ -0,0 +1,16 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/07/10 09:05:28 zuntum Exp $
+
+--- SDLnetsys.h.orig Thu Apr 5 23:36:43 2001
++++ SDLnetsys.h
+@@ -48,6 +48,11 @@
+ #include <unistd.h>
+ #include <fcntl.h>
+ #ifndef __BEOS__
++#ifdef __NetBSD__
++#include <sys/types.h>
++#include <sys/socket.h>
++#include <netinet/in.h>
++#endif
+ #include <arpa/inet.h>
+ #endif
+ #include <netinet/in.h>
diff --git a/net/SDL_net/pkg/DESCR b/net/SDL_net/pkg/DESCR
new file mode 100644
index 00000000000..aa5be0313ae
--- /dev/null
+++ b/net/SDL_net/pkg/DESCR
@@ -0,0 +1 @@
+This is a small sample cross-platform networking library
diff --git a/net/SDL_net/pkg/PLIST b/net/SDL_net/pkg/PLIST
new file mode 100644
index 00000000000..3d25a800651
--- /dev/null
+++ b/net/SDL_net/pkg/PLIST
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/07/10 09:05:28 zuntum Exp $
+include/SDL/SDL_net.h
+lib/libSDL_net-1.2.so
+lib/libSDL_net-1.2.so.0
+lib/libSDL_net-1.2.so.0.0
+lib/libSDL_net.a
+lib/libSDL_net.la
+lib/libSDL_net.so
+@dirrm include/SDL