2006-07-22 18:33:33 +02:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=genext2fs
|
2009-02-17 04:05:10 +01:00
|
|
|
PKG_VERSION:=1.4.1
|
2006-07-22 18:33:33 +02:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2009-02-17 04:05:10 +01:00
|
|
|
PKG_SOURCE_URL:=@SF/genext2fs
|
|
|
|
PKG_MD5SUM:=b7b6361bcce2cedff1ae437fadafe53b
|
2006-07-22 18:33:33 +02:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
2009-02-22 05:37:20 +01:00
|
|
|
define Host/Configure
|
|
|
|
( cd $(HOST_BUILD_DIR); \
|
2006-09-10 11:56:42 +02: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 05:37:20 +01:00
|
|
|
define Host/Compile
|
|
|
|
$(MAKE) -C $(HOST_BUILD_DIR) \
|
2007-08-07 02:04:25 +02:00
|
|
|
CFLAGS="$(HOST_CFLAGS) -include getline.h" \
|
2006-10-10 18:36:47 +02:00
|
|
|
all
|
2006-07-22 18:33:33 +02:00
|
|
|
endef
|
|
|
|
|
2009-02-22 05:37:20 +01:00
|
|
|
define Host/Install
|
|
|
|
install -m0755 $(HOST_BUILD_DIR)/genext2fs $(STAGING_DIR_HOST)/bin/
|
2006-07-22 18:33:33 +02:00
|
|
|
endef
|
|
|
|
|
2009-02-22 05:37:20 +01:00
|
|
|
define Host/Clean
|
2007-08-07 02:04:25 +02:00
|
|
|
rm -f $(STAGING_DIR_HOST)/bin/genext2fs
|
2006-09-24 22:49:31 +02:00
|
|
|
endef
|
|
|
|
|
2006-07-22 18:33:33 +02:00
|
|
|
$(eval $(call HostBuild))
|