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
|
|
|
|
2009-04-20 17:57:24 +00:00
|
|
|
HOST_PATCH_DIR=/dev/null
|
|
|
|
|
2009-04-22 22:05:51 +00:00
|
|
|
PKG_BUILD_DEPENDS:=libtool/host
|
|
|
|
|
2010-10-27 19:39:09 +00:00
|
|
|
PKG_BUILD_PARALLEL:=0
|
|
|
|
HOST_BUILD_PARALLEL:=0
|
|
|
|
|
2009-04-20 17:57:24 +00:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
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/
|
2009-04-17 14:44:50 +00:00
|
|
|
$(SED) 's,\(hardcode_into_libs\)=yes,\1=no,g' $(2)/bin/libtool
|
2009-06-04 00:20:01 +00:00
|
|
|
$(CP) $(2)/bin/libtool $(2)/bin/libtool-ucxx
|
|
|
|
$(SED) 's,-lstdc++,-luClibc++,g' $(2)/bin/libtool-ucxx
|
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
|
|
|
|
|
2009-04-20 17:57:24 +00:00
|
|
|
$(eval $(call HostBuild))
|
2007-12-27 02:10:23 +00:00
|
|
|
$(eval $(call BuildPackage,libltdl))
|