123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260 |
- # This file is part of the OpenADK project. OpenADK is copyrighted
- # material, please see the LICENCE file in the top-level directory.
- include ${TOPDIR}/rules.mk
- PKG_NAME:= mpd
- PKG_VERSION:= 0.18.10
- PKG_RELEASE:= 1
- PKG_MD5SUM:= 046f23f63ad9aa4af38159754f813fc7
- PKG_DESCR:= music player daemon
- PKG_SECTION:= multimedia
- PKG_DEPENDS:= glib libstdcxx libiconv-tiny libmpdclient librt
- PKG_FDEPENDS:= glib libstdcxx libiconv-tiny libmpdclient librt
- PKG_BUILDDEP:= glib libmpdclient
- PKG_URL:= http://www.musicpd.org/
- PKG_SITES:= http://www.musicpd.org/download/mpd/0.18/
- PKG_NEED_CXX:= 1
- PKG_FLAVOURS_MPD:= WITH_ALSA WITH_AO WITH_MP3 WITH_MP4 WITH_TREMOR
- PKG_FLAVOURS_MPD+= WITH_OGG WITH_FLAC WITH_WAV WITH_MMS WITH_FFMPEG
- PKG_FLAVOURS_MPD+= WITH_SHOUT WITH_CURL WITH_SAMPLERATE WITH_HTTPD
- PKG_FLAVOURS_MPD+= WITH_OPUS WITH_PULSE WITH_AVAHI
- PKGFD_WITH_ALSA:= enable ALSA output
- PKGFS_WITH_ALSA:= alsa-lib
- PKGFB_WITH_ALSA:= alsa-lib
- ifeq ($(ADK_PACKAGE_MPD_WITH_ALSA),y)
- PKG_FDEPENDS+= alsa-lib
- endif
- PKGFD_WITH_AO:= enable Libao/ESD output
- PKGFS_WITH_AO:= libao
- PKGFB_WITH_AO:= libao
- ifeq ($(ADK_PACKAGE_MPD_WITH_AO),y)
- PKG_FDEPENDS+= libao
- endif
- PKGFD_WITH_MP3:= enable MP3 support
- PKGFS_WITH_MP3:= libid3tag libmad
- PKGFB_WITH_MP3:= libid3tag libmad
- ifeq ($(ADK_PACKAGE_MPD_WITH_MP3),y)
- PKG_FDEPENDS+= libid3tag libmad
- endif
- PKGFD_WITH_MP4:= enable MP4 support
- PKGFS_WITH_MP4:= libfaad2
- PKGFB_WITH_MP4:= faad2
- ifeq ($(ADK_PACKAGE_MPD_WITH_MP4),y)
- PKG_FDEPENDS+= libfaad2
- endif
- PKGFD_WITH_OGG:= enable OGG support
- PKGFS_WITH_OGG:= libvorbis libogg
- PKGFB_WITH_OGG:= libvorbis libogg
- ifeq ($(ADK_PACKAGE_MPD_WITH_OGG),y)
- PKG_FDEPENDS+= libvorbis libogg
- endif
- PKGFD_WITH_TREMOR:= enable fixpoint Vorbis/OGG support
- PKGFS_WITH_TREMOR:= libvorbisidec
- PKGFB_WITH_TREMOR:= libvorbisidec
- ifeq ($(ADK_PACKAGE_MPD_WITH_TREMOR),y)
- PKG_FDEPENDS+= libvorbisidec
- endif
- PKGFD_WITH_FLAC:= enable FLAC support
- PKGFS_WITH_FLAC:= libflac
- PKGFB_WITH_FLAC:= flac
- ifeq ($(ADK_PACKAGE_MPD_WITH_FLAC),y)
- PKG_FDEPENDS+= libflac
- endif
- PKGFD_WITH_WAV:= enable WAVE support
- PKGFS_WITH_WAV:= libaudiofile
- PKGFB_WITH_WAV:= libaudiofile
- ifeq ($(ADK_PACKAGE_MPD_WITH_WAV),y)
- PKG_FDEPENDS+= libaudiofile
- endif
- PKGFD_WITH_MMS:= enable MMS support
- PKGFS_WITH_MMS:= libmms
- PKGFB_WITH_MMS:= libmms
- ifeq ($(ADK_PACKAGE_MPD_WITH_MMS),y)
- PKG_FDEPENDS+= libmms
- endif
- PKGFD_WITH_FFMPEG:= enable FFMPEG support
- PKGFS_WITH_FFMPEG:= libffmpeg
- PKGFB_WITH_FFMPEG:= ffmpeg
- ifeq ($(ADK_PACKAGE_MPD_WITH_FFMPEG),y)
- PKG_FDEPENDS+= libffmpeg
- endif
- PKGFD_WITH_SHOUT:= enable Shoutcast output support
- PKGFS_WITH_SHOUT:= libshout libmp3lame libvorbisenc
- PKGFB_WITH_SHOUT:= lame libvorbis libshout
- ifeq ($(ADK_PACKAGE_MPD_WITH_SHOUT),y)
- PKG_FDEPENDS+= libshout libmp3lame libvorbisenc
- endif
- PKGFD_WITH_CURL:= enable CURL support
- PKGFS_WITH_CURL:= libcurl
- PKGFB_WITH_CURL:= curl
- ifeq ($(ADK_PACKAGE_MPD_WITH_CURL),y)
- PKG_FDEPENDS+= libcurl
- endif
- PKGFD_WITH_SAMPLERATE:= enable samplerate support
- PKGFS_WITH_SAMPLERATE:= libsamplerate
- PKGFB_WITH_SAMPLERATE:= libsamplerate
- ifeq ($(ADK_PACKAGE_MPD_WITH_SAMPLERATE),y)
- PKG_FDEPENDS+= libsamplerate
- endif
- PKGFD_WITH_OPUS:= enable OPUS support
- PKGFS_WITH_OPUS:= libopus
- PKGFB_WITH_OPUS:= opus
- ifeq ($(ADK_PACKAGE_MPD_WITH_OPUS),y)
- PKG_FDEPENDS+= libopus
- endif
- PKGFD_WITH_PULSE:= enable PULSE support
- PKGFS_WITH_PULSE:= pulseaudio
- PKGFB_WITH_PULSE:= pulseaudio
- ifeq ($(ADK_PACKAGE_MPD_WITH_PULSE),y)
- PKG_FDEPENDS+= pulseaudio
- endif
- PKGFD_WITH_AVAHI:= enable AVAHI/zeroconf support
- PKGFS_WITH_AVAHI:= libavahi libdbus
- PKGFB_WITH_AVAHI:= avahi
- ifeq ($(ADK_PACKAGE_MPD_WITH_AVAHI),y)
- PKG_FDEPENDS+= libavahi
- endif
- PKGFD_WITH_HTTPD:= enable HTTP output
- include ${TOPDIR}/mk/package.mk
- $(eval $(call PKG_template,MPD,mpd,${PKG_VERSION}-${PKG_RELEASE},${PKG_FDEPENDS},${PKG_DESCR},${PKG_SECTION}))
- TARGET_CPPFLAGS+= -D_GNU_SOURCE -D_POSIX_SOURCE
- TARGET_CFLAGS+= -std=gnu99
- CONFIGURE_ENV+= ac_cv_lib_nsl_gethostbyname=no
- CONFIGURE_ARGS+= --disable-jack \
- --disable-fifo \
- --disable-oss \
- --disable-bzip2 \
- --disable-libwrap \
- --disable-mpc \
- --disable-wavpack \
- --disable-modplug \
- --disable-sqlite \
- --disable-mpg123 \
- --disable-soundcloud \
- --enable-inotify
- ifneq (${ADK_PACKAGE_MPD_WITH_HTTPD},)
- CONFIGURE_ARGS+= --enable-httpd-output
- else
- CONFIGURE_ARGS+= --disable-httpd-output
- endif
- ifneq (${ADK_PACKAGE_MPD_WITH_AVAHI},)
- CONFIGURE_ARGS+= --with-zeroconf=avahi
- else
- CONFIGURE_ARGS+= --with-zeroconf=no
- endif
- ifneq (${ADK_PACKAGE_MPD_WITH_PULSE},)
- CONFIGURE_ARGS+= --enable-pulse
- else
- CONFIGURE_ARGS+= --disable-pulse
- endif
- ifneq (${ADK_PACKAGE_MPD_WITH_ALSA},)
- CONFIGURE_ARGS+= --enable-alsa
- else
- CONFIGURE_ARGS+= --disable-alsa
- endif
- ifneq (${ADK_PACKAGE_MPD_WITH_AO},)
- CONFIGURE_ARGS+= --enable-ao
- else
- CONFIGURE_ARGS+= --disable-ao
- endif
- ifneq (${ADK_PACKAGE_MPD_WITH_MP3},)
- CONFIGURE_ARGS+= --enable-id3 --enable-mad
- else
- CONFIGURE_ARGS+= --disable-id3 --disable-mad
- endif
- ifneq (${ADK_PACKAGE_MPD_WITH_MP4},)
- CONFIGURE_ARGS+= --enable-aac
- else
- CONFIGURE_ARGS+= --disable-aac
- endif
- ifneq (${ADK_PACKAGE_MPD_WITH_OGG},)
- CONFIGURE_ARGS+= --enable-vorbis
- else
- CONFIGURE_ARGS+= --disable-vorbis
- endif
- ifneq (${ADK_PACKAGE_MPD_WITH_TREMOR},)
- CONFIGURE_ARGS+= \
- --disable-vorbis \
- --with-tremor \
- --with-tremor-includes=${STAGING_TARGET_DIR}/usr/include \
- --with-tremor-libraries=${STAGING_TARGET_DIR}/usr/lib
- endif
- ifneq (${ADK_PACKAGE_MPD_WITH_FLAC},)
- CONFIGURE_ARGS+= --enable-flac
- else
- CONFIGURE_ARGS+= --disable-flac
- endif
- ifneq (${ADK_PACKAGE_MPD_WITH_WAV},)
- CONFIGURE_ARGS+= --enable-audiofile
- else
- CONFIGURE_ARGS+= --disable-audiofile
- endif
- ifneq (${ADK_PACKAGE_MPD_WITH_SHOUT},)
- CONFIGURE_ARGS+= --enable-shout \
- --enable-lame-encoder \
- --enable-vorbis-encoder
- else
- CONFIGURE_ARGS+= --disable-shout \
- --disable-lame-encoder \
- --disable-vorbis-encoder
- endif
- ifneq (${ADK_PACKAGE_MPD_WITH_CURL},)
- CONFIGURE_ARGS+= --enable-curl
- else
- CONFIGURE_ARGS+= --disable-curl
- endif
- ifneq (${ADK_PACKAGE_MPD_WITH_MMS},)
- CONFIGURE_ARGS+= --enable-mms
- else
- CONFIGURE_ARGS+= --disable-mms
- endif
- ifneq (${ADK_PACKAGE_MPD_WITH_FFMPEG},)
- CONFIGURE_ARGS+= --enable-ffmpeg
- else
- CONFIGURE_ARGS+= --disable-ffmpeg
- endif
- ifneq (${ADK_PACKAGE_MPD_WITH_SAMPLERATE},)
- CONFIGURE_ARGS+= --enable-lsr
- else
- CONFIGURE_ARGS+= --disable-lsr
- endif
- ifneq (${ADK_PACKAGE_MPD_WITH_OPUS},)
- CONFIGURE_ARGS+= --enable-opus
- else
- CONFIGURE_ARGS+= --disable-opus
- endif
- mpd-install:
- ${INSTALL_DIR} ${IDIR_MPD}/usr/bin ${IDIR_MPD}/etc/mpd/playlists
- ${INSTALL_BIN} ${WRKINST}/usr/bin/mpd ${IDIR_MPD}/usr/bin
- ${INSTALL_DATA} ./files/mpd.conf ${IDIR_MPD}/etc/mpd.conf
- include ${TOPDIR}/mk/pkg-bottom.mk
|