summaryrefslogtreecommitdiff
path: root/net/SDL2_net
diff options
context:
space:
mode:
authorrodent <rodent@pkgsrc.org>2014-02-02 15:56:29 +0000
committerrodent <rodent@pkgsrc.org>2014-02-02 15:56:29 +0000
commit29b10aa491e9b97871ded236ec7971dd43f86e01 (patch)
tree4cd2be68e580ff9f3beb5f26862f297508ddc565 /net/SDL2_net
parent95b93a91e0b2f710069156230418898482d52339 (diff)
downloadpkgsrc-29b10aa491e9b97871ded236ec7971dd43f86e01.tar.gz
Import SDL2_net-2.0.0 as net/SDL2_net.
This is a small sample cross-platform networking library, with a sample chat client and server application. The chat client uses the GUIlib GUI framework library.
Diffstat (limited to 'net/SDL2_net')
-rw-r--r--net/SDL2_net/DESCR3
-rw-r--r--net/SDL2_net/Makefile22
-rw-r--r--net/SDL2_net/PLIST4
-rw-r--r--net/SDL2_net/distinfo5
-rw-r--r--net/SDL2_net/options.mk20
5 files changed, 54 insertions, 0 deletions
diff --git a/net/SDL2_net/DESCR b/net/SDL2_net/DESCR
new file mode 100644
index 00000000000..070ac65fcee
--- /dev/null
+++ b/net/SDL2_net/DESCR
@@ -0,0 +1,3 @@
+This is a small sample cross-platform networking library, with a sample chat
+client and server application. The chat client uses the GUIlib GUI framework
+library.
diff --git a/net/SDL2_net/Makefile b/net/SDL2_net/Makefile
new file mode 100644
index 00000000000..2bdb92e2a97
--- /dev/null
+++ b/net/SDL2_net/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1 2014/02/02 15:56:29 rodent Exp $
+
+DISTNAME= SDL2_net-2.0.0
+CATEGORIES= net
+MASTER_SITES= http://www.libsdl.org/projects/SDL_net/release/
+
+MAINTAINER= rodent@NetBSD.org
+HOMEPAGE= http://www.libsdl.org/projects/SDL_net/
+COMMENT= Small sample cross-platform networking library
+LICENSE= zlib
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+USE_TOOLS+= pkg-config
+USE_LANGUAGES= c c++
+
+PKGCONFIG_OVERRIDE+= SDL2_net.pc.in
+
+.include "options.mk"
+
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/SDL2_net/PLIST b/net/SDL2_net/PLIST
new file mode 100644
index 00000000000..8b90b7a376d
--- /dev/null
+++ b/net/SDL2_net/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2014/02/02 15:56:29 rodent Exp $
+include/SDL2/SDL_net.h
+lib/libSDL2_net.la
+lib/pkgconfig/SDL2_net.pc
diff --git a/net/SDL2_net/distinfo b/net/SDL2_net/distinfo
new file mode 100644
index 00000000000..913b538f5d9
--- /dev/null
+++ b/net/SDL2_net/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2014/02/02 15:56:29 rodent Exp $
+
+SHA1 (SDL2_net-2.0.0.tar.gz) = c7cf473b3adada23171df9f92b3117052eac69fa
+RMD160 (SDL2_net-2.0.0.tar.gz) = dab3e92b2995903c79d5800369690ea0bd9b8b50
+Size (SDL2_net-2.0.0.tar.gz) = 345724 bytes
diff --git a/net/SDL2_net/options.mk b/net/SDL2_net/options.mk
new file mode 100644
index 00000000000..e3a9bd9eb99
--- /dev/null
+++ b/net/SDL2_net/options.mk
@@ -0,0 +1,20 @@
+# $NetBSD: options.mk,v 1.1 2014/02/02 15:56:29 rodent Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.SDL2_net
+PKG_SUPPORTED_OPTIONS= static tests
+PKG_SUGGESTED_OPTIONS+= static
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mstatic)
+CONFIGURE_ARGS+= --enable-static=yes
+.else
+CONFIGURE_ARGS+= --enable-static=no
+.endif
+
+.if !empty(PKG_OPTIONS:Mtests)
+.include "../../graphics/GUIlib/buildlink3.mk"
+CONFIGURE_ARGS+= --enable-gui=yes
+.else
+CONFIGURE_ARGS+= --enable-gui=no --disable-sdltest
+.endif