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