diff options
author | Jérôme Pouiller <jezz@sysmic.org> | 2013-08-30 11:05:57 +0200 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2013-09-08 21:41:39 +0200 |
commit | adf6511013b8921d6856f5dc0e053cdd27891244 (patch) | |
tree | 14f1ba25f8ae138743e3f3954b85883c636714d8 /package/mpd/mpd.mk | |
parent | bafa8fcc6ce90553843b5c24e68de57c40f94abe (diff) | |
download | buildroot-adf6511013b8921d6856f5dc0e053cdd27891244.tar.gz buildroot-adf6511013b8921d6856f5dc0e053cdd27891244.zip |
Remove multimedia subdirectory
Unless it was a group of sub-packages, packages was never regrouped by
category. multimedia/ was an exception to this rule.
This patch move packages/multimedia/ sub-directories to packages/. It
keeps two subdirectories for gstream 0.10 and gstreamer 1.X.
Signed-off-by: Jérôme Pouiller <jezz@sysmic.org>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/mpd/mpd.mk')
-rw-r--r-- | package/mpd/mpd.mk | 140 |
1 files changed, 140 insertions, 0 deletions
diff --git a/package/mpd/mpd.mk b/package/mpd/mpd.mk new file mode 100644 index 0000000000..95e18f7d53 --- /dev/null +++ b/package/mpd/mpd.mk @@ -0,0 +1,140 @@ +################################################################################ +# +# mpd +# +################################################################################ + +MPD_VERSION = 0.17.5 +MPD_SITE = http://www.musicpd.org/download/mpd/stable +MPD_DEPENDENCIES = host-pkgconf libglib2 +MPD_LICENSE = GPLv2 +MPD_LICENSE_FILES = COPYING + +# Some options need an explicit --disable or --enable + +ifeq ($(BR2_PACKAGE_MPD_ALSA),y) +MPD_DEPENDENCIES += alsa-lib +else +MPD_CONF_OPT += --disable-alsa +endif + +ifeq ($(BR2_PACKAGE_MPD_AO),y) +MPD_DEPENDENCIES += libao +MPD_CONF_OPT += --enable-ao +endif + +ifeq ($(BR2_PACKAGE_MPD_AUDIOFILE),y) +MPD_DEPENDENCIES += audiofile +MPD_CONF_OPT += --enable-audiofile +endif + +ifeq ($(BR2_PACKAGE_MPD_PULSEAUDIO),y) +MPD_DEPENDENCIES += pulseaudio +MPD_CONF_OPT += --enable-pulse +endif + +ifeq ($(BR2_PACKAGE_MPD_BZIP2),y) +MPD_DEPENDENCIES += bzip2 +MPD_CONF_OPT += --enable-bzip2 +endif + +ifeq ($(BR2_PACKAGE_MPD_FAAD2),y) +MPD_DEPENDENCIES += faad2 +else +MPD_CONF_OPT += --disable-faad2 +endif + +ifeq ($(BR2_PACKAGE_MPD_FLAC),y) +MPD_DEPENDENCIES += flac +else +MPD_CONF_OPT += --without-flac --disable-oggflac +endif + +ifeq ($(BR2_PACKAGE_MPD_CURL),y) +MPD_DEPENDENCIES += libcurl +else +MPD_CONF_OPT += --disable-curl +endif + +ifeq ($(BR2_PACKAGE_MPD_LAME),y) +MPD_DEPENDENCIES += lame +else +MPD_CONF_OPT += --disable-lame-encoder +endif + +ifeq ($(BR2_PACKAGE_MPD_LIBCUE),y) +MPD_DEPENDENCIES += libcue +else +MPD_CONF_OPT += --disable-cue +endif + +ifeq ($(BR2_PACKAGE_MPD_LIBSAMPLERATE),y) +MPD_DEPENDENCIES += libsamplerate +else +MPD_CONF_OPT += --disable-lsr +endif + +ifeq ($(BR2_PACKAGE_MPD_LIBSNDFILE),y) +MPD_DEPENDENCIES += libsndfile +else +MPD_CONF_OPT += --disable-sndfile +endif + +ifeq ($(BR2_PACKAGE_MPD_VORBIS),y) +MPD_DEPENDENCIES += libvorbis +else +MPD_CONF_OPT += --disable-vorbis +endif + +ifeq ($(BR2_PACKAGE_MPD_MPG123),y) +MPD_DEPENDENCIES += libid3tag mpg123 +else +MPD_CONF_OPT += --disable-mpg123 +endif + +ifeq ($(BR2_PACKAGE_MPD_MUSEPACK),y) +MPD_DEPENDENCIES += musepack +else +MPD_CONF_OPT += --disable-mpc +endif + +ifeq ($(BR2_PACKAGE_MPD_SQLITE),y) +MPD_DEPENDENCIES += sqlite +else +MPD_CONF_OPT += --disable-sqlite +endif + +ifneq ($(BR2_PACKAGE_MPD_TCP),y) +MPD_CONF_OPT += --disable-tcp +endif + +ifeq ($(BR2_PACKAGE_MPD_TREMOR),y) +MPD_DEPENDENCIES += tremor +MPD_CONF_OPT += --with-tremor +endif + +ifeq ($(BR2_PACKAGE_MPD_WAVPACK),y) +MPD_DEPENDENCIES += wavpack +else +MPD_CONF_OPT += --disable-wavpack +endif + +ifeq ($(BR2_PACKAGE_MPD_FFMPEG),y) +MPD_DEPENDENCIES += ffmpeg +MPD_CONF_OPT += --enable-ffmpeg +else +MPD_CONF_OPT += --disable-ffmpeg +endif + +define MPD_INSTALL_EXTRA_FILES + @if [ ! -f $(TARGET_DIR)/etc/mpd.conf ]; then \ + $(INSTALL) -D package/multimedia/mpd/mpd.conf \ + $(TARGET_DIR)/etc/mpd.conf; \ + fi + $(INSTALL) -m 0755 -D package/multimedia/mpd/S95mpd \ + $(TARGET_DIR)/etc/init.d/S95mpd +endef + +MPD_POST_INSTALL_TARGET_HOOKS += MPD_INSTALL_EXTRA_FILES + +$(eval $(autotools-package)) |