fix madwifi for the gemini target
[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.24
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@GNU/libtool
16 PKG_MD5SUM:=d0071c890101fcf4f2be8934a37841b0
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
19
20 HOST_PATCH_DIR=/dev/null
21
22 PKG_BUILD_DEPENDS:=libtool/host
23
24 include $(INCLUDE_DIR)/host-build.mk
25 include $(INCLUDE_DIR)/package.mk
26
27 CONFIGURE_PREFIX=$(STAGING_DIR)/host
28 CONFIGURE_VARS+= CXX=no
29 export GLOBAL_LIBDIR=$(STAGING_DIR)/usr/lib
30
31 define Package/libltdl
32 SECTION:=libs
33 CATEGORY:=Libraries
34 TITLE:=A generic dynamic object loading library
35 URL:=http://www.gnu.org/software/libtool/
36 endef
37
38 define Build/InstallDev
39 $(MAKE) -C $(PKG_BUILD_DIR) \
40 bindir="$(2)/bin" \
41 datadir="$(2)/share" \
42 prefix="$(2)" \
43 exec_prefix="$(2)" \
44 install
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 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.042094 seconds and 5 git commands to generate.