Skip to content

Commit

Permalink
audio/playgsf: Improve port
Browse files Browse the repository at this point in the history
* Pacify portlint/portfmt/portclippy
* Convert post-extract to EXTRACT_AFTER_ARGS to reduce I/O
  (skips extracting)

PR:		278765
  • Loading branch information
ehaupt committed May 18, 2024
1 parent eceefb2 commit 065f61c
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions audio/playgsf/Makefile
Original file line number Diff line number Diff line change
@@ -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} \
Expand Down

0 comments on commit 065f61c

Please sign in to comment.