2 # Copyright (C) 2007-2008 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
11 PKG_NAME
:=MySQL-python
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=@SF
/mysql-python
17 PKG_MD5SUM
:=532268f02870bea18c1d465e88afff30
19 PKG_BUILD_DEPENDS
:=python
21 include $(INCLUDE_DIR
)/package.mk
22 -include $(if
$(DUMP
),,$(STAGING_DIR
)/mk
/python-package.mk
)
24 define Package
/python-mysql
28 TITLE
:=MySQL database adapter for Python
29 URL
:=http
://mysql-python.sourceforge.net
/
30 DEPENDS
:=python-core
+libmysqlclient
33 define Package
/python-mysql
/description
34 MySQLdb is an thread-compatible interface to the popular MySQL database
35 server that provides the Python database API.
38 define PyPackage
/python-mysql
/filespec
39 +|
$(PYTHON_PKG_DIR
)/_mysql.so
40 +|
$(PYTHON_PKG_DIR
)/_mysql_exceptions.py
*
41 +|
$(PYTHON_PKG_DIR
)/MySQLdb
45 $(if
$(Build
/Compile
/PyMod
),,@echo Python packaging code not found.
; false
)
46 $(call Build
/Compile
/PyMod
,.
, \
47 install --prefix="$(PKG_INSTALL_DIR)/usr", \
51 $(eval
$(call PyPackage
,python-mysql
))
52 $(eval
$(call BuildPackage
,python-mysql
))