Skip to content

Commit

Permalink
multimedia/py-librtmp: Fix build with llvm16
Browse files Browse the repository at this point in the history
- Utilize USES=localbase

Sponsored by:	The FreeBSD Foundation
  • Loading branch information
5u623l20 committed Jun 24, 2023
1 parent faf1294 commit 9819041
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions multimedia/py-librtmp/Makefile
Expand Up @@ -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

Expand Down

0 comments on commit 9819041

Please sign in to comment.