git: 08721b3f0662 - main - Makefile: Fix `make index` on FreeBSD 13

From: Yasuhiro Kimura <yasu_at_FreeBSD.org>
Date: Mon, 28 Apr 2025 01:01:03 UTC
The branch main has been updated by yasu:

URL: https://cgit.FreeBSD.org/ports/commit/?id=08721b3f06620b328fe9071649ed84b207ebcd06

commit 08721b3f06620b328fe9071649ed84b207ebcd06
Author:     Yasuhiro Kimura <yasu@FreeBSD.org>
AuthorDate: 2025-04-26 22:00:18 +0000
Commit:     Yasuhiro Kimura <yasu@FreeBSD.org>
CommitDate: 2025-04-28 00:56:36 +0000

    Makefile: Fix `make index` on FreeBSD 13
    
    With recent main branch `make index` causes following warning message
    on FreeeBSD 13.
    
    make_index: Circular dependency loop found: glib-2.84.1_2,2 depends upon itself.
    
    And it generates empty index file.
    
    The issue seems to happen because /usr/libexec/make_index is used on
    FreeBSD 13. So fix it by changing Makefile so Tools/make_index is
    always used.
    
    PR:             285999
    Approved by:    portmgr (implicit, just fix it)
---
 Makefile | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/Makefile b/Makefile
index a04954ee9ecb..9563c5c266ae 100644
--- a/Makefile
+++ b/Makefile
@@ -116,11 +116,7 @@ INDEX_SHELL=		/bin/sh
 INDEX_PORTS=.
 .endif
 
-.if exists(/usr/libexec/make_index)
-MAKE_INDEX=	/usr/libexec/make_index /dev/stdin
-.else
 MAKE_INDEX=	perl ${.CURDIR}/Tools/make_index
-.endif
 
 ${INDEXDIR}/${INDEXFILE}: .PHONY
 	@${INDEX_ECHO_1ST} "Generating ${INDEXFILE} - please wait.."; \