2006-07-22 19:33:33 +03:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=genext2fs
|
2009-02-17 05:05:10 +02:00
|
|
|
PKG_VERSION:=1.4.1
|
2006-07-22 19:33:33 +03:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2009-02-17 05:05:10 +02:00
|
|
|
PKG_SOURCE_URL:=@SF/genext2fs
|
|
|
|
PKG_MD5SUM:=b7b6361bcce2cedff1ae437fadafe53b
|
2006-07-22 19:33:33 +03:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
2009-02-22 06:37:20 +02:00
|
|
|
define Host/Configure
|
|
|
|
( cd $(HOST_BUILD_DIR); \
|
2006-09-10 12:56:42 +03:00
|
|
|
./configure \
|
|
|
|
--target=$(GNU_HOST_NAME) \
|
|
|
|
--host=$(GNU_HOST_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--program-prefix="" \
|
|
|
|
--program-suffix="" \
|
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
|
|
|
--bindir=/usr/bin \
|
|
|
|
--sbindir=/usr/sbin \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--datadir=/usr/share \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--mandir=/usr/man \
|
|
|
|
--infodir=/usr/info \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
2009-02-22 06:37:20 +02:00
|
|
|
define Host/Compile
|
|
|
|
$(MAKE) -C $(HOST_BUILD_DIR) \
|
2007-08-07 03:04:25 +03:00
|
|
|
CFLAGS="$(HOST_CFLAGS) -include getline.h" \
|
2006-10-10 19:36:47 +03:00
|
|
|
all
|
2006-07-22 19:33:33 +03:00
|
|
|
endef
|
|
|
|
|
2009-02-22 06:37:20 +02:00
|
|
|
define Host/Install
|
|
|
|
install -m0755 $(HOST_BUILD_DIR)/genext2fs $(STAGING_DIR_HOST)/bin/
|
2006-07-22 19:33:33 +03:00
|
|
|
endef
|
|
|
|
|
2009-02-22 06:37:20 +02:00
|
|
|
define Host/Clean
|
2007-08-07 03:04:25 +03:00
|
|
|
rm -f $(STAGING_DIR_HOST)/bin/genext2fs
|
2006-09-24 23:49:31 +03:00
|
|
|
endef
|
|
|
|
|
2006-07-22 19:33:33 +03:00
|
|
|
$(eval $(call HostBuild))
|