adding missing config file
[openwrt/svn-archive/archive.git] / phone / paroli / 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:=paroli
11 PKG_VERSION:=20090202
12 PKG_REV:=497fb67c507ff58fe72c5399a37906a6aee97015
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://git.paroli-project.org/paroli.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:=python
22
23 include $(INCLUDE_DIR)/package.mk
24 -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
25
26 define Package/paroli
27 SECTION:=phone
28 CATEGORY:=Phone
29 TITLE:=integrated phone application
30 DEPENDS:=python-core +fso +python-evas +python-ecore +python-edje +python-e_dbus +python-etk
31 URL:=http://wiki.openmoko.org/wiki/Paroli
32 endef
33
34 COMPONENTS:= \
35 tele \
36
37 define Package/paroli/description
38 Paroli is an integrated phone application written in Python which uses the FSO (freesmartphone.org) DBus API
39 endef
40
41 define Build/Compile
42 $(call Build/Compile/PyMod,,build)
43 $(call Build/Compile/PyMod,,install --prefix="$(PKG_INSTALL_DIR)/usr")
44 endef
45
46 define Package/paroli/install
47 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR) $(1)/usr/bin $(1)/etc/init.d $(1)/usr/share/applications/paroli $(1)/usr/share/paroli/services $(1)/usr/share/icons/paroli $(1)/etc/xdg/autostart
48 $(CP) \
49 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
50 $(1)$(PYTHON_PKG_DIR)
51 $(INSTALL_BIN) \
52 $(PKG_INSTALL_DIR)/usr/bin/* \
53 $(1)/usr/bin/
54 $(INSTALL_BIN) ./files/paroli.init $(1)/etc/init.d/paroli
55 $(foreach c, $(COMPONENTS), \
56 $(INSTALL_DIR) $(1)/usr/share/paroli/applications/$(c)
57 $(CP) $(PKG_INSTALL_DIR)/../usr/share/paroli/applications/$(c)/$(c).{py,edj} $(1)/usr/share/paroli/applications/$(c)/
58 # $(CP) $(PKG_INSTALL_DIR)/../usr/share/paroli/applications/$(c)/icon.png $(1)/usr/share/icons/paroli/$(c).png
59 $(CP) $(PKG_INSTALL_DIR)/../data/tichy $(1)/usr/share/icons/paroli/$(c).png
60 $(CP) $(PKG_INSTALL_DIR)/usr/applications/$(c).desktop $(1)/usr/share/applications/paroli/
61 )
62 $(CP) \
63 $(PKG_INSTALL_DIR)/../usr/share/paroli/services/* \
64 $(1)/usr/share/paroli/services/
65 $(CP) \
66 $(PKG_INSTALL_DIR)/../data/tichy \
67 $(1)/usr/share/icons/paroli/parolid.png
68 $(CP) \
69 $(PKG_INSTALL_DIR)/usr/applications/parolid.desktop \
70 $(1)/etc/xdg/autostart/
71 $(CP) \
72 $(PKG_INSTALL_DIR)/../etc/* \
73 $(1)/etc/
74 $(CP) ./files/paroli.cfg $(1)/etc/paroli.cfg
75 endef
76
77 $(eval $(call BuildPackage,paroli))