# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
-# $Id$
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/package.mk
-include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
-ifneq ($(MAKECMDGOALS),download)
- $(if $(DUMP)$(Build/Compile/PyMod),,$(error Python packaging code not found.))
-endif
define Package/python-psycopg
SUBMENU:=Python
CATEGORY:=Languages
TITLE:=PostgreSQL database adapter for Python
URL:=http://www.initd.org/
- DEPENDS:=python-core +libpq +python-egenix-mx
+ DEPENDS:=+python-mini +libpq +python-egenix-mx
endef
define Package/python-psycopg/description
--with-postgres-libraries="$(STAGING_DIR)/usr/lib" \
--with-postgres-includes="$(STAGING_DIR)/usr/include" \
--with-mxdatetime-includes="$(STAGING_DIR)$(PYTHON_PKG_DIR)/mx/DateTime/mxDateTime" \
+ --with-python-prefix=$(STAGING_DIR)/usr
+ --with-python-exec-prefix=$(STAGING_DIR)/usr
define Build/Compile
+ $(if $(Build/Compile/PyMod),,@echo Python packaging code not found.; false)
$(MAKE) -C $(PKG_BUILD_DIR) \
OPT="$(TARGET_CFLAGS)"
endef