Update lft to 3.1 (#3631)
[openwrt/svn-archive/archive.git] / lang / pysqlite / 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:=pysqlite
12 PKG_VERSION:=2.3.5
13 PKG_RELEASE:=1
14
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
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-sqlite
28 SUBMENU:=Python
29 SECTION:=lang
30 CATEGORY:=Languages
31 TITLE:=SQLite database adapter for Python
32 URL:=http://www.initd.org/tracker/pysqlite/wiki/pysqlite
33 DEPENDS:=python-core +libsqlite3
34 endef
35
36 define Package/python-sqlite/description
37 This package contains an SQLite database adapter for the Python
38 programming language.
39 endef
40
41 define PyPackage/python-sqlite/filespec
42 +|$(PYTHON_PKG_DIR)/pysqlite2
43 -|$(PYTHON_PKG_DIR)/pysqlite2/test
44 endef
45
46 define Build/Compile
47 $(call Build/Compile/PyMod,., \
48 install --prefix="$(PKG_INSTALL_DIR)/usr", \
49 )
50 endef
51
52 $(eval $(call PyPackage,python-sqlite))
53 $(eval $(call BuildPackage,python-sqlite))