2 # Copyright (C) 2007-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
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
19 PKG_BUILD_DEPENDS:=python
21 include $(INCLUDE_DIR)/package.mk
22 -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
24 define Package/python-bluez
28 TITLE:=Python wrapper for the BlueZ Bluetooth stack
29 URL:=http://org.csail.mit.edu/pybluez/
30 DEPENDS:=python-core +bluez-libs
33 define Package/python-psycopg/description
34 This package contains is a Python wrapper for the BlueZ Bluetooth stack
38 --with-python="$(PYTHON)" \
41 $(if $(Build/Compile/PyMod),,@echo Python packaging code not found.; false)
42 $(call Build/Compile/PyMod,., \
43 install --prefix="$(PKG_INSTALL_DIR)/usr", \
47 define PyPackage/python-bluez/filespec
48 +|$(PYTHON_PKG_DIR)/bluetooth/__init__.py
49 +|$(PYTHON_PKG_DIR)/bluetooth/_bluetooth.so
50 +|$(PYTHON_PKG_DIR)/bluetooth/bluez.py
51 +|$(PYTHON_PKG_DIR)/bluetooth/btcommon.py
54 $(eval $(call PyPackage,python-bluez))
55 $(eval $(call BuildPackage,python-bluez))