[vlc-commits] Contribs: add SDL

Jean-Baptiste Kempf git at videolan.org
Tue Jul 5 00:20:37 CEST 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Jul  5 00:19:52 2011 +0200| [72959a536fe9151d62c9418c1a258a101463cfd4] | committer: Jean-Baptiste Kempf

Contribs: add SDL

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=72959a536fe9151d62c9418c1a258a101463cfd4
---

 contrib/src/sdl/SHA512SUMS |    1 +
 contrib/src/sdl/rules.mak  |   37 +++++++++++++++++++++++++++++++++++++
 2 files changed, 38 insertions(+), 0 deletions(-)

diff --git a/contrib/src/sdl/SHA512SUMS b/contrib/src/sdl/SHA512SUMS
new file mode 100644
index 0000000..0e85d0d
--- /dev/null
+++ b/contrib/src/sdl/SHA512SUMS
@@ -0,0 +1 @@
+61ab65661492038d319b83521a27dc80dc71c76b63965ec094c9f53fbb76466e612d119297f9797d62147a0641808136181d0926e8082cb9b3e8d2a8e688a8b2  SDL-1.2.14.tar.gz
diff --git a/contrib/src/sdl/rules.mak b/contrib/src/sdl/rules.mak
new file mode 100644
index 0000000..91d88ef
--- /dev/null
+++ b/contrib/src/sdl/rules.mak
@@ -0,0 +1,37 @@
+# SDL
+
+SDL_VERSION := 1.2.14
+SDL_URL := http://www.libsdl.org/release/SDL-$(SDL_VERSION).tar.gz
+
+PKGS += sdl
+ifeq ($(call need_pkg,"sdl"),)
+PKGS_FOUND += sdl
+endif
+
+$(TARBALLS)/SDL-$(SDL_VERSION).tar.gz:
+	$(call download,$(SDL_URL))
+
+.sum-sdl: SDL-$(SDL_VERSION).tar.gz
+
+sdl: SDL-$(SDL_VERSION).tar.gz .sum-sdl
+	$(UNPACK)
+	$(MOVE)
+
+SDLCONF := $(HOSTCONF) \
+	--disable-video-x11 \
+	--disable-video-aalib \
+	--disable-video-dga \
+	--disable-video-fbcon \
+	--disable-video-directfb \
+	--disable-video-ggi \
+	--disable-video-svga \
+	--disable-directx \
+	--disable-joystick \
+	--disable-cdrom \
+	--disable-threads \
+	--disable-sdl-dlopen
+
+.sdl: sdl
+	cd $< && $(HOSTVARS) ./configure $(SDLCONF)
+	cd $< && $(MAKE) install
+	touch $@



More information about the vlc-commits mailing list