add pymysql (MySQL-Python) (closes: #2230)
[openwrt/svn-archive/archive.git] / lang / pymysql / Makefile
1 #
2 # Copyright (C) 2007 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:=MySQL-python
12 PKG_VERSION:=1.2.2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/mysql-python
17 PKG_MD5SUM:=532268f02870bea18c1d465e88afff30
18
19 include $(INCLUDE_DIR)/package.mk
20 include ../python/python-package.mk
21
22 define PyPackage/pymysql
23 TITLE:=MySQL database adapter for Python
24 URL=http://mysql-python.sourceforge.net/
25 DEPENDS+= +libmysqlclient
26 endef
27
28 define PyPackage/pymysql/description
29 MySQLdb is an thread-compatible interface to the popular MySQL database
30 server that provides the Python database API.
31 endef
32
33 define PyPackage/pymysql/filespec
34 +|$(PYTHON_PKG_DIR)/_mysql.so
35 +|$(PYTHON_PKG_DIR)/_mysql_exceptions.py*
36 +|$(PYTHON_PKG_DIR)/MySQLdb
37 endef
38
39 define Build/Compile
40 $(call Build/Compile/PyMod,., \
41 install --prefix="$(PKG_INSTALL_DIR)/usr", \
42 )
43 endef
44
45 $(eval $(call PyPackage,pymysql))