blob: 61abae848b13d945a38eb15b2cd8b6f766f92484 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Created by: Charlie Kester <corky1951@comcast.net>
# $FreeBSD$
PORTREVISION= 0
CATEGORIES= multimedia python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= ports@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
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:
${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"
|