move foxboard utils to packages feed
[openwrt/svn-archive/archive.git] / lang / pybluez / Makefile
1 #
2 # Copyright (C) 2007-2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=pybluez
12 PKG_VERSION:=0.13
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-src-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://org.csail.mit.edu/pybluez/release/
17 PKG_MD5SUM:=eb38d423b49255a7b9f5ba1f50844b53
18
19 PKG_BUILD_DEPENDS:=python
20
21 include $(INCLUDE_DIR)/package.mk
22 -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
23 ifneq ($(MAKECMDGOALS),download)
24 $(if $(DUMP)$(Build/Compile/PyMod),,$(error Python packaging code not found.))
25 endif
26
27 define Package/python-bluez
28 SUBMENU:=Python
29 SECTION:=lang
30 CATEGORY:=Languages
31 TITLE:=Python wrapper for the BlueZ Bluetooth stack
32 URL:=http://org.csail.mit.edu/pybluez/
33 DEPENDS:=python-core +bluez-libs
34 endef
35
36 define Package/python-psycopg/description
37 This package contains is a Python wrapper for the BlueZ Bluetooth stack
38 endef
39
40 CONFIGURE_ARGS += \
41 --with-python="$(PYTHON)" \
42
43 define Build/Compile
44 $(call Build/Compile/PyMod,., \
45 install --prefix="$(PKG_INSTALL_DIR)/usr", \
46 )
47 endef
48
49 define PyPackage/python-bluez/filespec
50 +|$(PYTHON_PKG_DIR)/bluetooth/__init__.py
51 +|$(PYTHON_PKG_DIR)/bluetooth/_bluetooth.so
52 +|$(PYTHON_PKG_DIR)/bluetooth/bluez.py
53 +|$(PYTHON_PKG_DIR)/bluetooth/btcommon.py
54 endef
55
56 $(eval $(call PyPackage,python-bluez))
57 $(eval $(call BuildPackage,python-bluez))