[include] autotools.mk: -B is not passed on by autoreconf, use -I instead - fixes...
[openwrt.git] / package / goldfish-qemu / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=goldfish-qemu
11 PKG_REV:=2b8ea29e2bd12f876a4d06647e6077bf72de567e
12 PKG_VERSION:=20090429
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=git://android.git.kernel.org/platform/external/qemu
17 PKG_SOURCE_PROTO:=git
18 PKG_SOURCE_VERSION:=$(PKG_REV)
19 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
20 PKG_TARGETS:=bin
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/goldfish-qemu
25 SECTION:=emulator
26 CATEGORY:=Emulators
27 DEPENDS:=@TARGET_goldfish
28 TITLE:=A modified version of the Google Android Emulator
29 URL:=http://www.android.com/
30 endef
31
32 LIBSDL_PATCHED:=sdl-1.2.12-android-20080919
33
34 define Download/libsdl-patched
35 FILE:=$(LIBSDL_PATCHED).tar.gz
36 URL:=http://android.git.kernel.org/pub
37 MD5SUM:=22df8cbb2ecb811938eba8410e861650
38 endef
39 $(eval $(call Download,libsdl-patched))
40
41 Build/Exports=
42
43 define Build/Prepare
44 $(call Build/Prepare/Default)
45 zcat $(DL_DIR)/$(LIBSDL_PATCHED).tar.gz | tar x -C $(PKG_BUILD_DIR)
46 endef
47
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; \
52 make all install; \
53 )
54 endef
55
56 define Build/Compile
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 \
60 )
61 $(MAKE) -C $(PKG_BUILD_DIR)
62 endef
63
64 define Package/goldfish-qemu/install
65 $(INSTALL_DIR) $(1)
66 $(CP) $(PKG_BUILD_DIR)/objs/emulator $(1)/
67 $(CP) ./skins $(1)/
68 endef
69
70 $(eval $(call BuildPackage,goldfish-qemu))
This page took 0.047866 seconds and 5 git commands to generate.