2 # Copyright (C) 2007 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)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://initd.org/pub/software/pysqlite/releases/2.3/2.3.5/
17 PKG_MD5SUM:=b4a185e936848370fcc1a5b17755b641
18 PKG_BUILD_DEPENDS:=python
20 include $(INCLUDE_DIR)/package.mk
21 -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
22 ifneq ($(MAKECMDGOALS),download)
23 $(if $(DUMP)$(Build/Compile/PyMod),,$(error Python packaging code not found.))
26 define Package/python-sqlite
27 TITLE:=SQLite database adapter for Python
28 URL:=http://www.initd.org/tracker/pysqlite/wiki/pysqlite
32 define Package/python-sqlite/description
33 This package contains an SQLite database adapter for the Python
37 define PyPackage/python-sqlite/filespec
38 +|$(PYTHON_PKG_DIR)/pysqlite2
39 -|$(PYTHON_PKG_DIR)/pysqlite2/test
43 $(call Build/Compile/PyMod,., \
44 install --prefix="$(PKG_INSTALL_DIR)/usr", \
48 $(eval $(call PyPackage,python-sqlite))
49 $(eval $(call BuildPackage,python-sqlite))