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