]> git.sesse.net Git - vlc/commitdiff
Contribs: add SDL
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 4 Jul 2011 22:19:52 +0000 (00:19 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 4 Jul 2011 22:19:52 +0000 (00:19 +0200)
contrib/src/sdl/SHA512SUMS [new file with mode: 0644]
contrib/src/sdl/rules.mak [new file with mode: 0644]

diff --git a/contrib/src/sdl/SHA512SUMS b/contrib/src/sdl/SHA512SUMS
new file mode 100644 (file)
index 0000000..0e85d0d
--- /dev/null
@@ -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 (file)
index 0000000..91d88ef
--- /dev/null
@@ -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 $@