[backfire/packages] merge [28415] & [28416]
[openwrt/svn-archive/archive.git] / lang / xapian-bindings / Makefile
1 #
2 # Copyright (C) 2008-2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=xapian-bindings
11 PKG_VERSION:=1.0.7
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://oligarchy.co.uk/xapian/$(PKG_VERSION)
16 PKG_MD5SUM:=a80e51f4971d7505abcc0bdde912266b
17
18 PKG_FIXUP:=libtool
19
20 include $(INCLUDE_DIR)/package.mk
21 $(call include_mk, python-package.mk)
22
23 PKG_INSTALL=1
24
25 define Package/python-xapian
26 SECTION:=lang
27 CATEGORY:=Languages
28 SUBMENU:=Python
29 TITLE:=xapian python bindings
30 URL:=http://xapian.org/
31 DEPENDS:=+python-mini +libxapian
32 endef
33
34 CONFIGURE_ARGS+= \
35 --with-python \
36
37 CONFIGURE_VARS+= \
38 PYTHON_LIB="$(PYTHON_PKG_DIR)" \
39
40 define Package/python-xapian/install
41 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
42 $(CP) $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* $(1)$(PYTHON_PKG_DIR)/
43 endef
44
45 $(eval $(call BuildPackage,python-xapian))
46
47