2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2003-12-03 23:56:58 +01:00
|
|
|
#
|
|
|
|
# mpg123
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-01-07 20:38:24 +01:00
|
|
|
|
2014-02-04 13:23:26 +01:00
|
|
|
MPG123_VERSION = 1.18.0
|
2009-12-17 21:45:12 +01:00
|
|
|
MPG123_SOURCE = mpg123-$(MPG123_VERSION).tar.bz2
|
2012-08-26 01:52:48 +02:00
|
|
|
MPG123_SITE = http://downloads.sourceforge.net/project/mpg123/mpg123/$(MPG123_VERSION)
|
2013-11-22 23:00:41 +01:00
|
|
|
MPG123_CONF_OPT = --disable-lfs-alias
|
2011-01-18 17:54:31 +01:00
|
|
|
MPG123_INSTALL_STAGING = YES
|
2012-08-12 00:27:28 +02:00
|
|
|
MPG123_LICENSE = LGPLv2.1
|
|
|
|
MPG123_LICENSE_FILES = COPYING
|
2011-10-05 09:39:38 +02:00
|
|
|
|
2011-01-07 20:38:24 +01:00
|
|
|
MPG123_CPU = $(if $(BR2_SOFT_FLOAT),generic_nofpu,generic_fpu)
|
2009-12-17 21:45:12 +01:00
|
|
|
|
2011-01-07 20:38:24 +01:00
|
|
|
ifeq ($(BR2_arm),y)
|
|
|
|
MPG123_CPU = arm_nofpu
|
|
|
|
endif
|
2009-12-17 22:08:57 +01:00
|
|
|
|
|
|
|
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
|
2011-01-07 20:38:24 +01:00
|
|
|
ifeq ($(BR2_SOFT_FLOAT),y)
|
|
|
|
MPG123_CPU = ppc_nofpu
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_x86_64),y)
|
|
|
|
MPG123_CPU = x86-64
|
2009-12-17 22:08:57 +01:00
|
|
|
endif
|
|
|
|
|
2011-08-10 00:12:35 +02:00
|
|
|
MPG123_CONF_OPT += --with-cpu=$(MPG123_CPU)
|
2003-12-03 23:56:58 +01:00
|
|
|
|
2011-10-05 09:39:38 +02:00
|
|
|
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
|
|
|
|
|
2009-02-05 14:24:01 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
|
2011-10-05 09:39:38 +02:00
|
|
|
MPG123_AUDIO += alsa
|
|
|
|
MPG123_CONF_OPT += --with-default-audio=alsa
|
2009-12-17 21:45:12 +01:00
|
|
|
MPG123_DEPENDENCIES += alsa-lib
|
2007-07-28 19:05:38 +02:00
|
|
|
endif
|
2003-12-03 23:56:58 +01:00
|
|
|
|
2011-10-05 09:39:38 +02:00
|
|
|
MPG123_CONF_OPT += --with-audio=$(shell echo $(MPG123_AUDIO) | tr ' ' ,)
|
|
|
|
|
2011-10-20 16:07:46 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBTOOL),y)
|
|
|
|
MPG123_DEPENDENCIES += libtool
|
2013-06-30 21:29:08 +02:00
|
|
|
# .la files gets stripped , so directly load .so files rather than .la
|
2011-10-20 16:07:46 +02:00
|
|
|
MPG123_CONF_OPT += --with-modules --with-module-suffix=.so
|
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|