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
|
2012-02-16 18:08:31 +00:00
|
|
|
PKG_VERSION:=1.2.8
|
|
|
|
PKG_RELEASE:=1
|
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)
|
2012-02-16 18:08:31 +00:00
|
|
|
PKG_MD5SUM:=6c9f9e7ac43aa4e086283201329e98ee
|
2010-02-19 01:20:44 +00:00
|
|
|
|
2012-06-11 21:18:33 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
2010-02-19 01:20:44 +00:00
|
|
|
PKG_INSTALL:=1
|
2008-09-09 20:26:46 +00:00
|
|
|
|
2012-06-29 11:40:15 +00:00
|
|
|
PKG_BUILD_DEPENDS:=util-linux
|
|
|
|
|
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
|
2013-08-04 16:41:30 +00:00
|
|
|
DEPENDS:=+libstdcpp +libuuid +zlib
|
2008-09-09 20:26:46 +00:00
|
|
|
endef
|
|
|
|
|
2012-02-16 18:08:31 +00:00
|
|
|
MAKE_FLAGS += \
|
|
|
|
SUBDIRS=.
|
|
|
|
|
2008-09-09 20:26:46 +00:00
|
|
|
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))
|