show md5sums on mismatch in download.pl
[openwrt.git] / tools / ext2fs / 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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=genext2fs
12 PKG_VERSION:=1.4rc1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
16 PKG_MD5SUM:=664431bf6737df1c265500e1f0b5d40c
17 PKG_CAT:=zcat
18
19 include $(INCLUDE_DIR)/host-build.mk
20
21 define Build/Configure
22 ( cd $(PKG_BUILD_DIR); \
23 ./configure \
24 --target=$(GNU_HOST_NAME) \
25 --host=$(GNU_HOST_NAME) \
26 --build=$(GNU_HOST_NAME) \
27 --program-prefix="" \
28 --program-suffix="" \
29 --prefix=/usr \
30 --exec-prefix=/usr \
31 --bindir=/usr/bin \
32 --sbindir=/usr/sbin \
33 --libexecdir=/usr/lib \
34 --sysconfdir=/etc \
35 --datadir=/usr/share \
36 --localstatedir=/var \
37 --mandir=/usr/man \
38 --infodir=/usr/info \
39 )
40 endef
41
42 define Build/Compile
43 $(MAKE) -C $(PKG_BUILD_DIR) \
44 CFLAGS="$(HOST_CFLAGS) -include getline.h" \
45 all
46 endef
47
48 define Build/Install
49 install -m0755 $(PKG_BUILD_DIR)/genext2fs $(STAGING_DIR_HOST)/bin/
50 endef
51
52 define Build/Clean
53 rm -f $(STAGING_DIR_HOST)/bin/genext2fs
54 endef
55
56 $(eval $(call HostBuild))
This page took 0.044542 seconds and 5 git commands to generate.