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
18 HOST_PATCH_DIR
=/dev
/null
20 PKG_BUILD_DEPENDS
:=libtool
/host
23 HOST_BUILD_PARALLEL
:=0
25 include $(INCLUDE_DIR
)/host-build.mk
26 include $(INCLUDE_DIR
)/package.mk
28 CONFIGURE_PREFIX
=$(STAGING_DIR
)/host
29 export GLOBAL_LIBDIR
=$(STAGING_DIR
)/usr
/lib
31 define Package
/libltdl
34 TITLE
:=A generic dynamic object loading library
35 URL
:=http
://www.gnu.org
/software
/libtool
/
38 define Build
/InstallDev
39 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
41 datadir="$(2)/share" \
45 $(INSTALL_DIR
) $(1)/usr
/lib
$(1)/usr
/include
46 mv
$(2)/lib
/* $(1)/usr
/lib
/
47 mv
$(2)/include/* $(1)/usr
/include/
48 $(SED
) 's,\(hardcode_into_libs\)=yes,\1=no,g' $(2)/bin
/libtool
49 $(CP
) $(2)/bin
/libtool
$(2)/bin
/libtool-ucxx
50 $(SED
) 's,-lstdc++,-luClibc++,g' $(2)/bin
/libtool-ucxx
51 [ -h
$(STAGING_DIR
)/host
/share
/aclocal
] && \
52 rm -rf
$(TMP_DIR
)/stage-
$(PKG_NAME
)/host
/share
/aclocal || true
55 define Package
/libltdl
/install
56 $(INSTALL_DIR
) $(1)/usr
/lib
57 $(CP
) $(PKG_BUILD_DIR
)/libltdl
/.libs
/libltdl.so.
* $(1)/usr
/lib
/
60 $(eval
$(call HostBuild
))
61 $(eval
$(call BuildPackage
,libltdl
))