summaryrefslogtreecommitdiffstats
path: root/package/sdl_net
diff options
context:
space:
mode:
authorHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>2008-09-24 12:06:59 +0000
committerHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>2008-09-24 12:06:59 +0000
commite40448aa34be9a626a031e893d51177d761a5c57 (patch)
tree5fa9647cac626a3b774523b7335c6584f0803bd0 /package/sdl_net
parent1a66c6c5471d561e9e0d3b5270199787c3bb5e5e (diff)
downloadbuildroot-novena-e40448aa34be9a626a031e893d51177d761a5c57.tar.gz
buildroot-novena-e40448aa34be9a626a031e893d51177d761a5c57.zip
SDL_net: add new package SDL_net
This patch adds a new package SDL_net. SDL_net is a small, low-level, cross-platform network library, that can be used with the Simple DirectMedia Layer library (SDL). http://www.libsdl.org/projects/SDL_net/ Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Diffstat (limited to 'package/sdl_net')
-rw-r--r--package/sdl_net/Config.in8
-rw-r--r--package/sdl_net/sdl_net.mk20
2 files changed, 28 insertions, 0 deletions
diff --git a/package/sdl_net/Config.in b/package/sdl_net/Config.in
new file mode 100644
index 000000000..2001d230f
--- /dev/null
+++ b/package/sdl_net/Config.in
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_SDL_NET
+ bool "SDL_net"
+ depends on BR2_PACKAGE_SDL
+ help
+ SDL_net is a small, low-level, cross-platform network library, that
+ can be used with the Simple DirectMedia Layer library (SDL).
+
+ http://www.libsdl.org/projects/SDL_net/
diff --git a/package/sdl_net/sdl_net.mk b/package/sdl_net/sdl_net.mk
new file mode 100644
index 000000000..144d02df6
--- /dev/null
+++ b/package/sdl_net/sdl_net.mk
@@ -0,0 +1,20 @@
+#############################################################
+#
+# SDL_net: network addon for SDL
+#
+#############################################################
+SDL_NET_VERSION:=1.2.7
+SDL_NET_SITE:=http://www.libsdl.org/projects/SDL_net/release
+
+SDL_NET_CONF_OPT = --localstatedir=/var \
+ --with-sdl-prefix=$(STAGING_DIR)/usr \
+ --with-sdl-exec-prefix=$(STAGING_DIR)/usr
+
+SDL_NET_INSTALL_STAGING = YES
+SDL_NET_INSTALL_STAGING_OPT = DESTDIR=$(STAGING_DIR) install
+
+SDL_NET_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
+
+SDL_NET_DEPENDENCIES = sdl
+
+$(eval $(call AUTOTARGETS,package,SDL_net))