- updated to newer version which fixes some bugs
[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:=20090112
12 PKG_REV:=81db9c1a2abd7d56300867b04d4c541e34bb8165
13 PKG_RELEASE:=2
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
31 URL:=http://wiki.openmoko.org/wiki/Paroli
32 endef
33
34 define Package/paroli/description
35 Paroli is an integrated phone application written in Python which uses the FSO (freesmartphone.org) DBus API
36 endef
37
38 define Build/Compile
39 $(call Build/Compile/PyMod,,build)
40 $(call Build/Compile/PyMod,,install --prefix="$(PKG_INSTALL_DIR)/usr")
41 endef
42
43 define Package/paroli/install
44 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR) $(1)/usr/bin $(1)/etc/init.d $(1)/usr/share/applications/paroli $(1)/usr/share/paroli
45 $(CP) \
46 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
47 $(1)$(PYTHON_PKG_DIR)
48 $(INSTALL_BIN) \
49 $(PKG_INSTALL_DIR)/usr/bin/* \
50 $(1)/usr/bin/
51 $(INSTALL_BIN) ./files/paroli.init $(1)/etc/init.d/paroli
52 $(CP) \
53 $(PKG_INSTALL_DIR)/usr/paroli/* \
54 $(1)/usr/share/paroli/
55 $(CP) \
56 $(PKG_INSTALL_DIR)/usr/applications/* \
57 $(1)/usr/share/applications/paroli/
58 $(CP) \
59 $(PKG_INSTALL_DIR)/etc/* \
60 $(1)/etc/
61 endef
62
63 $(eval $(call BuildPackage,paroli))