aboutsummaryrefslogtreecommitdiff
path: root/package/mpg123
diff options
context:
space:
mode:
authorGravatar Jérôme Pouiller <jezz@sysmic.org>2013-08-30 11:05:57 +0200
committerGravatar Peter Korsgaard <jacmet@sunsite.dk>2013-09-08 21:41:39 +0200
commitadf6511013b8921d6856f5dc0e053cdd27891244 (patch)
tree14f1ba25f8ae138743e3f3954b85883c636714d8 /package/mpg123
parentbafa8fcc6ce90553843b5c24e68de57c40f94abe (diff)
downloadbuildroot-adf6511013b8921d6856f5dc0e053cdd27891244.tar.gz
buildroot-adf6511013b8921d6856f5dc0e053cdd27891244.tar.bz2
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/mpg123')
-rw-r--r--package/mpg123/Config.in7
-rw-r--r--package/mpg123/mpg123.mk68
2 files changed, 75 insertions, 0 deletions
diff --git a/package/mpg123/Config.in b/package/mpg123/Config.in
new file mode 100644
index 0000000000..18ac41cfca
--- /dev/null
+++ b/package/mpg123/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_MPG123
+ bool "mpg123"
+ help
+ Fast, free and portable MPEG audio player for Unix. It supports
+ MPEG 1.0/2.0 layers 1, 2 and 3.
+
+ http://www.mpg123.de/
diff --git a/package/mpg123/mpg123.mk b/package/mpg123/mpg123.mk
new file mode 100644
index 0000000000..e9d074fc75
--- /dev/null
+++ b/package/mpg123/mpg123.mk
@@ -0,0 +1,68 @@
+################################################################################
+#
+# mpg123
+#
+################################################################################
+
+MPG123_VERSION = 1.15.4
+MPG123_SOURCE = mpg123-$(MPG123_VERSION).tar.bz2
+MPG123_SITE = http://downloads.sourceforge.net/project/mpg123/mpg123/$(MPG123_VERSION)
+MPG123_CONF_OPT = --with-optimization=0 --disable-lfs-alias
+MPG123_INSTALL_STAGING = YES
+MPG123_LICENSE = LGPLv2.1
+MPG123_LICENSE_FILES = COPYING
+
+MPG123_CPU = $(if $(BR2_SOFT_FLOAT),generic_nofpu,generic_fpu)
+
+ifeq ($(BR2_arm),y)
+MPG123_CPU = arm_nofpu
+endif
+
+ifeq ($(BR2_i386),y)
+MPG123_CPU = x86
+endif
+
+ifeq ($(BR2_powerpc),y)
+ifneq ($(BR2_powerpc_7400)$(BR2_powerpc_7450)$(BR2_powerpc_970),)
+MPG123_CPU = altivec
+endif
+ifeq ($(BR2_SOFT_FLOAT),y)
+MPG123_CPU = ppc_nofpu
+endif
+endif
+
+ifeq ($(BR2_x86_64),y)
+MPG123_CPU = x86-64
+endif
+
+MPG123_CONF_OPT += --with-cpu=$(MPG123_CPU)
+
+MPG123_AUDIO = dummy oss
+
+ifeq ($(BR2_PACKAGE_PORTAUDIO),y)
+MPG123_AUDIO += portaudio
+MPG123_CONF_OPT += --with-default-audio=portaudio
+MPG123_DEPENDENCIES += portaudio
+endif
+
+ifeq ($(BR2_PACKAGE_SDL),y)
+MPG123_AUDIO += sdl
+MPG123_CONF_OPT += --with-default-audio=sdl
+MPG123_DEPENDENCIES += sdl
+endif
+
+ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
+MPG123_AUDIO += alsa
+MPG123_CONF_OPT += --with-default-audio=alsa
+MPG123_DEPENDENCIES += alsa-lib
+endif
+
+MPG123_CONF_OPT += --with-audio=$(shell echo $(MPG123_AUDIO) | tr ' ' ,)
+
+ifeq ($(BR2_PACKAGE_LIBTOOL),y)
+MPG123_DEPENDENCIES += libtool
+# .la files gets stripped , so directly load .so files rather than .la
+MPG123_CONF_OPT += --with-modules --with-module-suffix=.so
+endif
+
+$(eval $(autotools-package))