diff options
Diffstat (limited to 'multimedia/miro/Makefile')
-rw-r--r-- | multimedia/miro/Makefile | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/multimedia/miro/Makefile b/multimedia/miro/Makefile new file mode 100644 index 000000000000..b79b72b37dbf --- /dev/null +++ b/multimedia/miro/Makefile @@ -0,0 +1,70 @@ +# New ports collection makefile for: Democracy +# Date created: 30 November 2006 +# Whom: Thierry Thomas <thierry@pompo.net> +# +# $FreeBSD$ +# + +PORTNAME= Miro +PORTVERSION= 1.0 +CATEGORIES= multimedia +MASTER_SITES= ftp://ftp.osuosl.org/pub/pculture.org/miro/src/ \ + http://ftp.osuosl.org/pub/pculture.org/miro/src/ + +MAINTAINER= thierry@FreeBSD.org +COMMENT= A video player to get internet TV broadcasts + +BUILD_DEPENDS= pyrexc:${PORTSDIR}/devel/pyrex \ + update-mime-database:${PORTSDIR}/misc/shared-mime-info +LIB_DEPENDS= xine.1:${PORTSDIR}/multimedia/libxine \ + fame-0.9:${PORTSDIR}/multimedia/libfame \ + boost_python.4:${PORTSDIR}/devel/boost-python +RUN_DEPENDS= ${PYTHON_SITELIBDIR}/dbus/glib.py:${PORTSDIR}/devel/py-dbus \ + ${PYTHON_SITELIBDIR}/_bsddb.so:${PORTSDIR}/databases/py-bsddb \ + ${PYTHON_SITELIBDIR}/pysqlite2/_sqlite.so:${PORTSDIR}/databases/py-pysqlite23 + +USE_PYTHON= yes +USE_GETTEXT= yes +USE_GNOME= glib20 gtk20 pygnomeextras +USE_GECKO= firefox seamonkey mozilla +USE_GSTREAMER= python + +BUILD_WRKSRC= ${WRKSRC}/platform/gtk-x11 +MAKE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}" + +DATADIR= ${PREFIX}/share/${PORTNAME:L} +PLIST_SUB= VER=${PORTVERSION} PYTHON_VER=${_PYTHON_VERSION} + +MAN1= miro.1 +MANCOMPRESSED= yes + +.include <bsd.port.pre.mk> + +pre-configure: +.for pyscr in setup.py resources.py + ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \ + -e 's|/usr/X11R6|${X11BASE}|g' \ + -e 's|/usr/share|${PREFIX}/share|g' \ + -e 's|/usr/libexec|${PREFIX}/libexec|g' \ + -e 's|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|' \ + -e 's|${LOCALBASE}/man|${MANPREFIX}/man|' \ + ${BUILD_WRKSRC}/${pyscr} +.endfor + +do-build: + (cd ${BUILD_WRKSRC} && \ + ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py build) + +do-install: + (cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} \ + ${PYTHON_CMD} setup.py install --prefix=${PREFIX}) + @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \ + ${PYTHON_SITELIBDIR}/miro + +.if defined(MAINTAINER_MODE) +regression-test: install + LANG=C LC_ALL=C ${PREFIX}/bin/miro --unittest +.endif + +.include "${.CURDIR}/../../www/mozilla/bsd.gecko.mk" +.include <bsd.port.post.mk> |