aboutsummaryrefslogtreecommitdiff
path: root/multimedia/py-mlt
diff options
context:
space:
mode:
authorAlberto Villa <avilla@FreeBSD.org>2013-02-09 03:37:18 +0000
committerAlberto Villa <avilla@FreeBSD.org>2013-02-09 03:37:18 +0000
commitebad15fef358550bec916aa85f3224977316e973 (patch)
treebc845558d7b77a95fb98146d385bed2bb2f1be20 /multimedia/py-mlt
parent16e2a60b748f2653a89cb330dddea2999eb97a6e (diff)
downloadports-ebad15fef358550bec916aa85f3224977316e973.tar.gz
ports-ebad15fef358550bec916aa85f3224977316e973.zip
Notes
Diffstat (limited to 'multimedia/py-mlt')
-rw-r--r--multimedia/py-mlt/Makefile19
-rw-r--r--multimedia/py-mlt/pkg-plist4
2 files changed, 13 insertions, 10 deletions
diff --git a/multimedia/py-mlt/Makefile b/multimedia/py-mlt/Makefile
index 5dfa3128766c..1d2fa0946544 100644
--- a/multimedia/py-mlt/Makefile
+++ b/multimedia/py-mlt/Makefile
@@ -5,6 +5,7 @@ PORTREVISION= 0
CATEGORIES= multimedia python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+MAINTAINER= avilla@FreeBSD.org
COMMENT= Python bindings for the MLT multimedia framework
LICENSE= GPLv2
@@ -16,24 +17,22 @@ BUILD_DEPENDS= swig:${PORTSDIR}/devel/swig13
USE_PYTHON= yes
MASTERDIR= ${.CURDIR:H:H}/multimedia/mlt
-PORTEXAMPLES= python
+EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}/python
+PORTEXAMPLES= *
-PLIST= # empty
-PLIST_FILES= %%PYTHON_SITELIBDIR%%/_mlt.so \
- %%PYTHON_SITELIBDIR%%/mlt.py \
- %%PYTHON_SITELIBDIR%%/mlt.pyc \
- %%PYTHON_SITELIBDIR%%/mlt.pyo
+PLIST= ${.CURDIR}/pkg-plist
BUILD_WRKSRC= ${WRKSRC}/src/swig/python
INSTALL_WRKSRC= ${BUILD_WRKSRC}
.include <bsd.port.options.mk>
-do-build:
+post-patch:
@${REINPLACE_CMD} -e 's|-L../../mlt++|-L${LOCALBASE}/lib|' \
-e 's|g++|${CXX} ${CXXFLAGS}|' \
- -e 's|-pthread|${PTHREAD_LIBS}|' \
${BUILD_WRKSRC}/build
+
+do-build:
@cd ${BUILD_WRKSRC} && ${SH} build
do-install:
@@ -44,9 +43,9 @@ do-install:
post-install:
.if ${PORT_OPTIONS:MEXAMPLES}
- ${MKDIR} ${EXAMPLESDIR}/python
+ ${MKDIR} ${EXAMPLESDIR}
. for f in codecs getimage play waveforms
- ${INSTALL_DATA} ${INSTALL_WRKSRC}/${f}.py ${EXAMPLESDIR}/python
+ ${INSTALL_DATA} ${INSTALL_WRKSRC}/${f}.py ${EXAMPLESDIR}
. endfor
.endif
diff --git a/multimedia/py-mlt/pkg-plist b/multimedia/py-mlt/pkg-plist
new file mode 100644
index 000000000000..7b91bb05d67e
--- /dev/null
+++ b/multimedia/py-mlt/pkg-plist
@@ -0,0 +1,4 @@
+%%PYTHON_SITELIBDIR%%/_mlt.so
+%%PYTHON_SITELIBDIR%%/mlt.py
+%%PYTHON_SITELIBDIR%%/mlt.pyc
+%%PYTHON_SITELIBDIR%%/mlt.pyo