2 # Copyright (C) 2008-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://oligarchy.
co.uk
/xapian
/$(PKG_VERSION
)
16 PKG_MD5SUM
:=6c9f9e7ac43aa4e086283201329e98ee
21 PKG_BUILD_DEPENDS
:=util-linux
23 include $(INCLUDE_DIR
)/package.mk
24 include $(INCLUDE_DIR
)/nls.mk
26 define Package
/libxapian
30 URL
:=http
://xapian.org
31 DEPENDS
:=+libstdcpp
+zlib
37 define Build
/InstallDev
38 $(INSTALL_DIR
) $(1)/usr
/share
/aclocal
40 $(PKG_INSTALL_DIR
)/usr
/share
/aclocal
/* \
41 $(1)/usr
/share
/aclocal
43 $(INSTALL_DIR
) $(1)/usr
/include
45 $(PKG_INSTALL_DIR
)/usr
/include/xapian.h \
47 $(INSTALL_DIR
) $(1)/usr
/include/xapian
49 $(PKG_INSTALL_DIR
)/usr
/include/xapian
/* \
50 $(1)/usr
/include/xapian
52 $(INSTALL_DIR
) $(1)/usr
/lib
/
54 $(PKG_INSTALL_DIR
)/usr
/lib
/*.
{so
*,a
,la
} \
56 $(INSTALL_DIR
) $(2)/bin
58 $(PKG_INSTALL_DIR
)/usr
/bin
/xapian-config \
60 $(SED
) 's,prefix=",prefix="$(STAGING_DIR),g' $(2)/bin
/xapian-config
62 #FIXME: Libtool should handle this
63 if
[ -f
$(TOOLCHAIN_DIR
)/usr
/lib
/libstdc
++.la
]; then \
65 "s,$(STAGING_DIR)/usr/lib/libstdc++,$(TOOLCHAIN_DIR)/usr/lib/libstdc++,g" \
66 $(1)/usr
/lib
/libxapian.la
; \
69 "s,$(STAGING_DIR)/usr/lib/libstdc++,$(TOOLCHAIN_DIR)/lib/libstdc++,g" \
70 $(1)/usr
/lib
/libxapian.la
; \
74 define Package
/libxapian
/install
75 $(INSTALL_DIR
) $(1)/usr
/lib
/
77 $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* \
79 $(INSTALL_DIR
) $(1)/usr
/bin
/
81 $(PKG_INSTALL_DIR
)/usr
/bin
/* \
85 $(eval
$(call BuildPackage
,libxapian
))