Makefile 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. # $OpenBSD: Makefile,v 1.20 2017/04/10 11:45:23 sthen Exp $
  2. COMMENT = automatic audio files tagger using the MusicBrainz database
  3. MODPY_EGG_VERSION = 0.16
  4. DISTNAME = picard-${MODPY_EGG_VERSION}
  5. REVISION = 2
  6. CATEGORIES = audio
  7. HOMEPAGE = http://musicbrainz.org/doc/Picard_Tagger
  8. MAINTAINER = Amaury Gauthier <amaury.gauthier@etu.unilim.fr>
  9. # GPLv2+
  10. PERMIT_PACKAGE_CDROM = Yes
  11. WANTLIB += ${MODPY_WANTLIB}
  12. WANTLIB += avcodec avformat m ofa pthread ${LIBCXX}
  13. MASTER_SITES = http://ftp.musicbrainz.org/pub/musicbrainz/picard/ \
  14. ftp://ftp.musicbrainz.org/pub/musicbrainz/picard/
  15. MODULES = lang/python
  16. MODPY_SETUPTOOLS = Yes
  17. # --single-version-externally-managed option used by MODPY doesn't exist
  18. MODPY_DISTUTILS_INSTALL=install --prefix=${LOCALBASE} --root=${DESTDIR}
  19. # msgfmt
  20. BUILD_DEPENDS = devel/gettext-tools
  21. LIB_DEPENDS = audio/libofa \
  22. graphics/ffmpeg
  23. RUN_DEPENDS = x11/py-qt4>=4.1 \
  24. audio/py-mutagen>=1.9 \
  25. devel/desktop-file-utils
  26. TEST_DEPENDS = ${BASE_PKGPATH}
  27. PLUGINS_DIRS = lastfm \
  28. lastfmplus \
  29. replaygain
  30. PLUGINS = classicdiscnumber.py \
  31. coverart.py \
  32. cuesheet.py \
  33. discnumber.py \
  34. featartist.py \
  35. featartistsintitles.py \
  36. lastfm/__init__.py \
  37. lastfm/options_lastfm.ui \
  38. lastfm/ui_options_lastfm.py \
  39. lastfmplus/__init__.py \
  40. lastfmplus/ui_options_lastfm.py \
  41. no_release.py \
  42. open_in_gui.py \
  43. release_type.py \
  44. replaygain/__init__.py \
  45. replaygain/options_replaygain.ui \
  46. replaygain/ui_options_replaygain.py \
  47. swapprefix.py \
  48. titlecase.py \
  49. tracks2clipboard.py
  50. pre-configure:
  51. ${SUBST_CMD} ${WRKSRC}/setup.py
  52. post-install:
  53. .for dir in ${PLUGINS_DIRS}
  54. ${INSTALL_DATA_DIR} ${PREFIX}/share/picard/${dir}
  55. .endfor
  56. .for file in ${PLUGINS}
  57. ${INSTALL_DATA} ${WRKSRC}/contrib/plugins/${file} ${PREFIX}/share/picard/${file}
  58. .endfor
  59. do-test:
  60. cd ${WRKSRC} && ${MODPY_BIN} ./setup.py build_ext -i test
  61. .include <bsd.port.mk>