2014-11-30 09:51:48 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2014 OpenWrt.org
|
|
|
|
#
|
2019-06-15 09:07:53 +00:00
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
2014-11-30 09:51:48 +00:00
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=gengetopt
|
2019-06-15 09:07:53 +00:00
|
|
|
PKG_VERSION:=2.23
|
2014-11-30 09:51:48 +00:00
|
|
|
|
2019-06-15 09:07:53 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
2014-11-30 09:51:48 +00:00
|
|
|
PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
|
2019-06-15 09:07:53 +00:00
|
|
|
PKG_HASH:=b941aec9011864978dd7fdeb052b1943535824169d2aa2b0e7eae9ab807584ac
|
2014-11-30 09:51:48 +00:00
|
|
|
|
2023-03-26 08:11:13 +00:00
|
|
|
PKG_SUBDIRS:=$$$$(foreach dir,gl src skels,$$$$(wildcard $$$$(dir)) )
|
2014-11-30 20:12:07 +00:00
|
|
|
|
2014-11-30 09:51:48 +00:00
|
|
|
HOST_BUILD_PARALLEL:=1
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
2023-03-26 08:11:13 +00:00
|
|
|
define Host/Compile
|
|
|
|
$(call Host/Compile/Default,SUBDIRS='$(PKG_SUBDIRS)')
|
|
|
|
endef
|
|
|
|
|
2014-11-30 09:51:48 +00:00
|
|
|
define Host/Install
|
|
|
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/src/gengetopt $(STAGING_DIR_HOST)/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Clean
|
|
|
|
rm -f $(STAGING_DIR_HOST)/bin/gengetopt
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|