Upgrade to mutt-1.5.11, fixes gcc-4 specific errors, close #426
[openwrt.git] / package / libtool / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=libtool
6 PKG_VERSION:=1.5.14
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=049bf67de9b0eb75cd943dafe3d749ec
9
10 PKG_SOURCE_URL:=@GNU/libtool
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,LIBLTDL,libltdl,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured:
22 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
23 $(TARGET_CONFIGURE_OPTS) \
24 CFLAGS="$(TARGET_CFLAGS)" \
25 ./configure \
26 --target=$(GNU_TARGET_NAME) \
27 --host=$(GNU_TARGET_NAME) \
28 --build=$(GNU_HOST_NAME) \
29 --program-prefix="" \
30 --program-suffix="" \
31 --prefix=/usr \
32 --exec-prefix=/usr \
33 --bindir=/usr/bin \
34 --datadir=/usr/share \
35 --includedir=/usr/include \
36 --infodir=/usr/share/info \
37 --libdir=/usr/lib \
38 --libexecdir=/usr/lib \
39 --localstatedir=/var \
40 --mandir=/usr/share/man \
41 --sbindir=/usr/sbin \
42 --sysconfdir=/etc \
43 $(DISABLE_NLS) \
44 $(DISABLE_LARGEFILE) \
45 --enable-shared \
46 --enable-static \
47 );
48 touch $@
49
50 $(PKG_BUILD_DIR)/.built:
51 rm -rf $(PKG_INSTALL_DIR)
52 mkdir -p $(PKG_INSTALL_DIR)
53 $(MAKE) -C $(PKG_BUILD_DIR) \
54 DESTDIR="$(PKG_INSTALL_DIR)" \
55 all install
56 touch $@
57
58 $(IPKG_LIBLTDL):
59 install -m0755 -d $(IDIR_LIBLTDL)/usr/lib
60 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libltdl.so.* $(IDIR_LIBLTDL)/usr/lib/
61 $(RSTRIP) $(IDIR_LIBLTDL)
62 $(IPKG_BUILD) $(IDIR_LIBLTDL) $(PACKAGE_DIR)
63
64 $(STAGING_DIR)/usr/lib/libltdl.so: $(PKG_BUILD_DIR)/.built
65 mkdir -p $(STAGING_DIR)/usr/include
66 $(CP) $(PKG_INSTALL_DIR)/usr/include/ltdl.h $(STAGING_DIR)/usr/include/
67 mkdir -p $(I_LIBLTDL_DEV)/usr/lib
68 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libltdl.{a,so*} $(STAGING_DIR)/usr/lib/
69 touch $@
70
71 install-dev: $(STAGING_DIR)/usr/lib/libltdl.so
72
73 uninstall-dev:
74 rm -rf \
75 $(STAGING_DIR)/usr/include/ltdl.h \
76 $(STAGING_DIR)/usr/lib/libltdl.{a,so*} \
77
78 compile-targets: install-dev
79 clean-targets: uninstall-dev
This page took 0.046657 seconds and 5 git commands to generate.