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
|
|
|
|
2016-06-30 19:53:08 +02:00
|
|
|
MPG123_VERSION = 1.23.6
|
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)
|
2014-09-27 21:32:44 +02:00
|
|
|
MPG123_CONF_OPTS = --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
|
2014-11-28 10:43:43 +01:00
|
|
|
MPG123_DEPENDENCIES = host-pkgconf
|
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
|
|
|
|
2014-06-01 15:11:24 +02:00
|
|
|
ifeq ($(BR2_aarch64),y)
|
|
|
|
MPG123_CPU = aarch64
|
|
|
|
endif
|
|
|
|
|
2011-01-07 20:38:24 +01:00
|
|
|
ifeq ($(BR2_arm),y)
|
2014-06-01 15:11:24 +02:00
|
|
|
ifeq ($(or $(BR2_ARM_CPU_HAS_NEON),$(BR2_ARM_CPU_HAS_VFPV2)),y)
|
|
|
|
MPG123_CPU = arm_fpu
|
|
|
|
else
|
2011-01-07 20:38:24 +01:00
|
|
|
MPG123_CPU = arm_nofpu
|
|
|
|
endif
|
2014-06-01 15:11:24 +02:00
|
|
|
endif
|
2009-12-17 22:08:57 +01:00
|
|
|
|
|
|
|
ifeq ($(BR2_i386),y)
|
|
|
|
MPG123_CPU = x86
|
|
|
|
endif
|
|
|
|
|
2014-06-02 13:29:11 +02:00
|
|
|
ifeq ($(BR2_powerpc),y)
|
2014-05-13 07:28:17 +02:00
|
|
|
ifeq ($(BR2_POWERPC_CPU_HAS_ALTIVEC),y)
|
2009-12-17 22:08:57 +01:00
|
|
|
MPG123_CPU = altivec
|
|
|
|
endif
|
2011-01-07 20:38:24 +01:00
|
|
|
ifeq ($(BR2_SOFT_FLOAT),y)
|
|
|
|
MPG123_CPU = ppc_nofpu
|
|
|
|
endif
|
2014-06-02 13:29:11 +02:00
|
|
|
endif # powerpc
|
2011-01-07 20:38:24 +01:00
|
|
|
|
|
|
|
ifeq ($(BR2_x86_64),y)
|
|
|
|
MPG123_CPU = x86-64
|
2009-12-17 22:08:57 +01:00
|
|
|
endif
|
|
|
|
|
2014-09-27 21:32:44 +02:00
|
|
|
MPG123_CONF_OPTS += --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
|
2014-09-27 21:32:44 +02:00
|
|
|
MPG123_CONF_OPTS += --with-default-audio=portaudio
|
2011-10-05 09:39:38 +02:00
|
|
|
MPG123_DEPENDENCIES += portaudio
|
2015-05-22 00:00:05 +02:00
|
|
|
# configure script does NOT use pkg-config to figure out how to link
|
|
|
|
# with portaudio, breaking static linking as portaudio uses pthreads
|
2015-07-12 16:35:26 +02:00
|
|
|
MPG123_CONF_ENV += LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs portaudio-2.0`"
|
2011-10-05 09:39:38 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SDL),y)
|
|
|
|
MPG123_AUDIO += sdl
|
2014-09-27 21:32:44 +02:00
|
|
|
MPG123_CONF_OPTS += --with-default-audio=sdl
|
2011-10-05 09:39:38 +02:00
|
|
|
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
|
2014-09-27 21:32:44 +02:00
|
|
|
MPG123_CONF_OPTS += --with-default-audio=alsa
|
2009-12-17 21:45:12 +01:00
|
|
|
MPG123_DEPENDENCIES += alsa-lib
|
2015-11-08 13:36:41 +01:00
|
|
|
# configure script does NOT use pkg-config to figure out how to link
|
|
|
|
# with alsa, breaking static linking as alsa uses pthreads
|
|
|
|
MPG123_CONF_ENV += LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs alsa`"
|
2007-07-28 19:05:38 +02:00
|
|
|
endif
|
2003-12-03 23:56:58 +01:00
|
|
|
|
2015-07-12 16:35:29 +02:00
|
|
|
MPG123_CONF_OPTS += --with-audio=$(subst $(space),$(comma),$(MPG123_AUDIO))
|
2011-10-05 09:39:38 +02:00
|
|
|
|
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
|
2014-09-27 21:32:44 +02:00
|
|
|
MPG123_CONF_OPTS += --with-modules --with-module-suffix=.so
|
2011-10-20 16:07:46 +02:00
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|