766819f30e529d3dcdef960e4cb2b66b131b3cd5
[openwrt/svn-archive/feeds.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:=20090227
12 PKG_REV:=08c924538448e7de202432f470564764852df8a6
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 +fso +python-evas +python-ecore +python-edje +python-e_dbus \
31 +python-etk +python-expat +dbus-utils
32 URL:=http://wiki.openmoko.org/wiki/Paroli
33 endef
34
35 COMPONENTS:= \
36 tele \
37 msgs \
38 people \
39
40 define Package/paroli/description
41 Paroli is an integrated phone application written in Python which uses the FSO (freesmartphone.org) DBus API
42 endef
43
44 define Build/Compile
45 $(call Build/Compile/PyMod,,build)
46 $(call Build/Compile/PyMod,,install --prefix="$(PKG_INSTALL_DIR)/usr")
47 endef
48
49 define Package/paroli/install
50 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR) $(1)/usr/bin $(1)/usr/share/applications/paroli $(1)/usr/share/paroli/services $(1)/usr/share/icons/paroli $(1)/etc/xdg/autostart
51 $(CP) \
52 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
53 $(1)$(PYTHON_PKG_DIR)
54 $(INSTALL_BIN) \
55 $(PKG_INSTALL_DIR)/usr/bin/* \
56 $(1)/usr/bin/
57 $(foreach c, $(COMPONENTS), \
58 $(INSTALL_DIR) $(1)/usr/share/paroli/applications/$(c)
59 $(CP) $(PKG_INSTALL_DIR)/../usr/share/paroli/applications/$(c)/$(c).{py,edj} $(1)/usr/share/paroli/applications/$(c)/
60 # $(CP) $(PKG_INSTALL_DIR)/../usr/share/paroli/applications/$(c)/icon.png $(1)/usr/share/icons/paroli/$(c).png
61 $(CP) $(PKG_INSTALL_DIR)/../data/tichy $(1)/usr/share/icons/paroli/$(c).png
62 $(CP) $(PKG_INSTALL_DIR)/usr/applications/$(c).desktop $(1)/usr/share/applications/paroli/
63 )
64 $(CP) \
65 $(PKG_INSTALL_DIR)/../usr/share/paroli/services/* \
66 $(1)/usr/share/paroli/services/
67 $(CP) \
68 $(PKG_INSTALL_DIR)/../data/tichy \
69 $(1)/usr/share/icons/paroli/parolid.png
70 $(CP) \
71 $(PKG_INSTALL_DIR)/usr/applications/parolid.desktop \
72 $(1)/etc/xdg/autostart/
73 $(CP) \
74 $(PKG_INSTALL_DIR)/../etc/* \
75 $(1)/etc/
76 $(CP) ./files/paroli.cfg $(1)/etc/paroli.cfg
77 endef
78
79 $(eval $(call BuildPackage,paroli))