pyodbc: use WORDS_BIGENDIAN instead of OS-specific defines
[feed/packages.git] / lang / python / pyodbc / Makefile
1 # This is free software, licensed under the GNU General Public License v2.
2 # See /LICENSE for more information.
3 #
4
5 include $(TOPDIR)/rules.mk
6
7 PKG_NAME:=pyodbc
8 PKG_VERSION:=4.0.17
9 PKG_RELEASE:=5
10
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_SOURCE_URL:=https://pypi.python.org/packages/ce/57/6b92aa5b3497dde6be55fd6fcb76c7db215ed1d56fde45c613add4a43095/
13 PKG_HASH:=a82892ba8d74318524efaaccaf8351d3a3b4079a07e1a758902a2b9e84529c9d
14 PKG_BUILD_DEPENDS:=python python3 unixodbc
15 PKG_LICENSE:=MIT
16 PKG_LICENSE_FILES:=LICENSE.txt
17 PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-$(PKG_NAME)-$(PKG_VERSION)
20 PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
21
22 include $(INCLUDE_DIR)/package.mk
23 $(call include_mk, python-package.mk)
24 $(call include_mk, python3-package.mk)
25
26 define Package/python-pyodbc/Default
27 SECTION:=lang
28 CATEGORY:=Languages
29 SUBMENU:=Python
30 URL:=https://github.com/mkleehammer/pyodbc
31 DEPENDS:=+unixodbc +libstdcpp
32 endef
33
34 define Package/python-pyodbc
35 $(call Package/python-pyodbc/Default)
36 TITLE:=python-pyodbc
37 DEPENDS+=+PACKAGE_python-pyodbc:python-light \
38 +PACKAGE_python-pyodbc:python-logging \
39 +PACKAGE_python-pyodbc:python-openssl
40 VARIANT:=python
41 endef
42
43 define Package/python3-pyodbc
44 $(call Package/python-pyodbc/Default)
45 TITLE:=python3-pyodbc
46 DEPENDS+=+PACKAGE_python3-pyodbc:python3-light
47 VARIANT:=python3
48 endef
49
50 define Package/python-pyodbc/description
51 DB API Module for ODBC
52
53 A Python DB API 2 module for ODBC. This project provides an up-to-date,
54 convenient interface to ODBC using native data types like datetime and decimal.
55 endef
56
57 define Package/python3-pyodbc/description
58 $(call Package/python-pyodbc/description)
59
60 (Variant for Python3)
61 endef
62
63 $(eval $(call PyPackage,python-pyodbc))
64 $(eval $(call BuildPackage,python-pyodbc))
65
66 $(eval $(call Py3Package,python3-pyodbc))
67 $(eval $(call BuildPackage,python3-pyodbc))