2013-09-12 10:00:37 +02:00
|
|
|
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
2006-04-07 20:18:07 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= picard
|
2013-09-29 16:22:27 +02:00
|
|
|
PORTVERSION= 1.2
|
2006-04-07 20:18:07 +02:00
|
|
|
CATEGORIES= audio python
|
2008-02-04 18:10:37 +01:00
|
|
|
MASTER_SITES= http://ftp.musicbrainz.org/pub/musicbrainz/picard/ \
|
2008-09-01 07:36:52 +02:00
|
|
|
ftp://ftp.musicbrainz.org/pub/musicbrainz/picard/ \
|
2009-11-02 11:54:02 +01:00
|
|
|
http://ftp.osuosl.org/pub/musicbrainz/picard/
|
2006-04-07 20:18:07 +02:00
|
|
|
|
2012-09-13 06:45:58 +02:00
|
|
|
MAINTAINER= jhale@FreeBSD.org
|
2008-02-04 18:10:37 +01:00
|
|
|
COMMENT= Next generation MusicBrainz Tagger
|
2006-04-07 20:18:07 +02:00
|
|
|
|
2011-07-24 18:33:51 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2013-09-29 16:22:27 +02:00
|
|
|
LIB_DEPENDS= libdiscid.so:${PORTSDIR}/audio/libdiscid
|
2012-06-14 06:18:08 +02:00
|
|
|
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
|
2006-04-07 20:18:07 +02:00
|
|
|
|
2013-04-24 20:10:30 +02:00
|
|
|
USES= gettext
|
2014-01-13 22:00:02 +01:00
|
|
|
USE_PYTHON= 2
|
2006-04-07 20:18:07 +02:00
|
|
|
USE_PYDISTUTILS=yes
|
2009-11-02 11:54:02 +01:00
|
|
|
INSTALLS_ICONS= yes
|
2008-02-04 18:10:37 +01:00
|
|
|
|
2013-09-29 16:22:27 +02:00
|
|
|
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
|
|
|
|
|
2008-02-04 18:10:37 +01:00
|
|
|
post-patch:
|
2011-11-11 18:30:00 +01:00
|
|
|
@${REINPLACE_CMD} -e "s|'picard.plugins',|'picard.plugins', 'picard.plugins.lastfm', 'picard.plugins.lastfmplus', 'picard.plugins.replaygain',|" \
|
2013-12-15 17:22:17 +01:00
|
|
|
-e 's,distutils\.command\.install ,setuptools\.command\.install ,' \
|
2011-03-17 14:13:20 +01:00
|
|
|
${WRKSRC}/setup.py
|
|
|
|
@${CP} -R ${WRKSRC}/contrib/plugins/ ${WRKSRC}/picard/plugins
|
2006-04-07 20:18:07 +02:00
|
|
|
|
2006-11-13 22:17:06 +01:00
|
|
|
.include <bsd.port.mk>
|