git: 91147ff9ecd3 - main - audio/snack: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 23 Jul 2023 15:53:13 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=91147ff9ecd3a14284450729df351503ce0743df
commit 91147ff9ecd3a14284450729df351503ce0743df
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-23 12:31:08 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-23 15:53:02 +0000
audio/snack: Fix build with llvm16
- Add Missing DEPENDS reported by poudriere testport
- Pet portclippy
Sponsored by: The FreeBSD Foundation
---
audio/snack/Makefile | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/audio/snack/Makefile b/audio/snack/Makefile
index d75cec008da0..d01123e960c5 100644
--- a/audio/snack/Makefile
+++ b/audio/snack/Makefile
@@ -12,12 +12,17 @@ WWW= https://www.speech.kth.se/snack/
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/../COPYING
-USES= tk:tea
+LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
+ libfreetype.so:print/freetype2
+
+USES= tk:tea xorg
USE_LDCONFIG= ${PREFIX}/lib/snack${PORTVERSION:R}
+USE_XORG= x11 xscrnsaver xext xft xrender
+
MAKE_ENV= prefix=${PREFIX} exec_prefix=${PREFIX}
-WRKSRC_SUBDIR= unix
PATCH_WRKSRC= ${WRKDIR}/${DISTNAME}
+WRKSRC_SUBDIR= unix
PLIST_SUB= SNACK_VER=${PORTVERSION:R}
PORTDOCS= *
@@ -30,6 +35,12 @@ VORBIS_CONFIGURE_ON= --with-ogg-include=${LOCALBASE}/include \
--with-ogg-lib=${LOCALBASE}/lib
VORBIS_ALL_TARGET= all libsnackogg.so
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+= -Wno-error=incompatible-function-pointer-types
+.endif
+
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/snack${PORTVERSION:R}/*.so