aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/miro/Makefile
blob: 42a12e345a1b05e7a834d6388718615b500b0d0f (plain) (blame)
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# New ports collection makefile for:    Democracy
# Date created:     30 November 2006
# Whom:         Thierry Thomas <thierry@pompo.net>
#
# $FreeBSD$
#

PORTNAME=   miro
PORTVERSION=    4.0.6
CATEGORIES= multimedia
MASTER_SITES=   ftp://ftp.osuosl.org/pub/pculture.org/miro/src/ \
        http://ftp.osuosl.org/pub/pculture.org/miro/src/

MAINTAINER= armin@frozen-zone.org
COMMENT=    A video player to get internet TV broadcasts

LICENSE=    GPLv2

BUILD_DEPENDS=  pyrexc:${PORTSDIR}/devel/pyrex \
        ${PYTHON_SITELIBDIR}/webkit/__init__.py:${PORTSDIR}/www/py-webkitgtk \
        update-mime-database:${PORTSDIR}/misc/shared-mime-info
LIB_DEPENDS=    avutil.1:${PORTSDIR}/multimedia/ffmpeg
RUN_DEPENDS=    ${PYTHON_SITELIBDIR}/_bsddb.so:${PORTSDIR}/databases/py-bsddb \
        ${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3 \
        ${PYTHON_SITELIBDIR}/dbus/glib.py:${PORTSDIR}/devel/py-dbus \
        ${PYTHON_SITELIBDIR}/gtk-2.0/pynotify/_pynotify.so:${PORTSDIR}/devel/py-notify \
        ${PYTHON_SITELIBDIR}/libtorrent.so:${PORTSDIR}/net-p2p/libtorrent-rasterbar-15-python \
        ${PYTHON_SITELIBDIR}/webkit/webkit.so:${PORTSDIR}/www/py-webkitgtk \
        ${PYTHON_SITELIBDIR}/gtk-2.0/gconf.so:${PORTSDIR}/x11-toolkits/py-gnome2 \
        ${PYTHON_SITELIBDIR}/pycurl.so:${PORTSDIR}/ftp/py-curl \
        ${PYTHON_SITELIBDIR}/mutagen/__init__.py:${PORTSDIR}/audio/py-mutagen

BUILD_WRKSRC=   ${WRKSRC}/linux
INSTALL_WRKSRC= ${WRKSRC}/linux

USE_GNOME=  gconf2 gtk20
USE_GSTREAMER=  python gconf
USE_GETTEXT=    yes
USE_PYTHON= 2.5+
USE_PYDISTUTILS=    yes
USE_LDCONFIG=   yes
INSTALLS_ICONS= yes
INSTALLS_EGGINFO=   yes

MANCOMPRESSED=  yes
MAN1=       miro.1 miro.real.1

CPPFLAGS+=  -I${LOCALBASE}/include ${PTHREAD_CFLAGS}

.include <bsd.port.pre.mk>

.SILENT:

post-patch:
.for file in setup.py plat/resources.py plat/options.py
    ${REINPLACE_CMD} -e \
        's|%%LOCALBASE%%|${LOCALBASE}|g ; \
         s|%%PREFIX%%|${PREFIX}|g ; \
         s|%%MANPREFIX%%|${MANPREFIX}|g' \
        ${BUILD_WRKSRC}/${file}
.endfor
.for file in miro.real
    ${REINPLACE_CMD} -e 's|python2.4|${PYTHON_VERSION}|g' \
        ${BUILD_WRKSRC}/${file}
.endfor
.for file in run.sh
    ${REINPLACE_CMD} -e 's|^PREFIX=.*|PREFIX=${PREFIX}|g' \
        ${BUILD_WRKSRC}/${file}
.endfor

.if defined(MAINTAINER_MODE)
regression-test:    install
    LANG=C LC_ALL=C ${PREFIX}/bin/miro --unittest
.endif

.include <bsd.port.post.mk>