[package] iproute2: cleanup Makefile after r21513
[openwrt.git] / package / libtool / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libtool
11 PKG_VERSION:=1.5.26
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@GNU/libtool
16 PKG_MD5SUM:=aa9c5107f3ec9ef4200eb6556f3b3c29
17
18 HOST_PATCH_DIR=/dev/null
19
20 PKG_BUILD_DEPENDS:=libtool/host
21
22 include $(INCLUDE_DIR)/host-build.mk
23 include $(INCLUDE_DIR)/package.mk
24
25 CONFIGURE_PREFIX=$(STAGING_DIR)/host
26 export GLOBAL_LIBDIR=$(STAGING_DIR)/usr/lib
27
28 define Package/libltdl
29 SECTION:=libs
30 CATEGORY:=Libraries
31 TITLE:=A generic dynamic object loading library
32 URL:=http://www.gnu.org/software/libtool/
33 endef
34
35 define Build/InstallDev
36 $(MAKE) -C $(PKG_BUILD_DIR) \
37 bindir="$(2)/bin" \
38 datadir="$(2)/share" \
39 prefix="$(2)" \
40 exec_prefix="$(2)" \
41 install
42 $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/include
43 mv $(2)/lib/* $(1)/usr/lib/
44 mv $(2)/include/* $(1)/usr/include/
45 $(SED) 's,\(hardcode_into_libs\)=yes,\1=no,g' $(2)/bin/libtool
46 $(CP) $(2)/bin/libtool $(2)/bin/libtool-ucxx
47 $(SED) 's,-lstdc++,-luClibc++,g' $(2)/bin/libtool-ucxx
48 endef
49
50 define Package/libltdl/install
51 $(INSTALL_DIR) $(1)/usr/lib
52 $(CP) $(PKG_BUILD_DIR)/libltdl/.libs/libltdl.so.* $(1)/usr/lib/
53 endef
54
55 $(eval $(call HostBuild))
56 $(eval $(call BuildPackage,libltdl))
This page took 0.040137 seconds and 5 git commands to generate.