source: packages/libs/libxapian/Makefile @ 20327

Last change on this file since 20327 was 20327, checked in by swalker, 6 years ago

[packages] check, gconf2, libxapian: fix section names

File size: 1.9 KB
Line 
1#
2# Copyright (C) 2008-2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=xapian-core
11PKG_VERSION:=1.0.7
12PKG_RELEASE:=2
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://oligarchy.co.uk/xapian/$(PKG_VERSION)
16PKG_MD5SUM:=b4acff50028120852d4a8d943065f6d2
17
18PKG_FIXUP:=libtool
19PKG_INSTALL:=1
20
21include $(INCLUDE_DIR)/package.mk
22
23TARGET_LDFLAGS+= \
24        -L$(STAGING_DIR)/usr/lib/libintl/lib \
25        -L$(STAGING_DIR)/usr/lib/libiconv/lib \
26
27define Package/libxapian
28  SECTION:=libs
29  CATEGORY:=Libraries
30  TITLE:=xapian
31  URL:=http://xapian.org
32  DEPENDS:=+libstdcpp +zlib
33endef
34
35define Build/InstallDev
36        $(INSTALL_DIR) $(1)/usr/share/aclocal
37        $(INSTALL_DATA) \
38                $(PKG_INSTALL_DIR)/usr/share/aclocal/* \
39                $(1)/usr/share/aclocal
40
41        $(INSTALL_DIR) $(1)/usr/include
42        $(INSTALL_DATA) \
43                $(PKG_INSTALL_DIR)/usr/include/xapian.h \
44                $(1)/usr/include
45        $(INSTALL_DIR) $(1)/usr/include/xapian
46        $(INSTALL_DATA) \
47                $(PKG_INSTALL_DIR)/usr/include/xapian/* \
48                $(1)/usr/include/xapian
49
50        $(INSTALL_DIR) $(1)/usr/lib/
51        $(CP) \
52                $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} \
53                $(1)/usr/lib/
54        $(INSTALL_DIR) $(2)/bin
55        $(INSTALL_BIN) \
56                $(PKG_INSTALL_DIR)/usr/bin/xapian-config \
57                $(2)/bin
58        $(SED) 's,prefix=",prefix="$(STAGING_DIR),g' $(2)/bin/xapian-config
59
60        #FIXME: Libtool should handle this
61        if [ -f $(TOOLCHAIN_DIR)/usr/lib/libstdc++.la ]; then \
62          $(SED) \
63                "s,$(STAGING_DIR)/usr/lib/libstdc++,$(TOOLCHAIN_DIR)/usr/lib/libstdc++,g" \
64                $(1)/usr/lib/libxapian.la ; \
65        else \
66          $(SED) \
67                "s,$(STAGING_DIR)/usr/lib/libstdc++,$(TOOLCHAIN_DIR)/lib/libstdc++,g" \
68                $(1)/usr/lib/libxapian.la ; \
69        fi
70endef
71
72define Package/libxapian/install
73        $(INSTALL_DIR) $(1)/usr/lib/
74        $(CP) \
75                $(PKG_INSTALL_DIR)/usr/lib/*.so* \
76                $(1)/usr/lib
77        $(INSTALL_DIR) $(1)/usr/bin/
78        $(INSTALL_BIN) \
79                $(PKG_INSTALL_DIR)/usr/bin/* \
80                $(1)/usr/bin
81endef
82
83$(eval $(call BuildPackage,libxapian))
Note: See TracBrowser for help on using the repository browser.