2014-11-03 08:01:08 +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
|
2010-12-03 11:56:47 +00:00
|
|
|
PKG_VERSION:=2.4
|
2007-12-27 02:10:23 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@GNU/libtool
|
2010-12-03 23:22:39 +00:00
|
|
|
PKG_MD5SUM:=b32b04148ecdd7344abc6fe8bd1bb021
|
2007-12-27 02:10:23 +00:00
|
|
|
|
2014-11-03 08:01:08 +00:00
|
|
|
PKG_LICENSE:=GPL-2.0+ LGPL-2.0+
|
2012-10-19 15:34:28 +00:00
|
|
|
PKG_LICENSE_FILES:=COPYING
|
|
|
|
|
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
|
|
|
|
|
|
|
|
CONFIGURE_PREFIX=$(STAGING_DIR)/host
|
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) \
|
2007-12-27 02:11:03 +00:00
|
|
|
bindir="$(2)/bin" \
|
|
|
|
datadir="$(2)/share" \
|
2007-12-27 02:10:23 +00:00
|
|
|
prefix="$(2)" \
|
|
|
|
exec_prefix="$(2)" \
|
|
|
|
install
|
2007-12-27 12:35:03 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib $(1)/usr/include
|
|
|
|
mv $(2)/lib/* $(1)/usr/lib/
|
2007-12-27 02:11:14 +00:00
|
|
|
mv $(2)/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))
|