2 # Copyright (C) 2007-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=MySQL-python
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).zip
16 PKG_SOURCE_URL
:=https
://pypi.python.org
/packages
/source
/M
/MySQL-python
/
17 PKG_MD5SUM
:=654f75b302db6ed8dc5a898c625e030c
19 PKG_BUILD_DEPENDS
:=python python-setuptools libmysqlclient
21 include $(INCLUDE_DIR
)/package.mk
22 $(call include_mk
, python-package.mk
)
24 define Package
/python-mysql
28 TITLE
:=MySQL database adapter for Python
29 URL
:=https
://pypi.python.org
/pypi
/MySQL-python
30 MAINTAINER
:=Gergely Kiss
<mail.gery@gmail.com
>
31 DEPENDS
:=+python
+libmysqlclient
34 define Package
/python-mysql
/description
35 MySQLdb is an thread-compatible interface to the popular MySQL database
36 server that provides the Python database API.
40 $(call Build
/Compile
/PyMod
,,install --prefix=/usr
--root
=$(PKG_INSTALL_DIR
))
43 define Package
/python-mysql
/install
44 $(INSTALL_DIR
) $(1)$(PYTHON_PKG_DIR
)
46 $(PKG_INSTALL_DIR
)$(PYTHON_PKG_DIR
)/* \
50 $(eval
$(call BuildPackage
,python-mysql
))