blob: 5a5b5eb7cbb7a7326db1b7cc19dc4f0da0ca92ed [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#
2# Copyright (C) 2014 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:=gengetopt
10PKG_VERSION:=2.23
11
12PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
13PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
14PKG_HASH:=b941aec9011864978dd7fdeb052b1943535824169d2aa2b0e7eae9ab807584ac
15
16PKG_SUBDIRS:=$$$$(foreach dir,gl src skels,$$$$(wildcard $$$$(dir)) )
17
18HOST_BUILD_PARALLEL:=1
19
20include $(INCLUDE_DIR)/host-build.mk
21
22define Host/Compile
23 $(call Host/Compile/Default,SUBDIRS='$(PKG_SUBDIRS)')
24endef
25
26define Host/Install
27 $(INSTALL_BIN) $(HOST_BUILD_DIR)/src/gengetopt $(STAGING_DIR_HOST)/bin/
28endef
29
30define Host/Clean
31 rm -f $(STAGING_DIR_HOST)/bin/gengetopt
32endef
33
34$(eval $(call HostBuild))