kernel: change debounce logic in the gpio-buttons driver
[openwrt.git] / package / goldfish-qemu / Makefile
1 #
2 # Copyright (C) 2006 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_VERSION:=20090429
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=git://android.git.kernel.org/platform/external/qemu
16 PKG_SOURCE_PROTO:=git
17 PKG_SOURCE_VERSION:=2b8ea29e2bd12f876a4d06647e6077bf72de567e
18 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
19 PKG_TARGETS:=bin
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/goldfish-qemu
24 SECTION:=emulator
25 CATEGORY:=Emulators
26 DEPENDS:=@TARGET_goldfish
27 TITLE:=A modified version of the Google Android Emulator
28 URL:=http://www.android.com/
29 endef
30
31 LIBSDL_PATCHED:=sdl-1.2.12-android-20080919
32
33 define Download/libsdl-patched
34 FILE:=$(LIBSDL_PATCHED).tar.gz
35 URL:=http://android.git.kernel.org/pub
36 MD5SUM:=22df8cbb2ecb811938eba8410e861650
37 endef
38 $(eval $(call Download,libsdl-patched))
39
40 Build/Exports=
41
42 define Build/Prepare
43 $(call Build/Prepare/Default)
44 zcat $(DL_DIR)/$(LIBSDL_PATCHED).tar.gz | tar x -C $(PKG_BUILD_DIR)
45 endef
46
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; \
51 make all install; \
52 )
53 endef
54
55 define Build/Compile
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 \
59 )
60 $(MAKE) -C $(PKG_BUILD_DIR)
61 endef
62
63 define Package/goldfish-qemu/install
64 $(INSTALL_DIR) $(1)
65 $(CP) $(PKG_BUILD_DIR)/objs/emulator $(1)/
66 $(CP) ./skins $(1)/
67 endef
68
69 $(eval $(call BuildPackage,goldfish-qemu))
This page took 0.039566 seconds and 5 git commands to generate.