update to new upstream release (v0.9.2),
[openwrt.git] / openwrt / 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:=http://ftp.gnu.org/gnu/libtool/ \
11 ftp://ftp.belnet.be/mirror/ftp.gnu.org/gnu/libtool/ \
12 ftp://ftp.mirror.nl/pub/mirror/gnu/libtool/ \
13 http://mirror.switch.ch/ftp/mirror/gnu/libtool/
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_CAT:=zcat
16
17 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
18 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
19
20 include $(TOPDIR)/package/rules.mk
21
22 $(eval $(call PKG_template,LIBLTDL,libltdl,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
23
24 $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
25 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
26 $(TARGET_CONFIGURE_OPTS) \
27 CFLAGS="$(TARGET_CFLAGS)" \
28 ./configure \
29 --target=$(GNU_TARGET_NAME) \
30 --host=$(GNU_TARGET_NAME) \
31 --build=$(GNU_HOST_NAME) \
32 --program-prefix="" \
33 --program-suffix="" \
34 --prefix=/usr \
35 --exec-prefix=/usr \
36 --bindir=/usr/bin \
37 --datadir=/usr/share \
38 --includedir=/usr/include \
39 --infodir=/usr/share/info \
40 --libdir=/usr/lib \
41 --libexecdir=/usr/lib \
42 --localstatedir=/var \
43 --mandir=/usr/share/man \
44 --sbindir=/usr/sbin \
45 --sysconfdir=/etc \
46 $(DISABLE_NLS) \
47 $(DISABLE_LARGEFILE) \
48 --enable-shared \
49 --enable-static \
50 );
51 touch $@
52
53 $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured
54 rm -rf $(PKG_INSTALL_DIR)
55 mkdir -p $(PKG_INSTALL_DIR)
56 $(MAKE) -C $(PKG_BUILD_DIR) \
57 DESTDIR="$(PKG_INSTALL_DIR)" \
58 all install
59 touch $@
60
61 $(IPKG_LIBLTDL):
62 install -m0755 -d $(IDIR_LIBLTDL)/usr/lib
63 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libltdl.so.* $(IDIR_LIBLTDL)/usr/lib/
64 $(RSTRIP) $(IDIR_LIBLTDL)
65 $(IPKG_BUILD) $(IDIR_LIBLTDL) $(PACKAGE_DIR)
66
67 $(STAGING_DIR)/usr/lib/libltdl.so: $(PKG_BUILD_DIR)/.built
68 mkdir -p $(STAGING_DIR)/usr/include
69 cp -fpR $(PKG_INSTALL_DIR)/usr/include/ltdl.h $(STAGING_DIR)/usr/include/
70 mkdir -p $(I_LIBLTDL_DEV)/usr/lib
71 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libltdl.{a,so*} $(STAGING_DIR)/usr/lib/
72 touch $@
73
74 install-dev: $(STAGING_DIR)/usr/lib/libltdl.so
75
76 uninstall-dev:
77 rm -rf \
78 $(STAGING_DIR)/usr/include/ltdl.h \
79 $(STAGING_DIR)/usr/lib/libltdl.{a,so*} \
80
81 compile: install-dev
82 clean: uninstall-dev
This page took 0.046201 seconds and 5 git commands to generate.