41 lines
1.3 KiB
Makefile
41 lines
1.3 KiB
Makefile
# Created by: Charlie Kester <corky1951@comcast.net>
|
|
|
|
PORTREVISION= 1
|
|
CATEGORIES= multimedia python
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
USES= gettext-runtime python:3.5+ shebangfix
|
|
USE_PYTHON= flavors
|
|
MASTERDIR= ${.CURDIR:H}/mlt
|
|
SLAVEPORT= swig Python
|
|
|
|
PORTEXAMPLES= *
|
|
|
|
SHEBANG_FILES= src/swig/python/codecs.py \
|
|
src/swig/python/switcher.py \
|
|
src/swig/python/getimage.py \
|
|
src/swig/python/test_animation.py \
|
|
src/swig/python/webvfx_generator.py \
|
|
src/swig/python/play.py \
|
|
src/swig/python/waveforms.py
|
|
|
|
MAKE_ENV+= PYTHON="${PYTHON_CMD}"
|
|
|
|
OPTIONS_DEFINE= EXAMPLES
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
|
${INSTALL_LIB} ${INSTALL_WRKSRC}/_mlt.so ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
|
${INSTALL_SCRIPT} ${INSTALL_WRKSRC}/mlt.py ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
|
${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py -d \
|
|
${PYTHONPREFIX_SITELIBDIR} -f ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
|
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py -d \
|
|
${PYTHONPREFIX_SITELIBDIR} -f ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
|
|
|
post-install-EXAMPLES-on:
|
|
@${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"
|