1include ../../Makefile.include 2DEPS= ../../Makefile.include Makefile 01-SDL_SetWidthHeight.patch 02-OSX_interpretKeyEvents.patch 03-mavericks-compile.patch 04-fix_external_screen_crash.patch 3 4# lib name, version 5LIBNAME=SDL 6VERSION=1.2.15 7SOURCE=$(LIBNAME)-$(VERSION) 8ARCHIVE=$(SOURCE).tar.gz 9 10# configuration settings 11CONFIGURE=./configure --prefix=$(PREFIX) --disable-video-directfb 12ifneq ($(OS),linux) 13CONFIGURE += --without-x --disable-video-x11 14endif 15 16LIBDYLIB=$(PLATFORM)/build/.libs/lib$(LIBNAME).a 17 18all: .installed-$(PLATFORM) 19 20$(TARBALLS_LOCATION)/$(ARCHIVE): 21 cd $(TARBALLS_LOCATION); $(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(BASE_URL)/$(ARCHIVE) 22 23$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE) $(DEPS) 24 rm -rf $(PLATFORM); mkdir -p $(PLATFORM) 25 cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE) 26 cd $(PLATFORM); patch -p1 -i ../01-SDL_SetWidthHeight.patch 27 cd $(PLATFORM); patch -p1 -i ../02-OSX_interpretKeyEvents.patch 28 cd $(PLATFORM); patch -p1 -i ../03-mavericks-compile.patch 29 cd $(PLATFORM); patch -p1 -i ../04-fix_external_screen_crash.patch 30 cd $(PLATFORM); ./autogen.sh 31 cd $(PLATFORM); $(CONFIGURE) 32 33$(LIBDYLIB): $(PLATFORM) 34 $(MAKE) -j 1 -C $(PLATFORM) 35 36.installed-$(PLATFORM): $(LIBDYLIB) 37 $(MAKE) -C $(PLATFORM) install 38 touch $@ 39 40clean: 41 $(MAKE) -C $(PLATFORM) clean 42 rm -f .installed-$(PLATFORM) 43 44distclean:: 45 rm -rf $(PLATFORM) .installed-$(PLATFORM) 46