Branch oldpackages for 14.07
[14.07/packages.git] / lang / pybluez / Makefile
1 #
2 # Copyright (C) 2007-2010 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:=pybluez
11 PKG_VERSION:=0.13
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-src-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://org.csail.mit.edu/pybluez/release/
16 PKG_MD5SUM:=eb38d423b49255a7b9f5ba1f50844b53
17
18 PKG_BUILD_DEPENDS:=python
19
20 include $(INCLUDE_DIR)/package.mk
21 $(call include_mk, python-package.mk)
22
23 define Package/python-bluez
24   SUBMENU:=Python
25   SECTION:=lang
26   CATEGORY:=Languages
27   TITLE:=Python wrapper for the BlueZ Bluetooth stack
28   URL:=http://code.google.com/p/pybluez/
29   DEPENDS:=+python-mini +bluez-libs
30 endef
31
32 define Package/python-psycopg/description
33  This package contains is a Python wrapper for the BlueZ Bluetooth stack
34 endef
35
36 CONFIGURE_ARGS += \
37         --with-python="$(PYTHON)" \
38
39 define Build/Compile
40         $(if $(Build/Compile/PyMod),,@echo Python packaging code not found.; false)
41         $(call Build/Compile/PyMod,., \
42                 install --prefix="$(PKG_INSTALL_DIR)/usr", \
43         )
44 endef
45
46 define PyPackage/python-bluez/filespec
47 +|$(PYTHON_PKG_DIR)/bluetooth/__init__.py
48 +|$(PYTHON_PKG_DIR)/bluetooth/_bluetooth.so
49 +|$(PYTHON_PKG_DIR)/bluetooth/bluez.py
50 +|$(PYTHON_PKG_DIR)/bluetooth/btcommon.py
51 endef
52
53 $(eval $(call PyPackage,python-bluez))
54 $(eval $(call BuildPackage,python-bluez))