Fix the whole python building process to do proper crosscompiling for all python
[openwrt/svn-archive/archive.git] / lang / xapian-bindings / Makefile
1 #
2 # Copyright (C) 2008 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:=xapian-bindings
12 PKG_VERSION:=1.0.7
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://oligarchy.co.uk/xapian/$(PKG_VERSION)
17 PKG_FIXUP:=libtool
18
19 include $(INCLUDE_DIR)/package.mk
20 -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
21
22 PKG_INSTALL=1
23
24 define Package/python-xapian
25 SECTION:=lang
26 CATEGORY:=Languages
27 SUBMENU:=Python
28 TITLE:=xapian python bindings
29 URL:=http://oligarchy.co.uk/xapian/
30 DEPENDS:=python +libxapian
31 endef
32
33 define Build/Configure
34 $(call Build/Configure/Default, --with-python)
35 endef
36
37 define Package/python-xapian/install
38 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
39 $(CP) $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* $(1)$(PYTHON_PKG_DIR)
40 endef
41
42 $(eval $(call BuildPackage,python-xapian))
43
44