git: 09ce8deaafe0 - main - multimedia/smpeg2: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 26 Jun 2023 12:16:16 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=09ce8deaafe01223e9e2cbb70ea062eafcb56f7a
commit 09ce8deaafe01223e9e2cbb70ea062eafcb56f7a
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-26 11:41:45 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-26 12:16:01 +0000
multimedia/smpeg2: Fix build with llvm16
Sponsored by: The FreeBSD Foundation
---
multimedia/smpeg2/Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/multimedia/smpeg2/Makefile b/multimedia/smpeg2/Makefile
index 160756f41b6b..bc3e63ca92c3 100644
--- a/multimedia/smpeg2/Makefile
+++ b/multimedia/smpeg2/Makefile
@@ -29,6 +29,12 @@ CONFIGURE_ARGS= --enable-mmx
PLAYMPEG_CONFLICTS_INSTALL= smpeg
PLAYMPEG_VARS= LICENSE+=GPLv2+
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CPPFLAGS+= -Dregister=
+.endif
+
post-patch-PLAYMPEG-off:
@${REINPLACE_CMD} -e '/^bin_PROGRAMS =/s/plaympeg$$(EXEEXT)// ; \
/^man_MANS =/s/plaympeg\.1//' ${WRKSRC}/Makefile.in