b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | # |
| 2 | # Copyright (C) 2006-2016 OpenWrt.org |
| 3 | # |
| 4 | # This is free software, licensed under the GNU General Public License v2. |
| 5 | # See /LICENSE for more information. |
| 6 | # |
| 7 | include $(TOPDIR)/rules.mk |
| 8 | |
| 9 | PKG_NAME:=findutils |
| 10 | PKG_CPE_ID:=cpe:/a:gnu:findutils |
| 11 | PKG_VERSION:=4.10.0 |
| 12 | |
| 13 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz |
| 14 | PKG_SOURCE_URL:=@GNU/$(PKG_NAME) |
| 15 | PKG_HASH:=1387e0b67ff247d2abde998f90dfbf70c1491391a59ddfecb8ae698789f0a4f5 |
| 16 | |
| 17 | PKG_PROGRAMS:=find locate updatedb xargs |
| 18 | |
| 19 | HOST_BUILD_PARALLEL:=1 |
| 20 | |
| 21 | include $(INCLUDE_DIR)/host-build.mk |
| 22 | |
| 23 | ifeq ($(HOST_OS),Darwin) |
| 24 | HOST_CFLAGS +=-D__nonnull\\(params\\)= |
| 25 | endif |
| 26 | |
| 27 | HOST_CONFIGURE_ARGS += \ |
| 28 | --enable-threads=pth \ |
| 29 | --disable-rpath \ |
| 30 | --disable-nls \ |
| 31 | --without-selinux |
| 32 | |
| 33 | define Host/Uninstall |
| 34 | -$(call Host/Compile/Default,uninstall) |
| 35 | endef |
| 36 | |
| 37 | $(eval $(call HostBuild)) |