1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-09 06:51:44 +00:00
freebsd-ports/audio/beets/Makefile
Mathieu Arnold 551be3c723 Convert Python ports to FLAVORS.
Ports using USE_PYTHON=distutils are now flavored.  They will
  automatically get flavors (py27, py34, py35, py36) depending on what
  versions they support.

  There is also a USE_PYTHON=flavors for ports that do not use distutils
  but need FLAVORS to be set.  A USE_PYTHON=noflavors can be set if
  using distutils but flavors are not wanted.

  A new USE_PYTHON=optsuffix that will add PYTHON_PKGNAMESUFFIX has been
  added to cope with Python ports that did not have the Python
  PKGNAMEPREFIX but are flavored.

  USES=python now also exports a PY_FLAVOR variable that contains the
  current python flavor.  It can be used in dependency lines when the
  port itself is not python flavored.  For example, deskutils/calibre.

  By default, all the flavors are generated.  To only generate flavors
  for the versions in PYTHON2_DEFAULT and PYTHON3_DEFAULT, define
  BUILD_DEFAULT_PYTHON_FLAVORS in your make.conf.

  In all the ports with Python dependencies, the *_DEPENDS entries MUST
  end with the flavor so that the framework knows which to build/use.
  This is done by appending '@${PY_FLAVOR}' after the origin (or
  @${FLAVOR} if in a Python module with Python flavors, as the content
  will be the same).  For example:

    RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}

PR:		223071
Reviewed by:	portmgr, python
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D12464
2017-11-30 15:50:30 +00:00

94 lines
4.3 KiB
Makefile

# Created by: Mark Felder <feld@FreeBSD.org>
# $FreeBSD$
PORTNAME= beets
PORTVERSION= 1.4.2
PORTREVISION= 1
CATEGORIES= audio python
MASTER_SITES= CHEESESHOP
MAINTAINER= stiginge@pvv.org
COMMENT= Media library management system for obsessive-compulsive music geeks
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mutagen>=1.33:audio/py-mutagen@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}unidecode>=0:converters/py-unidecode@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}musicbrainzngs>=0.4:audio/py-musicbrainzngs@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}munkres>=0:math/py-munkres@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}yaml>=0:devel/py-yaml@${FLAVOR} \
${PY_ENUM34} \
${PYTHON_PKGNAMEPREFIX}jellyfish>=0:devel/py-jellyfish@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}sqlite3>=0:databases/py-sqlite3@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}six>=1.9:devel/py-six@${FLAVOR}
USES= python
USE_PYTHON= autoplist distutils optsuffix
PLIST_FILES= man/man1/beet.1.gz man/man5/beetsconfig.5.gz
OPTIONS_DEFINE= ACOUSTICBRAINZ BADFILES BEATPORT BPD CHROMA DISCOGS EMBYUPDATE \
FETCHART FFMPEG IMAGEMAGICK IPFS LASTFM LASTIMPORT LYRICS \
LYRICS_GOOGLE MPDSTATS METASYNC_DBUS PLEXUPDATE REPLAYGAIN \
SPOTIFY THUMBNAILS WEB WEB_CORS
OPTIONS_DEFAULT=
ACOUSTICBRAINZ_DESC= AcousticBrainz Plugin
BADFILES_DESC= Bad Files Plugin
BEATPORT_DESC= Beatport Catalog Autotagging Support
BPD_DESC= MPD Compatible Music Player Plugin
CHROMA_DESC= Audio Fingerprinting Plugin
DISCOGS_DESC= Discogs Search Plugin
EMBYUPDATE_DESC= Emby Update Plugin
FETCHART_DESC= Cover Art Fetch Plugin
IPFS_DESC= IPFS Plugin
IMAGEMAGICK_DESC= Cover Art Resizing and Comparison
LASTFM_DESC= LastGenre Plugin
LASTIMPORT_DESC= Last.fm Import Plugin
LYRICS_DESC= Lyrics Plugin
LYRICS_GOOGLE_DESC= Use Google Custom Search for Lyrics
METASYNC_DBUS_DESC= Amarok support for the MetaSync plugin
MPDSTATS_DESC= MPD Statistics Plugin
PLEXUPDATE_DESC= PlexUpdate Plugin
REPLAYGAIN_DESC= Normalize Audio Loudness
SPOTIFY_DESC= Spotify Plugin
THUMBNAILS_DESC= Thumbnails for freedesktop.org-compliant file managers
WEB_DESC= Web plugin for querying, browsing and playing music
WEB_CORS_DESC= Cross-origin resource sharing for the Web plugin
ACOUSTICBRAINZ_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${FLAVOR}
BADFILES_RUN_DEPENDS= flac:audio/flac \
mp3val:audio/mp3val
BEATPORT_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests-oauthlib>=0.6.1:www/py-requests-oauthlib@${FLAVOR}
BPD_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gstreamer1>=0:multimedia/py-gstreamer1@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}gobject>=0:devel/py-gobject@${FLAVOR}
CHROMA_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyacoustid>=0:audio/py-pyacoustid@${FLAVOR}
DISCOGS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}discogs-client>=2.1.0:audio/py-discogs-client@${FLAVOR}
EMBYUPDATE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${FLAVOR}
FETCHART_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${FLAVOR}
FFMPEG_RUN_DEPENDS= ffmpeg>=2:multimedia/ffmpeg
IMAGEMAGICK_RUN_DEPENDS= convert:graphics/ImageMagick
IPFS_RUN_DEPENDS= ipfs-go:sysutils/ipfs-go
LASTFM_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pylast>=0:audio/py-pylast@${FLAVOR}
LASTIMPORT_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${FLAVOR}
LYRICS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${FLAVOR}
LYRICS_GOOGLE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}beautifulsoup>=4:www/py-beautifulsoup@${FLAVOR}
METASYNC_DBUS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dbus>=0:devel/py-dbus@${FLAVOR}
MPDSTATS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mpd2>=0:audio/py-mpd2@${FLAVOR}
PLEXUPDATE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${FLAVOR}
REPLAYGAIN_RUN_DEPENDS= mp3gain>=0:audio/mp3gain
REPLAYGAIN_RUN_DEPENDS+= aacgain>=0:audio/aacgain
SPOTIFY_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${FLAVOR}
THUMBNAILS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}xdg>=0:devel/py-xdg@${FLAVOR}
THUMBNAILS_RUN_DEPENDS+= ${PY_PATHLIB}
WEB_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Flask>=0:www/py-flask@${FLAVOR}
WEB_CORS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Flask-Cors>=0:www/py-flask-cors@${FLAVOR}
post-install:
${INSTALL} ${WRKSRC}/man/beet.1 ${STAGEDIR}${PREFIX}/man/man1/
${INSTALL} ${WRKSRC}/man/beetsconfig.5 ${STAGEDIR}${PREFIX}/man/man5/
.include <bsd.port.mk>