source: trunk/package/libtool/Makefile @ 9941

Last change on this file since 9941 was 9941, checked in by nbd, 8 years ago

upgrade libtool, add fixes for libdir searching, fix up paths to .la files

File size: 1.2 KB
Line 
1#
2# Copyright (C) 2006 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7# $Id$
8
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=libtool
12PKG_VERSION:=1.5.24
13PKG_RELEASE:=1
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16PKG_SOURCE_URL:=@GNU/libtool
17PKG_MD5SUM:=8e0ac9797b62ba4dcc8a2fb7936412b0
18
19PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21include $(INCLUDE_DIR)/package.mk
22
23CONFIGURE_PREFIX=$(STAGING_DIR)/host
24export GLOBAL_LIBDIR=$(STAGING_DIR)/usr/lib
25
26define Package/libltdl
27  SECTION:=libs
28  CATEGORY:=Libraries
29  TITLE:=A generic dynamic object loading library
30  URL:=http://www.gnu.org/software/libtool/
31endef
32
33define Build/InstallDev
34        $(MAKE) -C $(PKG_BUILD_DIR) \
35                bindir="$(2)/bin" \
36                datadir="$(2)/share" \
37                prefix="$(2)" \
38                exec_prefix="$(2)" \
39                install
40        $(INSTALL_DIR) $(1)/lib
41        mv $(2)/lib/* $(1)/lib/
42#       $(SED) 's,^dlopen_self=unknown,dlopen_self=yes,' \
43#           -e 's,^dlopen_self_static=unknown,dlopen_self_static=no,' \
44#           -e 's,^link_all_deplibs=unknown,link_all_deplibs=no,' \
45#               $(2)/bin/libtool
46endef
47
48define Package/libltdl/install
49        $(INSTALL_DIR) $(1)/usr/lib
50        $(CP) $(PKG_BUILD_DIR)/libltdl/.libs/libltdl.so.* $(1)/usr/lib/
51endef
52
53$(eval $(call BuildPackage,libltdl))
Note: See TracBrowser for help on using the repository browser.