aboutsummaryrefslogtreecommitdiffstats
path: root/audio/sonata/Makefile
blob: 2746dd15b84a7a52f235196347253466fc5e36ee (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
# New ports collection makefile for:    sonata
# Date created:     2007-01-22
# Whom:         Nicola Vitale <nivit@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   sonata
PORTVERSION=    1.6.2.1
PORTREVISION=   4
CATEGORIES= audio python
MASTER_SITES=   ${MASTER_SITE_BERLIOS}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= nivit@FreeBSD.org
COMMENT=    An elegant music player for MPD

RUN_DEPENDS=    ${PYTHON_PKGNAMEPREFIX}mpd>=0.2.0:${PORTSDIR}/audio/py-mpd

USE_GETTEXT=    yes
USE_GNOME=  pygtk2
USE_PYTHON= yes
USE_PYDISTUTILS=    yes

PYDISTUTILS_PKGNAME=    Sonata

OPTIONS=    MMKEYS  "Enable instance single support for mmkeys" off \
        MPD "Install Music Player Daemon" on \
        PYGNOMEEXTRAS   "Use py-gnome-extras for enhanced system tray" off \
        TAGLIB  "Install support for editing metadata" off \
        ZSI "Install support for automatic lyrics fetching" off

REINPLACE_ARGS= -i.bak -e 's,%%DOCSDIR%%,${DOCSDIR},'

.if !defined(NO_INSTALL_MANPAGES)
MAN1=   ${PORTNAME}.1
.else
MAKE_ENV=   NO_INSTALL_MANPAGES=${NO_INSTALL_MANPAGES}
.endif

.if defined(NOPORTDOCS)
MAKE_ENV+=  NOPORTDOCS=${NOPORTDOCS}
.endif

post-patch:
    @${REINPLACE_CMD} ${WRKSRC}/${PYSETUP}

.include <bsd.port.pre.mk>

.if defined (WITH_MPD)
RUN_DEPENDS+=   musicpd:${PORTSDIR}/audio/musicpd
.endif

.if defined (WITH_MMKEYS)
RUN_DEPENDS+=${PYTHON_PKGNAMEPREFIX}dbus>=0.82.4:${PORTSDIR}/devel/py-dbus
.endif

.if defined (WITH_PYGNOMEEXTRAS)
RUN_DEPENDS+=   ${PYTHON_PKGNAMEPREFIX}gnome-extras>=2.25.3_4:${PORTSDIR}/x11-toolkits/py-gnome-extras
.endif

.if defined (WITH_TAGLIB)
RUN_DEPENDS+=   ${PYTHON_PKGNAMEPREFIX}tagpy>=0.94.5:${PORTSDIR}/audio/py-tagpy
.endif

.if defined (WITH_ZSI)
RUN_DEPENDS+=   ${PYTHON_PKGNAMEPREFIX}zsi>=2.0,1:${PORTSDIR}/net/py-zsi
.endif

.include <bsd.port.post.mk>