Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jun 2023 18:10:10 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 98190413142c - main - multimedia/py-librtmp: Fix build with llvm16
Message-ID:  <202306241810.35OIAAf5014582@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=98190413142cb7dc137d5f91ae51f4d50e362605

commit 98190413142cb7dc137d5f91ae51f4d50e362605
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-24 17:13:44 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-24 18:10:01 +0000

    multimedia/py-librtmp: Fix build with llvm16
    
    - Utilize USES=localbase
    
    Sponsored by:   The FreeBSD Foundation
---
 multimedia/py-librtmp/Makefile | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/multimedia/py-librtmp/Makefile b/multimedia/py-librtmp/Makefile
index e15c9f998481..214f43b64249 100644
--- a/multimedia/py-librtmp/Makefile
+++ b/multimedia/py-librtmp/Makefile
@@ -16,12 +16,15 @@ LIB_DEPENDS=	librtmp.so:multimedia/librtmp
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cffi>=0:devel/py-cffi@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cffi>=0:devel/py-cffi@${PY_FLAVOR}
 
-CFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib
-
-USES=		python:3.6+
+USES=		python:3.6+ localbase:ldflags
 USE_PYTHON=	autoplist distutils
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/librtmp/_librtmp*.so
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306241810.35OIAAf5014582>