2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@GNU/libtool
16 PKG_MD5SUM:=b32b04148ecdd7344abc6fe8bd1bb021
19 PKG_LICENSE_FILES:=COPYING
23 include $(INCLUDE_DIR)/package.mk
25 CONFIGURE_PREFIX=$(STAGING_DIR)/host
26 export GLOBAL_LIBDIR=$(STAGING_DIR)/usr/lib
28 define Package/libltdl
31 TITLE:=A generic dynamic object loading library
32 URL:=http://www.gnu.org/software/libtool/
35 define Build/InstallDev
36 $(MAKE) -C $(PKG_BUILD_DIR) \
38 datadir="$(2)/share" \
42 $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/include
43 mv $(2)/lib/* $(1)/usr/lib/
44 mv $(2)/include/* $(1)/usr/include/
47 define Package/libltdl/install
48 $(INSTALL_DIR) $(1)/usr/lib
49 $(CP) $(PKG_BUILD_DIR)/libltdl/.libs/libltdl.so.* $(1)/usr/lib/
52 $(eval $(call BuildPackage,libltdl))