xref: /OK3568_Linux_fs/buildroot/package/python-psycopg2/python-psycopg2.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# python-psycopg2
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunPYTHON_PSYCOPG2_VERSION = 2.9.1
8*4882a593SmuzhiyunPYTHON_PSYCOPG2_SOURCE = psycopg2-$(PYTHON_PSYCOPG2_VERSION).tar.gz
9*4882a593SmuzhiyunPYTHON_PSYCOPG2_SITE = https://files.pythonhosted.org/packages/aa/8a/7c80e7e44fb1b4277e89bd9ca509aefdd4dd1b2c547c6f293afe9f7ffd04
10*4882a593SmuzhiyunPYTHON_PSYCOPG2_SETUP_TYPE = setuptools
11*4882a593SmuzhiyunPYTHON_PSYCOPG2_LICENSE = LGPL-3.0+
12*4882a593SmuzhiyunPYTHON_PSYCOPG2_LICENSE_FILES = LICENSE
13*4882a593SmuzhiyunPYTHON_PSYCOPG2_DEPENDENCIES = postgresql
14*4882a593Smuzhiyun# Force psycopg2 to use the Buildroot provided postgresql version
15*4882a593Smuzhiyun# instead of the one from the host machine
16*4882a593SmuzhiyunPYTHON_PSYCOPG2_BUILD_OPTS = build_ext --pg-config=$(STAGING_DIR)/usr/bin/pg_config
17*4882a593SmuzhiyunPYTHON_PSYCOPG2_INSTALL_TARGET_OPTS = build_ext --pg-config=$(STAGING_DIR)/usr/bin/pg_config
18*4882a593Smuzhiyun
19*4882a593Smuzhiyun$(eval $(python-package))
20