add libtool fixes, remove uneeded packages files, cleanup
[openwrt/svn-archive/archive.git] / lang / psycopg / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=psycopg
12 PKG_VERSION:=1.1.21
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.initd.org/pub/software/psycopg/
17 PKG_MD5SUM:=a31f79f68d6d32898d6f24e11369a106
18
19 include $(INCLUDE_DIR)/package.mk
20 include ../python/python-package.mk
21
22 define PyPackage/psycopg
23 TITLE:=PostgreSQL database adapter
24 URL=http://www.initd.org/
25 DEPENDS+= +libpq +egenix-mx
26 endef
27
28 define PyPackage/psycopg/description
29 This package contains is a PostgreSQL database adapter for the Python
30 programming language.
31 endef
32
33 CONFIGURE_ARGS += \
34 --with-python="$(PYTHON)" \
35 --with-postgres-libraries="$(STAGING_DIR)/usr/lib" \
36 --with-postgres-includes="$(STAGING_DIR)/usr/include" \
37 --with-mxdatetime-includes="$(STAGING_DIR)$(PYTHON_PKG_DIR)/mx/DateTime/mxDateTime" \
38
39 define Build/Compile
40 $(MAKE) -C $(PKG_BUILD_DIR) \
41 OPT="$(TARGET_CFLAGS)"
42 endef
43
44 define PyPackage/psycopg/install
45 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/psycopgmodule.so $(1)$(PYTHON_PKG_DIR)/
47 endef
48
49 $(eval $(call PyPackage,psycopg))