mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
multimedia/py-mlt: support stage
PR: 192360 Submitted by: christian.mangin gmail com
This commit is contained in:
parent
87de6bbbf6
commit
1fd3df1d84
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=364062
@ -25,8 +25,6 @@ PLIST= ${.CURDIR}/pkg-plist
|
||||
BUILD_WRKSRC= ${WRKSRC}/src/swig/python
|
||||
INSTALL_WRKSRC= ${BUILD_WRKSRC}
|
||||
|
||||
NO_STAGE= yes
|
||||
|
||||
OPTIONS_DEFINE= EXAMPLES
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
@ -40,17 +38,14 @@ 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}
|
||||
@${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 waveforms
|
||||
${INSTALL_DATA} ${INSTALL_WRKSRC}/${f}.py ${EXAMPLESDIR}
|
||||
${INSTALL_DATA} ${INSTALL_WRKSRC}/${f}.py ${STAGEDIR}${EXAMPLESDIR}
|
||||
. endfor
|
||||
.endif
|
||||
|
||||
.include "${MASTERDIR}/Makefile"
|
||||
|
Loading…
Reference in New Issue
Block a user