mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-06 06:30:19 +00:00
3f77b2e3ab
- Update to 0.9.2. - Add optional dependency on Vid.Stab. - Remove deprecated plugins. - Remove stale MAN* macro. - Use OPTIONS handlers. - Remove @dirrm*. - Strip binary and libraries. This is a bugfix and enhancement release: http://mltframework.blogspot.com/2014/06/version-092-released.html multimedia/py-mlt: - Force dependency on Python 2. - Take maintainership.
52 lines
1.4 KiB
Makefile
52 lines
1.4 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= libmlt.so:${PORTSDIR}/${MASTER_PORT}
|
|
BUILD_DEPENDS= swig:${PORTSDIR}/devel/swig13
|
|
|
|
USES= python:2
|
|
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}
|
|
|
|
OPTIONS_DEFINE= EXAMPLES
|
|
|
|
.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:
|
|
@${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
|
${INSTALL_LIB} ${INSTALL_WRKSRC}/_mlt.so ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
|
${INSTALL_SCRIPT} ${INSTALL_WRKSRC}/mlt.py ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
|
@cd ${STAGEDIR}${PYTHON_SITELIBDIR} && ${PYTHON_CMD} -c 'import mlt'
|
|
@cd ${STAGEDIR}${PYTHON_SITELIBDIR} && ${PYTHON_CMD} -Oc 'import mlt'
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
. for f in codecs getimage play switcher waveforms webvfx_generator
|
|
${INSTALL_DATA} ${INSTALL_WRKSRC}/${f}.py ${STAGEDIR}${EXAMPLESDIR}
|
|
. endfor
|
|
|
|
.include "${MASTERDIR}/Makefile"
|