2006-07-18 12:47:51 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libtool
|
2006-10-22 21:22:13 +00:00
|
|
|
PKG_VERSION:=1.5.22
|
2006-07-18 12:47:51 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@GNU/libtool
|
2006-10-22 21:22:13 +00:00
|
|
|
PKG_MD5SUM:=8e0ac9797b62ba4dcc8a2fb7936412b0
|
2006-07-18 12:47:51 +00:00
|
|
|
PKG_CAT:=zcat
|
|
|
|
|
2006-10-22 21:22:13 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
2006-07-18 12:47:51 +00:00
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libltdl
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=A generic dynamic object loading library
|
|
|
|
URL:=http://www.gnu.org/software/libtool/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
2006-10-22 21:22:13 +00:00
|
|
|
(cd $(PKG_BUILD_DIR); touch \
|
|
|
|
libltdl/configure.ac \
|
|
|
|
libltdl/acinclude.m4 \
|
|
|
|
libltdl/aclocal.m4 \
|
|
|
|
libltdl/Makefile.in \
|
|
|
|
libltdl/config-h.in \
|
|
|
|
libltdl/configure \
|
2006-07-18 12:47:51 +00:00
|
|
|
);
|
2006-10-22 21:22:13 +00:00
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
)
|
2006-07-18 12:47:51 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2006-11-03 00:10:50 +00:00
|
|
|
mkdir -p $(STAGING_DIR)/usr/bin
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/libtool $(STAGING_DIR)/usr/bin/
|
2006-07-18 12:47:51 +00:00
|
|
|
mkdir -p $(STAGING_DIR)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/ltdl.h $(STAGING_DIR)/usr/include/
|
|
|
|
mkdir -p $(I_LIBLTDL_DEV)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libltdl.{a,so*} $(STAGING_DIR)/usr/lib/
|
2006-11-03 00:10:50 +00:00
|
|
|
mkdir -p $(STAGING_DIR)/usr/share/libtool
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/libtool/config.guess $(STAGING_DIR)/usr/share/libtool/
|
|
|
|
$(SED) 's|^sys_lib_dlsearch_path_spec=.*|sys_lib_dlsearch_path_spec="$(STAGING_DIR)/usr/lib $(STAGING_DIR)/lib"|g' \
|
2006-11-03 00:52:23 +00:00
|
|
|
$(STAGING_DIR)/usr/bin/libtool
|
2006-07-18 12:47:51 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/UninstallDev
|
|
|
|
rm -rf \
|
2006-11-03 00:10:50 +00:00
|
|
|
$(STAGING_DIR)/usr/bin/libtool \
|
2006-07-18 12:47:51 +00:00
|
|
|
$(STAGING_DIR)/usr/include/ltdl.h \
|
2006-11-03 00:10:50 +00:00
|
|
|
$(STAGING_DIR)/usr/lib/libltdl.{a,so*} \
|
|
|
|
$(STAGING_DIR)/usr/share/libtool
|
2006-07-18 12:47:51 +00:00
|
|
|
endef
|
|
|
|
|
2006-10-22 21:22:13 +00:00
|
|
|
define Package/libltdl/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2006-10-22 21:22:13 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libltdl.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
2006-07-18 12:47:51 +00:00
|
|
|
$(eval $(call BuildPackage,libltdl))
|