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

PORTNAME=   sonata
PORTVERSION=    1.2.2
#PORTREVISION=  0
CATEGORIES= audio python
MASTER_SITES=   ${MASTER_SITE_BERLIOS}
MASTER_SITE_SUBDIR= ${PORTNAME}

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

BUILD_DEPENDS=  ${PYTHON_SITELIBDIR}/gtk-2.0/gtk/__init__.py:${PORTSDIR}/x11-toolkits/py-gtk2

USE_GETTEXT=    yes
USE_PYTHON= yes
USE_PYDISTUTILS=    yes
PYDISTUTILS_PKGNAME=    Sonata

OPTIONS=    MPD "Install Music Player Daemon" on \
        TAGLIB  "Install support for editing metadata" off \
        SOAPPY  "Install support for automatic lyrics fetching" off

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

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

.include <bsd.port.pre.mk>

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

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

.if defined (WITH_SOAPPY)
RUN_DEPENDS+=   ${PYTHON_SITELIBDIR}/SOAPpy/__init__.py:${PORTSDIR}/net/py-soappy
.endif

.include <bsd.port.post.mk>