[vlmc-devel] contribs: Import VLC's SDL rules

Hugo Beauzée-Luyssen git at videolan.org
Tue Aug 2 01:00:22 CEST 2016


vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Jul 18 09:29:10 2016 +0200| [f9c4e682162ebe5ebbc45c190ea50fb9bcbd8372] | committer: Hugo Beauzée-Luyssen

contribs: Import VLC's SDL rules

> https://code.videolan.org/videolan/vlmc/commit/f9c4e682162ebe5ebbc45c190ea50fb9bcbd8372
---

 contribs/src/sdl/rules.mak | 44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

diff --git a/contribs/src/sdl/rules.mak b/contribs/src/sdl/rules.mak
new file mode 100644
index 0000000..89948c9
--- /dev/null
+++ b/contribs/src/sdl/rules.mak
@@ -0,0 +1,44 @@
+# SDL
+
+SDL_VERSION := 1.2.15
+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_pkg,$(SDL_URL),sdl)
+
+.sum-sdl: SDL-$(SDL_VERSION).tar.gz
+
+sdl: SDL-$(SDL_VERSION).tar.gz .sum-sdl
+	$(UNPACK)
+	$(APPLY) $(SRC)/sdl/direct_palette_ref.diff
+	$(MOVE)
+
+SDLCONF := $(HOSTCONF) \
+	--disable-audio \
+	--enable-video \
+	--enable-events \
+	--disable-joystick \
+	--disable-cdrom \
+	--disable-threads \
+	--disable-timers \
+	--disable-file \
+	--disable-assembly \
+	--disable-video-x11 \
+	--disable-video-aalib \
+	--disable-video-dga \
+	--disable-video-fbcon \
+	--disable-video-directfb \
+	--disable-video-ggi \
+	--disable-video-svga \
+	--disable-directx \
+	--disable-sdl-dlopen
+
+.sdl: sdl
+	cd $< && $(HOSTVARS) ./configure $(SDLCONF)
+	cd $< && $(MAKE) install
+	touch $@



More information about the Vlmc-devel mailing list