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