rename <fso> to <fso-frameworkd> because there are more fso-projects going on and...
[openwrt/svn-archive/feeds.git] / phone / fso-frameworkd / 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:=fso-frameworkd
11 PKG_VERSION:=20090609
12 PKG_REV:=74fc21962e9bbc7f2a89c74f12c15ce1b5861bfb
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=git://git.freesmartphone.org/framework.git
17 PKG_SOURCE_PROTO:=git
18 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
19 PKG_SOURCE_VERSION:=$(PKG_REV)
20
21 PKG_BUILD_DEPENDS:=cython python
22
23 include $(INCLUDE_DIR)/package.mk
24 -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
25
26 ifeq ($(CONFIG_TARGET_s3c24xx),y)
27 CONFIG=om_gta02
28 endif
29
30 define Package/fso-frameworkd
31 SECTION:=phone
32 CATEGORY:=Phone
33 TITLE:=framework for the freesmartphone.org DBus API reference implementation
34 DEPENDS:=+python +dbus-python +python-gobject +pyserial +pyyaml \
35 +gst-python +alsa-utils +freerunner-alsa-scenarios
36 URL:=http://www.freesmartphone.org
37 endef
38
39 define Package/fso-frameworkd/description
40 freesmartphone.org is a collaboration platform for open source and open discussion software projects working on interoperability and shared technology for Linux-based SmartPhones
41 endef
42
43 define Build/Compile
44 $(call Build/Compile/PyMod,,install --prefix="$(PKG_INSTALL_DIR)/usr")
45 endef
46
47 define Package/fso-frameworkd/install
48 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR) $(1)/usr/bin $(1)/etc/init.d
49 $(CP) \
50 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
51 $(1)$(PYTHON_PKG_DIR)
52 $(INSTALL_BIN) \
53 $(PKG_INSTALL_DIR)/usr/bin/* \
54 $(1)/usr/bin/
55 $(INSTALL_BIN) ./files/frameworkd.init $(1)/etc/init.d/frameworkd
56 $(CP) \
57 $(PKG_INSTALL_DIR)/../etc/* \
58 $(1)/etc/
59 $(if $(CONFIG),$(INSTALL_CONF) ./files/frameworkd.conf.$(CONFIG) $(1)/etc/frameworkd.conf,$(CP) ./files/frameworkd.conf $(1)/etc/frameworkd.conf)
60 endef
61
62 $(eval $(call BuildPackage,fso-frameworkd))