2007-12-27 04:10:23 +02: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
|
2009-09-25 01:19:33 +03:00
|
|
|
PKG_VERSION:=1.5.26
|
2007-12-27 04:10:23 +02:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@GNU/libtool
|
2009-09-25 01:19:33 +03:00
|
|
|
PKG_MD5SUM:=aa9c5107f3ec9ef4200eb6556f3b3c29
|
2007-12-27 04:10:23 +02:00
|
|
|
|
2009-04-20 20:57:24 +03:00
|
|
|
HOST_PATCH_DIR=/dev/null
|
|
|
|
|
2009-04-23 01:05:51 +03:00
|
|
|
PKG_BUILD_DEPENDS:=libtool/host
|
|
|
|
|
2009-04-20 20:57:24 +03:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
2007-12-27 04:10:23 +02:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
CONFIGURE_PREFIX=$(STAGING_DIR)/host
|
2007-12-27 04:11:03 +02:00
|
|
|
export GLOBAL_LIBDIR=$(STAGING_DIR)/usr/lib
|
2007-12-27 04:10:23 +02: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 04:11:03 +02:00
|
|
|
bindir="$(2)/bin" \
|
|
|
|
datadir="$(2)/share" \
|
2007-12-27 04:10:23 +02:00
|
|
|
prefix="$(2)" \
|
|
|
|
exec_prefix="$(2)" \
|
|
|
|
install
|
2007-12-27 14:35:03 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib $(1)/usr/include
|
|
|
|
mv $(2)/lib/* $(1)/usr/lib/
|
2007-12-27 04:11:14 +02:00
|
|
|
mv $(2)/include/* $(1)/usr/include/
|
2009-04-17 17:44:50 +03:00
|
|
|
$(SED) 's,\(hardcode_into_libs\)=yes,\1=no,g' $(2)/bin/libtool
|
2009-06-04 03:20:01 +03:00
|
|
|
$(CP) $(2)/bin/libtool $(2)/bin/libtool-ucxx
|
|
|
|
$(SED) 's,-lstdc++,-luClibc++,g' $(2)/bin/libtool-ucxx
|
2007-12-27 04:10:23 +02: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 20:57:24 +03:00
|
|
|
$(eval $(call HostBuild))
|
2007-12-27 04:10:23 +02:00
|
|
|
$(eval $(call BuildPackage,libltdl))
|