Makefile 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # $OpenBSD: Makefile,v 1.11 2017/05/13 10:33:14 espie Exp $
  2. COMMENT = console audio player
  3. DISTNAME = moc-2.5.1
  4. CATEGORIES = audio
  5. HOMEPAGE = http://moc.daper.net/
  6. MASTER_SITES = http://ftp.daper.net/pub/soft/moc/stable/
  7. EXTRACT_SUFX = .tar.bz2
  8. REVISION = 4
  9. # GPLv3+
  10. PERMIT_PACKAGE_CDROM = Yes
  11. # uses pledge()
  12. WANTLIB += FLAC avcodec avformat avutil bz2 c crypto curl db
  13. WANTLIB += faad gsm iconv id3tag intl ltdl m mad magic mp3lame mpcdec
  14. WANTLIB += ncursesw nghttp2 ogg opus pthread samplerate sndfile sndio
  15. WANTLIB += speex ssl ${LIBCXX} swresample tag tag_c vorbis vorbisenc
  16. WANTLIB += vorbisfile vpx wavpack x264 x265 xvidcore z
  17. # libvpx -> libavcodec -> mocp
  18. # see multimedia/gstreamer1/plugins-good/Makefile for details
  19. .if ${MACHINE_ARCH:Mi386} || ${MACHINE_ARCH:Mamd64}
  20. WANTLIB += $(LIBECXX)
  21. .endif
  22. LIB_DEPENDS = audio/faad \
  23. audio/flac \
  24. audio/libid3tag \
  25. audio/libmad \
  26. audio/libsamplerate \
  27. audio/libsndfile \
  28. audio/libvorbis \
  29. audio/musepack \
  30. audio/wavpack \
  31. audio/speex \
  32. audio/taglib \
  33. databases/db/v4 \
  34. devel/gettext \
  35. devel/libmagic \
  36. devel/libtool,-ltdl \
  37. graphics/ffmpeg \
  38. net/curl
  39. SEPARATE_BUILD = Yes
  40. CONFIGURE_STYLE = gnu
  41. CONFIGURE_ARGS += \
  42. --with-sndio \
  43. --without-jack \
  44. --without-oss \
  45. --without-alsa \
  46. --without-rcc \
  47. --without-included-ltdl \
  48. --without-timidity \
  49. --with-magic \
  50. --with-ltdl-include=${LOCALBASE}/include \
  51. --with-ltdl-lib=${LOCALBASE}/lib
  52. CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/db4" \
  53. LDFLAGS="-L${LOCALBASE}/lib"
  54. pre-install:
  55. ${SUBST_CMD} ${WRKSRC}/mocp.1
  56. post-install:
  57. rm ${PREFIX}/lib/moc/decoder_plugins/*.{,l}a
  58. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/moc
  59. .for f in config.example keymap.example
  60. mv ${PREFIX}/share/doc/moc/$f ${PREFIX}/share/examples/moc
  61. .endfor
  62. .include <bsd.port.mk>