git: b10b5eaba2f2 - main - benchmarks/ttcp: Simplify Makefile

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Sat, 24 Feb 2024 08:47:25 UTC
The branch main has been updated by arrowd:

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

commit b10b5eaba2f20b96afa5ff129d759a9e62d7fb52
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2024-02-24 08:46:06 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2024-02-24 08:46:31 +0000

    benchmarks/ttcp: Simplify Makefile
    
    PR:             276759
---
 benchmarks/ttcp/Makefile | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/benchmarks/ttcp/Makefile b/benchmarks/ttcp/Makefile
index 32a074aa304f..1b9fdb08e70f 100644
--- a/benchmarks/ttcp/Makefile
+++ b/benchmarks/ttcp/Makefile
@@ -12,13 +12,10 @@ LICENSE=	BSD0CLAUSE
 CFLAGS+=	-Wno-strict-prototypes
 
 PLIST_FILES=			bin/ttcp share/man/man1/ttcp.1.gz
-PORTDOCS_PLIST_FILES=	share/doc/ttcp/README share/doc/ttcp/CHANGES \
-			share/doc/ttcp/LICENSE
 PORTDOCS=		README CHANGES LICENSE
 OPTIONS_DEFINE=	DOCS
-# because the ports framework doesn't cope well with bare ${PORTNAME} ${WRKSRC}
-post-extract:
-	${MV} ${WRKDIR}/${PORTNAME} ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+
+WRKSRC=		${WRKDIR}/${PORTNAME}
 
 do-build:
 	${CC} ${CFLAGS} -o ${WRKSRC}/ttcp ${WRKSRC}/ttcp.c