2006-07-22 16:33:33 +00: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 03:05:10 +00:00
|
|
|
PKG_VERSION:=1.4.1
|
2006-07-22 16:33:33 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2009-02-17 03:05:10 +00:00
|
|
|
PKG_SOURCE_URL:=@SF/genext2fs
|
|
|
|
PKG_MD5SUM:=b7b6361bcce2cedff1ae437fadafe53b
|
2006-07-22 16:33:33 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
2012-01-15 11:43:13 +00:00
|
|
|
HOST_CONFIGURE_ARGS = \
|
|
|
|
--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 \
|
2006-09-10 09:56:42 +00:00
|
|
|
|
2009-02-22 04:37:20 +00:00
|
|
|
define Host/Compile
|
|
|
|
$(MAKE) -C $(HOST_BUILD_DIR) \
|
2012-02-12 16:12:08 +00:00
|
|
|
CFLAGS="$(HOST_CFLAGS)" \
|
2012-08-10 19:26:28 +00:00
|
|
|
LDFLAGS="$(HOST_LDFLAGS) -static" \
|
2006-10-10 16:36:47 +00:00
|
|
|
all
|
2006-07-22 16:33:33 +00:00
|
|
|
endef
|
|
|
|
|
2009-02-22 04:37:20 +00:00
|
|
|
define Host/Install
|
|
|
|
install -m0755 $(HOST_BUILD_DIR)/genext2fs $(STAGING_DIR_HOST)/bin/
|
2006-07-22 16:33:33 +00:00
|
|
|
endef
|
|
|
|
|
2009-02-22 04:37:20 +00:00
|
|
|
define Host/Clean
|
2007-08-07 00:04:25 +00:00
|
|
|
rm -f $(STAGING_DIR_HOST)/bin/genext2fs
|
2006-09-24 20:49:31 +00:00
|
|
|
endef
|
|
|
|
|
2006-07-22 16:33:33 +00:00
|
|
|
$(eval $(call HostBuild))
|