change cp to $(CP)
[openwrt.git] / package / e2fsprogs / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=e2fsprogs
6 PKG_VERSION:=1.38
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=d774d4412bfb80d12cf3a4fdfd59de5a
9
10 PKG_SOURCE_URL:=@SF/e2fsprogs
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,E2FSPROGS,$(PKG_NAME),$(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 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
26 LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
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=/sbin \
44 --sysconfdir=/etc \
45 $(DISABLE_LARGEFILE) \
46 $(DISABLE_NLS) \
47 --enable-shared \
48 --enable-static \
49 --disable-rpath \
50 --with-gnu-ld \
51 --enable-elf-shlibs \
52 --enable-dynamic-e2fsck \
53 );
54 touch $@
55
56 $(PKG_BUILD_DIR)/.built:
57 rm -rf $(PKG_INSTALL_DIR)
58 mkdir -p $(PKG_INSTALL_DIR)
59 $(MAKE) -C $(PKG_BUILD_DIR)/util \
60 BUILDCC="$(HOSTCC)" \
61 CFLAGS="" \
62 subst
63 $(MAKE) -C $(PKG_BUILD_DIR) \
64 BUILDCC="$(HOSTCC)" \
65 DESTDIR="$(PKG_INSTALL_DIR)" \
66 all install
67 touch $@
68 touch $@
69
70 $(IPKG_E2FSPROGS):
71 mkdir -p $(IDIR_E2FSPROGS)/sbin
72 $(CP) $(PKG_INSTALL_DIR)/sbin/e2fsck $(IDIR_E2FSPROGS)/sbin/
73 $(CP) $(PKG_INSTALL_DIR)/sbin/mke2fs $(IDIR_E2FSPROGS)/sbin/
74 $(CP) $(PKG_INSTALL_DIR)/sbin/mkfs.ext{2,3} $(IDIR_E2FSPROGS)/sbin/
75 $(CP) $(PKG_INSTALL_DIR)/sbin/tune2fs $(IDIR_E2FSPROGS)/sbin/
76 mkdir -p $(IDIR_E2FSPROGS)/usr/lib
77 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{blkid,com_err,e2p,ext2fs,uuid}.so.* $(IDIR_E2FSPROGS)/usr/lib/
78 $(RSTRIP) $(IDIR_E2FSPROGS)
79 $(IPKG_BUILD) $(IDIR_E2FSPROGS) $(PACKAGE_DIR)
This page took 0.051497 seconds and 5 git commands to generate.