2008-09-09 20:26:46 +00:00
|
|
|
#
|
2010-02-19 01:20:44 +00:00
|
|
|
# Copyright (C) 2008-2010 OpenWrt.org
|
2008-09-09 20:26:46 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=xapian-core
|
|
|
|
PKG_VERSION:=1.0.7
|
2010-03-29 11:03:27 +00:00
|
|
|
PKG_RELEASE:=3
|
2008-09-09 20:26:46 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://oligarchy.co.uk/xapian/$(PKG_VERSION)
|
2010-02-19 01:20:44 +00:00
|
|
|
PKG_MD5SUM:=b4acff50028120852d4a8d943065f6d2
|
|
|
|
|
2008-09-09 20:26:46 +00:00
|
|
|
PKG_FIXUP:=libtool
|
2010-02-19 01:20:44 +00:00
|
|
|
PKG_INSTALL:=1
|
2008-09-09 20:26:46 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2011-02-02 18:54:24 +00:00
|
|
|
include $(INCLUDE_DIR)/nls.mk
|
2008-09-09 20:26:46 +00:00
|
|
|
|
|
|
|
define Package/libxapian
|
2010-03-21 03:20:26 +00:00
|
|
|
SECTION:=libs
|
2008-09-09 20:26:46 +00:00
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=xapian
|
|
|
|
URL:=http://xapian.org
|
2009-05-29 12:01:24 +00:00
|
|
|
DEPENDS:=+libstdcpp +zlib
|
2008-09-09 20:26:46 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/aclocal
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/share/aclocal/* \
|
|
|
|
$(1)/usr/share/aclocal
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/include/xapian.h \
|
|
|
|
$(1)/usr/include
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include/xapian
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/include/xapian/* \
|
|
|
|
$(1)/usr/include/xapian
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/
|
2009-01-04 00:06:33 +00:00
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} \
|
2008-09-09 20:26:46 +00:00
|
|
|
$(1)/usr/lib/
|
|
|
|
$(INSTALL_DIR) $(2)/bin
|
|
|
|
$(INSTALL_BIN) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/bin/xapian-config \
|
|
|
|
$(2)/bin
|
|
|
|
$(SED) 's,prefix=",prefix="$(STAGING_DIR),g' $(2)/bin/xapian-config
|
|
|
|
|
|
|
|
#FIXME: Libtool should handle this
|
2009-01-13 02:00:27 +00:00
|
|
|
if [ -f $(TOOLCHAIN_DIR)/usr/lib/libstdc++.la ]; then \
|
|
|
|
$(SED) \
|
2009-01-13 00:56:58 +00:00
|
|
|
"s,$(STAGING_DIR)/usr/lib/libstdc++,$(TOOLCHAIN_DIR)/usr/lib/libstdc++,g" \
|
2009-01-13 02:00:27 +00:00
|
|
|
$(1)/usr/lib/libxapian.la ; \
|
|
|
|
else \
|
|
|
|
$(SED) \
|
|
|
|
"s,$(STAGING_DIR)/usr/lib/libstdc++,$(TOOLCHAIN_DIR)/lib/libstdc++,g" \
|
|
|
|
$(1)/usr/lib/libxapian.la ; \
|
|
|
|
fi
|
2008-09-09 20:26:46 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libxapian/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/
|
2009-01-04 00:06:33 +00:00
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/*.so* \
|
2008-09-09 20:26:46 +00:00
|
|
|
$(1)/usr/lib
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/bin/* \
|
|
|
|
$(1)/usr/bin
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libxapian))
|