2007-09-06 02:52:35 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2007 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=psycopg
|
|
|
|
PKG_VERSION:=1.1.21
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://www.initd.org/pub/software/psycopg/
|
|
|
|
PKG_MD5SUM:=a31f79f68d6d32898d6f24e11369a106
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
include ../python/python-package.mk
|
|
|
|
|
2007-10-09 01:22:26 +00:00
|
|
|
define PyPackage/python-psycopg
|
|
|
|
TITLE:=PostgreSQL database adapter for Python
|
2007-10-14 03:46:31 +00:00
|
|
|
URL:=http://www.initd.org/
|
2007-10-09 01:22:26 +00:00
|
|
|
DEPENDS+= +libpq +python-egenix-mx
|
2007-09-06 02:52:35 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-09 01:22:26 +00:00
|
|
|
define PyPackage/python-psycopg/description
|
2007-09-06 02:52:35 +00:00
|
|
|
This package contains is a PostgreSQL database adapter for the Python
|
|
|
|
programming language.
|
|
|
|
endef
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--with-python="$(PYTHON)" \
|
|
|
|
--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" \
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
OPT="$(TARGET_CFLAGS)"
|
|
|
|
endef
|
|
|
|
|
2007-10-09 01:22:26 +00:00
|
|
|
define PyPackage/python-psycopg/install
|
2007-09-06 02:52:35 +00:00
|
|
|
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/psycopgmodule.so $(1)$(PYTHON_PKG_DIR)/
|
|
|
|
endef
|
|
|
|
|
2007-10-09 01:22:26 +00:00
|
|
|
$(eval $(call PyPackage,python-psycopg))
|