freebsd-ports/multimedia/py-librtmp/Makefile
2021-04-06 16:31:07 +02:00

29 lines
753 B
Makefile

# Created by: William Grzybowski <wg@FreeBSD.org>
PORTNAME= librtmp
PORTVERSION= 0.3.0
PORTREVISION= 1
CATEGORIES= multimedia python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= python-${PORTNAME}-${PORTVERSION}
MAINTAINER= wg@FreeBSD.org
COMMENT= Python bindings for librtmp, built with cffi
LICENSE= BSD2CLAUSE
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+
USE_PYTHON= autoplist distutils
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/librtmp/_librtmp*.so
.include <bsd.port.mk>