2015-10-15 22:12:13 +00:00
|
|
|
#
|
2007-12-27 02:10:23 +00:00
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libtool
|
2018-03-20 00:41:05 +00:00
|
|
|
PKG_VERSION:=2.4.6
|
|
|
|
PKG_RELEASE:=1
|
2007-12-27 02:10:23 +00:00
|
|
|
|
2016-10-08 21:43:06 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
2007-12-27 02:10:23 +00:00
|
|
|
PKG_SOURCE_URL:=@GNU/libtool
|
2018-03-20 00:41:05 +00:00
|
|
|
PKG_HASH:=7c87a8c2c8c0fc9cd5019e402bed4292462d00a718a7cd5f11218153bf28b26f
|
2007-12-27 02:10:23 +00:00
|
|
|
|
2014-11-03 09:56:44 +00:00
|
|
|
PKG_LICENSE:=GPL-2.0+
|
2012-10-19 15:34:28 +00:00
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2017-09-28 02:55:46 +00:00
|
|
|
PKG_CPE_ID:=cpe:/a:gnu:libtool
|
2012-10-19 15:34:28 +00:00
|
|
|
|
2010-10-27 19:39:09 +00:00
|
|
|
PKG_BUILD_PARALLEL:=0
|
|
|
|
|
2007-12-27 02:10:23 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2017-01-10 17:43:57 +00:00
|
|
|
CONFIGURE_PREFIX=$(STAGING_DIR_HOSTPKG)
|
2007-12-27 02:11:03 +00:00
|
|
|
export GLOBAL_LIBDIR=$(STAGING_DIR)/usr/lib
|
2007-12-27 02:10:23 +00:00
|
|
|
|
|
|
|
define Package/libltdl
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=A generic dynamic object loading library
|
|
|
|
URL:=http://www.gnu.org/software/libtool/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
2017-01-21 23:28:54 +00:00
|
|
|
bindir="$(2)/libltdl/bin" \
|
|
|
|
datadir="$(2)/libltdl/share" \
|
|
|
|
prefix="$(2)/libltdl" \
|
|
|
|
exec_prefix="$(2)/libltdl" \
|
2007-12-27 02:10:23 +00:00
|
|
|
install
|
2007-12-27 12:35:03 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib $(1)/usr/include
|
2017-01-21 23:28:54 +00:00
|
|
|
mv $(2)/libltdl/lib/* $(1)/usr/lib/
|
|
|
|
mv $(2)/libltdl/include/* $(1)/usr/include/
|
2007-12-27 02:10:23 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libltdl/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/libltdl/.libs/libltdl.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libltdl))
|