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
:=d0071c890101fcf4f2be8934a37841b0
18 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
20 HOST_PATCH_DIR
=/dev
/null
22 PKG_BUILD_DEPENDS
:=libtool
/host
24 include $(INCLUDE_DIR
)/host-build.mk
25 include $(INCLUDE_DIR
)/package.mk
27 CONFIGURE_PREFIX
=$(STAGING_DIR
)/host
28 export GLOBAL_LIBDIR
=$(STAGING_DIR
)/usr
/lib
30 define Package
/libltdl
33 TITLE
:=A generic dynamic object loading library
34 URL
:=http
://www.gnu.org
/software
/libtool
/
37 define Build
/InstallDev
38 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
40 datadir="$(2)/share" \
44 $(INSTALL_DIR
) $(1)/usr
/lib
$(1)/usr
/include
45 mv
$(2)/lib
/* $(1)/usr
/lib
/
46 mv
$(2)/include/* $(1)/usr
/include/
47 $(SED
) 's,\(hardcode_into_libs\)=yes,\1=no,g' $(2)/bin
/libtool
48 $(CP
) $(2)/bin
/libtool
$(2)/bin
/libtool-ucxx
49 $(SED
) 's,-lstdc++,-luClibc++,g' $(2)/bin
/libtool-ucxx
52 define Package
/libltdl
/install
53 $(INSTALL_DIR
) $(1)/usr
/lib
54 $(CP
) $(PKG_BUILD_DIR
)/libltdl
/.libs
/libltdl.so.
* $(1)/usr
/lib
/
57 $(eval
$(call HostBuild
))
58 $(eval
$(call BuildPackage
,libltdl
))