1
0

Makefile 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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.15.10
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 3ee746cb9193acfd0e1bd7a8c54af1a6
  8. PKG_DESCR:= A music player daemon
  9. PKG_SECTION:= multimedia
  10. PKG_DEPENDS:= glib libstdcxx
  11. PKG_BUILDDEP:= glib
  12. PKG_URL:= http://mpd.wikia.com/wiki/Music_Player_Daemon_Wiki
  13. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=musicpd/}
  14. PKG_FLAVOURS:= WITH_ALSA WITH_AO WITH_MP3 WITH_MP4 WITH_TREMOR
  15. PKG_FLAVOURS+= WITH_OGG WITH_FLAC WITH_WAV WITH_MMS WITH_FFMPEG
  16. PKG_FLAVOURS+= WITH_SHOUT WITH_CURL
  17. PKGFD_WITH_ALSA:= enable ALSA output
  18. PKGFS_WITH_ALSA:= alsa-lib
  19. PKGFB_WITH_ALSA:= alsa-lib
  20. PKGFD_WITH_AO:= enable Libao/ESD output
  21. PKGFS_WITH_AO:= libao
  22. PKGFB_WITH_AO:= libao
  23. PKGFD_WITH_MP3:= enable MP3 support
  24. PKGFS_WITH_MP3:= libid3tag libmad
  25. PKGFB_WITH_MP3:= libid3tag libmad
  26. PKGFD_WITH_MP4:= enable MP4 support
  27. PKGFS_WITH_MP4:= libfaad2
  28. PKGFB_WITH_MP4:= faad2
  29. PKGFD_WITH_OGG:= enable OGG support
  30. PKGFS_WITH_OGG:= libvorbis libogg
  31. PKGFB_WITH_OGG:= libvorbis libogg
  32. PKGFD_WITH_TREMOR:= enable fixpoint Vorbis/OGG support
  33. PKGFS_WITH_TREMOR:= libvorbisidec
  34. PKGFB_WITH_TREMOR:= libvorbisidec
  35. PKGFD_WITH_FLAC:= enable FLAC support
  36. PKGFS_WITH_FLAC:= libflac
  37. PKGFB_WITH_FLAC:= flac
  38. PKGFD_WITH_WAV:= enable WAVE support
  39. PKGFS_WITH_WAV:= libaudiofile
  40. PKGFB_WITH_WAV:= libaudiofile
  41. PKGFD_WITH_MMS:= enable MMS support
  42. PKGFS_WITH_MMS:= libmms
  43. PKGFB_WITH_MMS:= libmms
  44. PKGFD_WITH_FFMPEG:= enable FFMPEG support
  45. PKGFS_WITH_FFMPEG:= ffmpeg
  46. PKGFB_WITH_FFMPEG:= ffmpeg
  47. PKGFD_WITH_SHOUT:= enable Shoutcast output support
  48. PKGFS_WITH_SHOUT:= libshout liblame libvorbis
  49. PKGFB_WITH_SHOUT:= lame libvorbis libshout
  50. PKGFD_WITH_CURL:= enable CURL support
  51. PKGFS_WITH_CURL:= libcurl
  52. PKGFB_WITH_CURL:= curl
  53. include ${TOPDIR}/mk/package.mk
  54. $(eval $(call PKG_template,MPD,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  55. TCFLAGS+= -std=gnu99
  56. XAKE_FLAGS+= MPD_CFLAGS='-D_GNU_SOURCE'
  57. CONFIGURE_ARGS+= --disable-httpd-output \
  58. --disable-jack \
  59. --disable-fifo \
  60. --disable-pulse \
  61. --disable-oss \
  62. --disable-mpc \
  63. --disable-wavpack \
  64. --disable-sqlite \
  65. --with-zeroconf=no
  66. ifneq (${ADK_PACKAGE_MPD_WITH_ALSA},)
  67. CONFIGURE_ARGS+= --enable-alsa
  68. else
  69. CONFIGURE_ARGS+= --disable-alsa
  70. endif
  71. ifneq (${ADK_PACKAGE_MPD_WITH_AO},)
  72. CONFIGURE_ARGS+= --enable-ao
  73. else
  74. CONFIGURE_ARGS+= --disable-ao
  75. endif
  76. ifneq (${ADK_PACKAGE_MPD_WITH_MP3},)
  77. CONFIGURE_ARGS+= --enable-id3 --enable-mad
  78. else
  79. CONFIGURE_ARGS+= --disable-id3 --disable-mad
  80. endif
  81. ifneq (${ADK_PACKAGE_MPD_WITH_MP4},)
  82. CONFIGURE_ARGS+= --enable-aac
  83. else
  84. CONFIGURE_ARGS+= --disable-aac
  85. endif
  86. ifneq (${ADK_PACKAGE_MPD_WITH_OGG},)
  87. CONFIGURE_ARGS+= --enable-vorbis
  88. else
  89. CONFIGURE_ARGS+= --disable-vorbis
  90. endif
  91. ifneq (${ADK_PACKAGE_MPD_WITH_TREMOR},)
  92. CONFIGURE_ARGS+= \
  93. --disable-vorbis \
  94. --with-tremor \
  95. --with-tremor-includes=${STAGING_TARGET_DIR}/usr/include \
  96. --with-tremor-libraries=${STAGING_TARGET_DIR}/usr/lib
  97. endif
  98. ifneq (${ADK_PACKAGE_MPD_WITH_FLAC},)
  99. CONFIGURE_ARGS+= --enable-flac --enable-oggflac
  100. else
  101. CONFIGURE_ARGS+= --disable-flac --disable-oggflac
  102. endif
  103. ifneq (${ADK_PACKAGE_MPD_WITH_WAV},)
  104. CONFIGURE_ARGS+= --enable-audiofile
  105. else
  106. CONFIGURE_ARGS+= --disable-audiofile
  107. endif
  108. ifneq (${ADK_PACKAGE_MPD_WITH_SHOUT},)
  109. CONFIGURE_ARGS+= --enable-shout \
  110. --enable-lame-encoder \
  111. --with-lame=${STAGING_TARGET_DIR}/usr \
  112. --enable-vorbis-encoder
  113. else
  114. CONFIGURE_ARGS+= --disable-shout \
  115. --disable-lame-encoder \
  116. --disable-vorbis-encoder
  117. endif
  118. ifneq (${ADK_PACKAGE_MPD_WITH_CURL},)
  119. CONFIGURE_ARGS+= --enable-curl
  120. else
  121. CONFIGURE_ARGS+= --disable-curl
  122. endif
  123. ifneq (${ADK_PACKAGE_MPD_WITH_MMS},)
  124. CONFIGURE_ARGS+= --enable-mms
  125. else
  126. CONFIGURE_ARGS+= --disable-mms
  127. endif
  128. ifneq (${ADK_PACKAGE_MPD_WITH_FFMPEG},)
  129. CONFIGURE_ARGS+= --enable-ffmpeg
  130. else
  131. CONFIGURE_ARGS+= --disable-ffmpeg
  132. endif
  133. post-install:
  134. ${INSTALL_DIR} ${IDIR_MPD}/usr/bin ${IDIR_MPD}/etc
  135. ${INSTALL_BIN} ${WRKINST}/usr/bin/mpd ${IDIR_MPD}/usr/bin
  136. ${INSTALL_DATA} ./files/mpd.conf ${IDIR_MPD}/etc/mpd.conf
  137. include ${TOPDIR}/mk/pkg-bottom.mk