4b16cc90f380b3392a7d358dcd20d41303a4edde
[vlc.git] / contrib / src / sdl / rules.mak
1 # SDL
2
3 SDL_VERSION := 1.2.15
4 SDL_URL := http://www.libsdl.org/release/SDL-$(SDL_VERSION).tar.gz
5
6 #PKGS += sdl
7 ifeq ($(call need_pkg,"sdl"),)
8 PKGS_FOUND += sdl
9 endif
10
11 $(TARBALLS)/SDL-$(SDL_VERSION).tar.gz:
12         $(call download_pkg,$(SDL_URL),sdl)
13
14 .sum-sdl: SDL-$(SDL_VERSION).tar.gz
15
16 sdl: SDL-$(SDL_VERSION).tar.gz .sum-sdl
17         $(UNPACK)
18         $(APPLY) $(SRC)/sdl/direct_palette_ref.diff
19         $(UPDATE_AUTOCONFIG)
20         $(MOVE)
21         mv sdl/config.sub sdl/config.guess sdl/build-scripts
22
23 SDLCONF := $(HOSTCONF) \
24         --disable-audio \
25         --enable-video \
26         --enable-events \
27         --disable-joystick \
28         --disable-cdrom \
29         --disable-threads \
30         --disable-timers \
31         --disable-file \
32         --disable-assembly \
33         --disable-video-x11 \
34         --disable-video-aalib \
35         --disable-video-dga \
36         --disable-video-fbcon \
37         --disable-video-directfb \
38         --disable-video-ggi \
39         --disable-video-svga \
40         --disable-directx \
41         --disable-sdl-dlopen
42
43 .sdl: sdl
44         cd $< && $(HOSTVARS) ./configure $(SDLCONF)
45         cd $< && $(MAKE) install
46         touch $@