aboutsummaryrefslogtreecommitdiffstats
path: root/audio/beets/Makefile
blob: 463bdb1b7dc1a8d04d696f9f07a3bc14746898a4 (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
# Created by: Mark Felder <feld@FreeBSD.org>
# $FreeBSD$

PORTNAME=   beets
PORTVERSION=    1.3.9
CATEGORIES= audio python
MASTER_SITES=   CHEESESHOP

MAINTAINER= stiginge@pvv.org
COMMENT=    Media library management system for obsessive-compulsive music geeks

LICENSE=    MIT

RUN_DEPENDS=    ${PYTHON_PKGNAMEPREFIX}mutagen>=1.23:${PORTSDIR}/audio/py-mutagen \
        ${PYTHON_PKGNAMEPREFIX}unidecode>=0:${PORTSDIR}/converters/py-unidecode \
        ${PYTHON_PKGNAMEPREFIX}musicbrainzngs>=0.4:${PORTSDIR}/audio/py-musicbrainzngs \
        ${PYTHON_PKGNAMEPREFIX}munkres>=0:${PORTSDIR}/math/py-munkres \
        ${PYTHON_PKGNAMEPREFIX}yaml>=0:${PORTSDIR}/devel/py-yaml \
        ${PYTHON_PKGNAMEPREFIX}enum34>=0:${PORTSDIR}/devel/py-enum34 \
        ${PYTHON_PKGNAMEPREFIX}sqlite3>=0:${PORTSDIR}/databases/py-sqlite3

USES=       python
USE_PYTHON= distutils autoplist

PLIST_FILES=    man/man1/beet.1.gz man/man5/beetsconfig.5.gz

OPTIONS_DEFINE= BEATPORT BPD CHROMA DISCOGS ECHONEST FETCHART FFMPEG \
        IMAGEMAGICK LASTFM LASTIMPORT MPDSTATS REPLAYGAIN SPOTIFY WEB
OPTIONS_DEFAULT=

CHROMA_DESC=    Audio Fingerprinting Plugin
BPD_DESC=   MPD Compatible Music Player Plugin
BEATPORT_DESC=  Beatport Catalog Autotagging Support
DISCOGS_DESC=   Discogs Search Plugin
ECHONEST_DESC=  Echo Nest Plugin
FETCHART_DESC=  Cover Art Fetch Plugin
IMAGEMAGICK_DESC=   Cover Art Resizing and Comparison
LASTFM_DESC=    LastGenre Plugin
LASTIMPORT_DESC=    Last.fm Import Plugin
MPDSTATS_DESC=  MPD Statistics Plugin
REPLAYGAIN_DESC=    Normalize Audio Loudness
SPOTIFY_DESC=   Spotify Plugin
WEB_DESC=   Webserver Music Player Plugin

CHROMA_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyacoustid>=0:${PORTSDIR}/audio/py-pyacoustid
BPD_RUN_DEPENDS=    ${PYTHON_PKGNAMEPREFIX}gstreamer>=0.10:${PORTSDIR}/multimedia/py-gstreamer
BPD_RUN_DEPENDS+=   ${PYTHON_PKGNAMEPREFIX}mpd>=0.2.0:${PORTSDIR}/audio/py-mpd
BEATPORT_RUN_DEPENDS=   ${PYTHON_PKGNAMEPREFIX}requests>=0:${PORTSDIR}/www/py-requests
DISCOGS_RUN_DEPENDS=    ${PYTHON_PKGNAMEPREFIX}discogs-client>=2.0.0:${PORTSDIR}/audio/py-discogs-client
ECHONEST_RUN_DEPENDS=   ${PYTHON_PKGNAMEPREFIX}pyechonest>=8.0.1:${PORTSDIR}/devel/py-pyechonest
FETCHART_RUN_DEPENDS=   ${PYTHON_PKGNAMEPREFIX}requests>=0:${PORTSDIR}/www/py-requests
FFMPEG_RUN_DEPENDS= ffmpeg>=2:${PORTSDIR}/multimedia/ffmpeg
IMAGEMAGICK_RUN_DEPENDS=    convert:${PORTSDIR}/graphics/ImageMagick
MPDSTATS_RUN_DEPENDS=   ${PYTHON_PKGNAMEPREFIX}mpd>=0.2.0:${PORTSDIR}/audio/py-mpd
LASTFM_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pylast>=0:${PORTSDIR}/audio/py-pylast
LASTIMPORT_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=0:${PORTSDIR}/www/py-requests
REPLAYGAIN_RUN_DEPENDS= mp3gain>=0:${PORTSDIR}/audio/mp3gain
REPLAYGAIN_RUN_DEPENDS+=    aacgain>=0:${PORTSDIR}/audio/aacgain
SPOTIFY_RUN_DEPENDS=    ${PYTHON_PKGNAMEPREFIX}requests>=0:${PORTSDIR}/www/py-requests
WEB_RUN_DEPENDS=    ${PYTHON_PKGNAMEPREFIX}Flask>=0:${PORTSDIR}/www/py-flask

.include <bsd.port.pre.mk>

.if ! ${PORT_OPTIONS:MX11}
IMAGEMAGICK_RUN_DEPENDS=    convert:${PORTSDIR}/graphics/ImageMagick-nox11
.endif

post-install:
    ${INSTALL} ${WRKSRC}/man/beet.1 ${STAGEDIR}${PREFIX}/man/man1/
    ${INSTALL} ${WRKSRC}/man/beetsconfig.5 ${STAGEDIR}${PREFIX}/man/man5/

.include <bsd.port.post.mk>