2 # Copyright (C) 2006 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
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=git://android.git.kernel.org/platform/external/qemu
17 PKG_SOURCE_VERSION:=2b8ea29e2bd12f876a4d06647e6077bf72de567e
18 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
21 include $(INCLUDE_DIR)/package.mk
23 define Package/goldfish-qemu
26 DEPENDS:=@TARGET_goldfish
27 TITLE:=A modified version of the Google Android Emulator
28 URL:=http://www.android.com/
31 LIBSDL_PATCHED:=sdl-1.2.12-android-20080919
33 define Download/libsdl-patched
34 FILE:=$(LIBSDL_PATCHED).tar.gz
35 URL:=http://android.git.kernel.org/pub
36 MD5SUM:=22df8cbb2ecb811938eba8410e861650
38 $(eval $(call Download,libsdl-patched))
43 $(call Build/Prepare/Default)
44 zcat $(DL_DIR)/$(LIBSDL_PATCHED).tar.gz | tar x -C $(PKG_BUILD_DIR)
47 define Build/Configure
48 [ -x $(PKG_BUILD_DIR)/libsdl/bin/sdl-config ] || ( \
49 cd $(PKG_BUILD_DIR)/$(LIBSDL_PATCHED); \
50 ./android-configure --prefix=$(PKG_BUILD_DIR)/libsdl; \
56 (cd $(PKG_BUILD_DIR); \
57 [ -f $(PKG_BUILD_DIR)/objs/config.make ] || \
58 ./android-configure.sh --sdl-config=$(PKG_BUILD_DIR)/libsdl/bin/sdl-config \
60 $(MAKE) -C $(PKG_BUILD_DIR)
63 define Package/goldfish-qemu/install
65 $(CP) $(PKG_BUILD_DIR)/objs/emulator $(1)/
69 $(eval $(call BuildPackage,goldfish-qemu))