2 # Copyright (C) 2008-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://oligarchy.
co.uk
/xapian
/$(PKG_VERSION
)
19 include $(INCLUDE_DIR
)/package.mk
24 -L
$(STAGING_DIR
)/usr
/lib
/libintl
/lib \
25 -L
$(STAGING_DIR
)/usr
/lib
/libiconv
/lib \
27 define Package
/libxapian
31 URL
:=http
://xapian.org
35 define Build
/InstallDev
36 $(INSTALL_DIR
) $(1)/usr
/share
/aclocal
38 $(PKG_INSTALL_DIR
)/usr
/share
/aclocal
/* \
39 $(1)/usr
/share
/aclocal
41 $(INSTALL_DIR
) $(1)/usr
/include
43 $(PKG_INSTALL_DIR
)/usr
/include/xapian.h \
45 $(INSTALL_DIR
) $(1)/usr
/include/xapian
47 $(PKG_INSTALL_DIR
)/usr
/include/xapian
/* \
48 $(1)/usr
/include/xapian
50 $(INSTALL_DIR
) $(1)/usr
/lib
/
52 $(PKG_INSTALL_DIR
)/usr
/lib
/*.
{so
*,a
,la
} \
54 $(INSTALL_DIR
) $(2)/bin
56 $(PKG_INSTALL_DIR
)/usr
/bin
/xapian-config \
58 $(SED
) 's,prefix=",prefix="$(STAGING_DIR),g' $(2)/bin
/xapian-config
60 #FIXME: Libtool should handle this
62 "s,$(STAGING_DIR)/usr/lib/libstdc++,$(TOOLCHAIN_DIR)/usr/lib/libstdc++,g" \
63 $(1)/usr
/lib
/libxapian.la
66 define Package
/libxapian
/install
67 $(INSTALL_DIR
) $(1)/usr
/lib
/
69 $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* \
71 $(INSTALL_DIR
) $(1)/usr
/bin
/
73 $(PKG_INSTALL_DIR
)/usr
/bin
/* \
77 $(eval
$(call BuildPackage
,libxapian
))