git: 065f61c4c8b6 - main - audio/playgsf: Improve port

From: Emanuel Haupt <ehaupt_at_FreeBSD.org>
Date: Sat, 18 May 2024 05:44:18 UTC
The branch main has been updated by ehaupt:

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

commit 065f61c4c8b6023e7fd5ade1531d1e7145affad0
Author:     Emanuel Haupt <ehaupt@FreeBSD.org>
AuthorDate: 2024-05-18 05:44:06 +0000
Commit:     Emanuel Haupt <ehaupt@FreeBSD.org>
CommitDate: 2024-05-18 05:44:14 +0000

    audio/playgsf: Improve port
    
    * Pacify portlint/portfmt/portclippy
    * Convert post-extract to EXTRACT_AFTER_ARGS to reduce I/O
      (skips extracting)
    
    PR:             278765
---
 audio/playgsf/Makefile | 21 +++++++++------------
 1 file changed, 9 insertions(+), 12 deletions(-)

diff --git a/audio/playgsf/Makefile b/audio/playgsf/Makefile
index 2c6c2c46e5f5..45fb748e418d 100644
--- a/audio/playgsf/Makefile
+++ b/audio/playgsf/Makefile
@@ -1,34 +1,31 @@
 PORTNAME=	playgsf
-PORTVERSION=	0.7.1
-PORTREVISION=	4
+DISTVERSION=	0.7.1
+PORTREVISION=	5
 CATEGORIES=	audio
 MASTER_SITES=	http://projects.raphnet.net/playgsf/ \
 		LOCAL/ehaupt
 
 MAINTAINER=	ehaupt@FreeBSD.org
 COMMENT=	Command-line player for gsf audio files
-WWW=		http://projects.raphnet.net/ #playgsf
+WWW=		http://projects.raphnet.net/
 
 LICENSE=	GPLv2+ LGPL21 NONE
 LICENSE_COMB=	multi
 LICENSE_FILE_LGPL21=	${WRKSRC}/libresample-0.1.3/LICENSE.txt
 
+ONLY_FOR_ARCHS=	amd64 i386 powerpc powerpc64 powerpc64le
+
 LIB_DEPENDS=	libao.so:audio/libao
 
 USES=		dos2unix gmake localbase:ldflags
 GNU_CONFIGURE=	yes
-CONFIGURE_ARGS=	--enable-ccore \
-		--disable-optimisations
-
-PLIST_FILES=	bin/playgsf
+CONFIGURE_ARGS=	--disable-optimisations \
+		--enable-ccore
 
-ONLY_FOR_ARCHS=	i386 amd64 powerpc64le powerpc64 powerpc
+EXTRACT_AFTER_ARGS=	--exclude libresample-0.1.3/libresample.a
 
 PORTSCOUT=	skipv:0.7.2
-
-post-extract:
-	# Don't use accidentally packaged static library
-	@${RM} ${WRKSRC}/libresample-0.1.3/libresample.a
+PLIST_FILES=	bin/playgsf
 
 post-patch:
 	@${REINPLACE_CMD} \