nuke $Id$ in /packages as well
[openwrt/svn-archive/archive.git] / lang / pymysql / 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:=MySQL-python
11 PKG_VERSION:=1.2.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/mysql-python
16 PKG_MD5SUM:=532268f02870bea18c1d465e88afff30
17
18 PKG_BUILD_DEPENDS:=python
19
20 include $(INCLUDE_DIR)/package.mk
21 -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
22
23 define Package/python-mysql
24 SUBMENU:=Python
25 SECTION:=lang
26 CATEGORY:=Languages
27 TITLE:=MySQL database adapter for Python
28 URL:=http://mysql-python.sourceforge.net/
29 DEPENDS:=+python +libmysqlclient
30 endef
31
32 define Package/python-mysql/description
33 MySQLdb is an thread-compatible interface to the popular MySQL database
34 server that provides the Python database API.
35 endef
36
37 define PyPackage/python-mysql/filespec
38 +|$(PYTHON_PKG_DIR)/_mysql.so
39 +|$(PYTHON_PKG_DIR)/_mysql_exceptions.py*
40 +|$(PYTHON_PKG_DIR)/MySQLdb
41 endef
42
43 define Build/Compile
44 $(if $(Build/Compile/PyMod),,@echo Python packaging code not found.; false)
45 $(call Build/Compile/PyMod,., \
46 install --prefix="$(PKG_INSTALL_DIR)/usr", \
47 )
48 endef
49
50 $(eval $(call PyPackage,python-mysql))
51 $(eval $(call BuildPackage,python-mysql))