Makefile 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${TOPDIR}/rules.mk
  4. PKG_NAME:= mpd
  5. PKG_VERSION:= 0.14.2
  6. PKG_RELEASE:= 3
  7. PKG_MD5SUM:= 64177135f64aca555887ba378de8cdfb
  8. PKG_DESCR:= A music player for flac, mp3 and ogg
  9. PKG_SECTION:= net
  10. PKG_DEPENDS:= alsa-lib glib libcurl
  11. PKG_URL:= http://mpd.wikia.com/wiki/Music_Player_Daemon_Wiki
  12. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=musicpd/}
  13. include ${TOPDIR}/mk/package.mk
  14. ifneq (${ADK_COMPILE_MPD_WITH_MP3},)
  15. PKG_DEPENDS+= libid3tag libmad
  16. endif
  17. ifneq (${ADK_COMPILE_MPD_WITH_MP4},)
  18. PKG_DEPENDS+= libfaad2
  19. endif
  20. ifeq (${ADK_COMPILE_MPD_WITH_OGG},y)
  21. PKG_DEPENDS+= libvorbis libogg
  22. endif
  23. ifneq (${ADK_COMPILE_MPD_WITH_TREMOR},)
  24. PKG_DEPENDS+= libvorbisidec
  25. endif
  26. ifneq (${ADK_COMPILE_MPD_WITH_FLAC},)
  27. PKG_DEPENDS+= libflac
  28. endif
  29. ifneq (${ADK_COMPILE_MPD_WITH_SHOUT},)
  30. PKG_DEPENDS+= libshout liblame
  31. endif
  32. $(eval $(call PKG_template,MPD,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  33. CONFIGURE_STYLE:= gnu
  34. BUILD_STYLE:= auto
  35. INSTALL_STYLE:= auto
  36. XAKE_FLAGS+= MPD_CFLAGS='-D_GNU_SOURCE'
  37. CONFIGURE_ARGS+= \
  38. --enable-alsa \
  39. --disable-mod \
  40. --disable-oss \
  41. --disable-audiofile \
  42. --disable-mpc \
  43. ifneq (${ADK_COMPILE_MPD_WITH_MP3},)
  44. CONFIGURE_ARGS+= --enable-id3 --enable-mp3
  45. else
  46. CONFIGURE_ARGS+= --disable-id3 --disable-mp3
  47. endif
  48. ifneq (${ADK_COMPILE_MPD_WITH_MP4},)
  49. CONFIGURE_ARGS+= --enable-aac
  50. else
  51. CONFIGURE_ARGS+= --disable-aac
  52. endif
  53. ifeq (${ADK_COMPILE_MPD_WITH_OGG},y)
  54. CONFIGURE_ARGS+= --enable-oggvorbis
  55. else
  56. CONFIGURE_ARGS+= --disable-oggvorbis
  57. endif
  58. ifneq (${ADK_COMPILE_MPD_WITH_TREMOR},)
  59. CONFIGURE_ARGS+= \
  60. --disable-oggvorbis \
  61. --with-tremor \
  62. --with-tremor-includes=${STAGING_DIR}/usr/include \
  63. --with-tremor-libraries=${STAGING_DIR}/usr/lib
  64. endif
  65. ifneq (${ADK_COMPILE_MPD_WITH_FLAC},)
  66. CONFIGURE_ARGS+= --enable-flac
  67. else
  68. CONFIGURE_ARGS+= --disable-flac
  69. endif
  70. ifneq (${ADK_COMPILE_MPD_WITH_SHOUT},)
  71. CONFIGURE_ARGS+= --enable-shout-ogg \
  72. --enable-shout-mp3 \
  73. --enable-lame
  74. else
  75. CONFIGURE_ARGS+= --disable-shout-ogg \
  76. --disable-shout-mp3 \
  77. --disable-lame
  78. endif
  79. post-install:
  80. ${INSTALL_DIR} ${IDIR_MPD}/usr/bin ${IDIR_MPD}/etc
  81. ${INSTALL_BIN} ${WRKINST}/usr/bin/mpd ${IDIR_MPD}/usr/bin
  82. ${INSTALL_DATA} ./files/mpd.conf ${IDIR_MPD}/etc/mpd.conf
  83. include ${TOPDIR}/mk/pkg-bottom.mk