[PATCH] update joe package, support for all emulation modes.
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=pysqlite
11 PKG_VERSION:=2.3.5
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://initd.org/pub/software/pysqlite/releases/2.3/2.3.5/
16 PKG_MD5SUM:=b4a185e936848370fcc1a5b17755b641
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-sqlite
24 SUBMENU:=Python
25 SECTION:=lang
26 CATEGORY:=Languages
27 TITLE:=SQLite database adapter for Python
28 URL:=http://www.initd.org/tracker/pysqlite/wiki/pysqlite
29 DEPENDS:=+python-mini +libsqlite3
30 endef
31
32 define Package/python-sqlite/description
33 This package contains an SQLite database adapter for the Python
34 programming language.
35 endef
36
37 define PyPackage/python-sqlite/filespec
38 +|$(PYTHON_PKG_DIR)/pysqlite2
39 -|$(PYTHON_PKG_DIR)/pysqlite2/test
40 endef
41
42 define Build/Configure
43 cp ./files/setup.cfg.in $(PKG_BUILD_DIR)/setup.cfg
44 $(SED) \
45 's,@INCLUDE_DIRS@,$(STAGING_DIR)/usr/include,g' \
46 -e 's,@INCLUDE_DIRS@,$(STAGING_DIR)/usr/include,g' \
47 $(PKG_BUILD_DIR)/setup.cfg
48 endef
49
50 define Build/Compile
51 $(if $(Build/Compile/PyMod),,@echo Python packaging code not found.; false)
52 $(call Build/Compile/PyMod,., \
53 install --prefix="$(PKG_INSTALL_DIR)/usr", \
54 )
55 endef
56
57 $(eval $(call PyPackage,python-sqlite))
58 $(eval $(call BuildPackage,python-sqlite))