1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/multimedia/py-mlt/Makefile

54 lines
1.2 KiB
Makefile

# Created by: Charlie Kester <corky1951@comcast.net>
# $FreeBSD$
PORTREVISION= 0
CATEGORIES= multimedia python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= avilla@FreeBSD.org
COMMENT= Python bindings for the MLT multimedia framework
LICENSE= GPLv2
LICENSE_COMB= single
LIB_DEPENDS= mlt:${PORTSDIR}/${MASTER_PORT}
BUILD_DEPENDS= swig:${PORTSDIR}/devel/swig13
USE_PYTHON= yes
MASTERDIR= ${.CURDIR:H:H}/multimedia/mlt
EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}/python
PORTEXAMPLES= *
PLIST= ${.CURDIR}/pkg-plist
BUILD_WRKSRC= ${WRKSRC}/src/swig/python
INSTALL_WRKSRC= ${BUILD_WRKSRC}
NO_STAGE= yes
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's|-L../../mlt++|-L${LOCALBASE}/lib|' \
-e 's|g++|${CXX} ${CXXFLAGS}|' \
${BUILD_WRKSRC}/build
do-build:
@cd ${BUILD_WRKSRC} && ${SH} build
do-install:
${INSTALL_LIB} ${INSTALL_WRKSRC}/_mlt.so ${PYTHONPREFIX_SITELIBDIR}
${INSTALL_SCRIPT} ${INSTALL_WRKSRC}/mlt.py ${PYTHONPREFIX_SITELIBDIR}
${PYTHON_CMD} -c 'import mlt'
${PYTHON_CMD} -Oc 'import mlt'
post-install:
.if ${PORT_OPTIONS:MEXAMPLES}
${MKDIR} ${EXAMPLESDIR}
. for f in codecs getimage play waveforms
${INSTALL_DATA} ${INSTALL_WRKSRC}/${f}.py ${EXAMPLESDIR}
. endfor
.endif
.include "${MASTERDIR}/Makefile"