git: db53b5afcb44 - main - audio/asunder: Fix build with llvm15
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 04 Jun 2023 13:23:36 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=db53b5afcb441a9e9f3e9d53d6e6e056b15cc0ee
commit db53b5afcb441a9e9f3e9d53d6e6e056b15cc0ee
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-04 12:33:12 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-04 13:23:25 +0000
audio/asunder: Fix build with llvm15
- Pet portclippy
- Add missing LIB_DEPENDS
Approved by: portmgr (blanket)
---
audio/asunder/Makefile | 26 +++++++++++++++++---------
1 file changed, 17 insertions(+), 9 deletions(-)
diff --git a/audio/asunder/Makefile b/audio/asunder/Makefile
index 7b9f7a20a53e..e7a8051a278b 100644
--- a/audio/asunder/Makefile
+++ b/audio/asunder/Makefile
@@ -1,6 +1,6 @@
PORTNAME= asunder
PORTVERSION= 2.9.6
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= audio
MASTER_SITES= http://littlesvr.ca/asunder/releases/
@@ -13,31 +13,39 @@ LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libcddb.so:audio/libcddb \
libfontconfig.so:x11-fonts/fontconfig \
- libfreetype.so:print/freetype2
+ libfreetype.so:print/freetype2 \
+ libharfbuzz.so:print/harfbuzz
+
RUN_DEPENDS= ${LOCALBASE}/bin/cdparanoia:audio/cdparanoia
USES= compiler:c11 desktop-file-utils gettext gmake gnome pkgconfig \
tar:bzip2
USE_GNOME= cairo gdkpixbuf2 gtk20 glib20 intltool intlhack
+
GNU_CONFIGURE= yes
+PORTDOCS= AUTHORS ChangeLog INSTALL NEWS README TODO
+
OPTIONS_DEFINE= LAME OGG FLAC OPUS WAVPACK APE WINDOWS_CHARS NLS DOCS
OPTIONS_DEFAULT= OGG FLAC
OPTIONS_SUB= yes
WINDOWS_CHARS_DESC= Allow Windows special chars in filenames
-PORTDOCS= AUTHORS ChangeLog INSTALL NEWS README TODO
-
+APE_RUN_DEPENDS= mac:audio/mac
+FLAC_RUN_DEPENDS= flac:audio/flac
LAME_RUN_DEPENDS= lame:audio/lame
+NLS_CONFIGURE_ENABLE= yes
OGG_RUN_DEPENDS= oggenc:audio/vorbis-tools
-FLAC_RUN_DEPENDS= flac:audio/flac
OPUS_RUN_DEPENDS= opusenc:audio/opus-tools
WAVPACK_RUN_DEPENDS= wavpack:audio/wavpack
-APE_RUN_DEPENDS= mac:audio/mac
-NLS_CONFIGURE_ENABLE= yes
-post-patch:
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+CFLAGS+= -Wno-error=int-conversion
+.endif
+
post-patch-WINDOWS_CHARS-on:
@${REINPLACE_CMD} -e 's^#define[[:blank:]]*BADCHARS.*^#define BADCHARS "/"^' ${WRKSRC}/src/util.h
@@ -45,4 +53,4 @@ post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>