2 # Copyright (C) 2006-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
10 PKG_NAME:=goldfish-qemu
11 PKG_REV:=2b8ea29e2bd12f876a4d06647e6077bf72de567e
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=git://android.git.kernel.org/platform/external/qemu
18 PKG_SOURCE_VERSION:=$(PKG_REV)
19 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
22 include $(INCLUDE_DIR)/package.mk
24 define Package/goldfish-qemu
27 DEPENDS:=@TARGET_goldfish
28 TITLE:=A modified version of the Google Android Emulator
29 URL:=http://www.android.com/
32 LIBSDL_PATCHED:=sdl-1.2.12-android-20080919
34 define Download/libsdl-patched
35 FILE:=$(LIBSDL_PATCHED).tar.gz
36 URL:=http://android.git.kernel.org/pub
37 MD5SUM:=22df8cbb2ecb811938eba8410e861650
39 $(eval $(call Download,libsdl-patched))
44 $(call Build/Prepare/Default)
45 zcat $(DL_DIR)/$(LIBSDL_PATCHED).tar.gz | tar x -C $(PKG_BUILD_DIR)
48 define Build/Configure
49 [ -x $(PKG_BUILD_DIR)/libsdl/bin/sdl-config ] || ( \
50 cd $(PKG_BUILD_DIR)/$(LIBSDL_PATCHED); \
51 ./android-configure --prefix=$(PKG_BUILD_DIR)/libsdl; \
57 (cd $(PKG_BUILD_DIR); \
58 [ -f $(PKG_BUILD_DIR)/objs/config.make ] || \
59 ./android-configure.sh --sdl-config=$(PKG_BUILD_DIR)/libsdl/bin/sdl-config \
61 $(MAKE) -C $(PKG_BUILD_DIR)
64 define Package/goldfish-qemu/install
66 $(CP) $(PKG_BUILD_DIR)/objs/emulator $(1)/
70 $(eval $(call BuildPackage,goldfish-qemu))