aboutsummaryrefslogtreecommitdiffstats
path: root/audio/picard/Makefile
blob: 2595b1bc109627cc3a98c79c795e12c92212f3a1 (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
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
# $FreeBSD$

PORTNAME=   picard
PORTVERSION=    1.2
CATEGORIES= audio python
MASTER_SITES=   http://ftp.musicbrainz.org/pub/musicbrainz/picard/ \
        ftp://ftp.musicbrainz.org/pub/musicbrainz/picard/ \
        http://ftp.osuosl.org/pub/musicbrainz/picard/

MAINTAINER= jhale@FreeBSD.org
COMMENT=    Next generation MusicBrainz Tagger

LICENSE=    GPLv2

LIB_DEPENDS=    libdiscid.so:${PORTSDIR}/audio/libdiscid
RUN_DEPENDS=    ${PYTHON_PKGNAMEPREFIX}mutagen>=0:${PORTSDIR}/audio/py-mutagen \
        ${PYTHON_PKGNAMEPREFIX}qt4-core>=0:${PORTSDIR}/devel/py-qt4-core \
        ${PYTHON_PKGNAMEPREFIX}qt4-gui>=0:${PORTSDIR}/x11-toolkits/py-qt4-gui \
        ${PYTHON_PKGNAMEPREFIX}qt4-network>=0:${PORTSDIR}/net/py-qt4-network \
        ${PYTHON_PKGNAMEPREFIX}qt4-xml>=0:${PORTSDIR}/textproc/py-qt4-xml

USES=       gettext
USE_PYTHON= 2
USE_PYDISTUTILS=yes
INSTALLS_ICONS= yes

OPTIONS_DEFINE= ACOUSTID REPLAYGAIN

ACOUSTID_DESC=  AcoustID audio fingerprinting support
REPLAYGAIN_DESC=ReplayGain audio normalization support

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MACOUSTID}
RUN_DEPENDS+=   fpcalc:${PORTSDIR}/audio/chromaprint
.endif

.if ${PORT_OPTIONS:MREPLAYGAIN}
RUN_DEPENDS+=   metaflac:${PORTSDIR}/audio/flac \
        mp3gain:${PORTSDIR}/audio/mp3gain \
        vorbisgain:${PORTSDIR}/audio/vorbisgain \
        wvgain:${PORTSDIR}/audio/wavpack
.endif

post-patch:
    @${REINPLACE_CMD} -e "s|'picard.plugins',|'picard.plugins', 'picard.plugins.lastfm', 'picard.plugins.lastfmplus', 'picard.plugins.replaygain',|" \
        -e 's,distutils\.command\.install ,setuptools\.command\.install ,' \
        ${WRKSRC}/setup.py
    @${CP} -R ${WRKSRC}/contrib/plugins/ ${WRKSRC}/picard/plugins

.include <bsd.port.mk>