# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
-# $Id:
include $(TOPDIR)/rules.mk
CATEGORY:=Libraries
TITLE:=xapian
URL:=http://xapian.org
- DEPENDS:=+libstdcpp
+ DEPENDS:=+libstdcpp +zlib
endef
define Build/InstallDev
$(SED) 's,prefix=",prefix="$(STAGING_DIR),g' $(2)/bin/xapian-config
#FIXME: Libtool should handle this
- $(SED) \
+ if [ -f $(TOOLCHAIN_DIR)/usr/lib/libstdc++.la ]; then \
+ $(SED) \
"s,$(STAGING_DIR)/usr/lib/libstdc++,$(TOOLCHAIN_DIR)/usr/lib/libstdc++,g" \
- $(1)/usr/lib/libxapian.la
+ $(1)/usr/lib/libxapian.la ; \
+ else \
+ $(SED) \
+ "s,$(STAGING_DIR)/usr/lib/libstdc++,$(TOOLCHAIN_DIR)/lib/libstdc++,g" \
+ $(1)/usr/lib/libxapian.la ; \
+ fi
endef
define Package/libxapian/install