[packages] libtool: I don't know what crackhead thought that relinking with /usr...
[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:=2.4
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@GNU/libtool
16 PKG_MD5SUM:=b32b04148ecdd7344abc6fe8bd1bb021
17
18 PKG_BUILD_DEPENDS:=libtool/host
19
20 PKG_BUILD_PARALLEL:=0
21 HOST_BUILD_PARALLEL:=0
22
23 include $(INCLUDE_DIR)/host-build.mk
24 include $(INCLUDE_DIR)/package.mk
25
26 CONFIGURE_PREFIX=$(STAGING_DIR)/host
27 export GLOBAL_LIBDIR=$(STAGING_DIR)/usr/lib
28
29 define Package/libltdl
30 SECTION:=libs
31 CATEGORY:=Libraries
32 TITLE:=A generic dynamic object loading library
33 URL:=http://www.gnu.org/software/libtool/
34 endef
35
36 define Build/InstallDev
37 $(MAKE) -C $(PKG_BUILD_DIR) \
38 bindir="$(2)/bin" \
39 datadir="$(2)/share" \
40 prefix="$(2)" \
41 exec_prefix="$(2)" \
42 install
43 $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/include
44 mv $(2)/lib/* $(1)/usr/lib/
45 mv $(2)/include/* $(1)/usr/include/
46 $(SED) 's,\(hardcode_into_libs\)=yes,\1=no,g' $(2)/bin/libtool
47 $(CP) $(2)/bin/libtool $(2)/bin/libtool-ucxx
48 $(SED) 's,-lstdc++,-luClibc++,g' $(2)/bin/libtool-ucxx
49 endef
50
51 define Package/libltdl/install
52 $(INSTALL_DIR) $(1)/usr/lib
53 $(CP) $(PKG_BUILD_DIR)/libltdl/.libs/libltdl.so.* $(1)/usr/lib/
54 endef
55
56 $(eval $(call HostBuild))
57 $(eval $(call BuildPackage,libltdl))
This page took 0.051466 seconds and 5 git commands to generate.