2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2003-12-03 23:56:58 +01:00
|
|
|
#
|
|
|
|
# libmad
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2003-12-03 23:56:58 +01:00
|
|
|
|
2011-01-18 17:54:33 +01:00
|
|
|
LIBMAD_VERSION = 0.15.1b
|
2012-08-26 01:52:48 +02:00
|
|
|
LIBMAD_SITE = http://downloads.sourceforge.net/project/mad/libmad/$(LIBMAD_VERSION)
|
2011-01-18 17:54:33 +01:00
|
|
|
LIBMAD_INSTALL_STAGING = YES
|
2017-03-30 15:43:32 +02:00
|
|
|
LIBMAD_LICENSE = GPL-2.0+
|
2012-11-21 15:18:12 +01:00
|
|
|
LIBMAD_LICENSE_FILES = COPYING
|
2017-07-04 10:42:11 +02:00
|
|
|
LIBMAD_PATCH = \
|
|
|
|
https://sources.debian.net/data/main/libm/libmad/0.15.1b-8/debian/patches/frame_length.diff
|
2003-12-03 23:56:58 +01:00
|
|
|
|
2019-01-17 21:36:05 +01:00
|
|
|
# Force autoreconf to be able to use a more recent libtool script, that
|
|
|
|
# is able to properly behave in the face of a missing C++ compiler.
|
|
|
|
LIBMAD_AUTORECONF = YES
|
2007-05-10 10:10:21 +02:00
|
|
|
|
2011-01-18 17:54:33 +01:00
|
|
|
define LIBMAD_INSTALL_STAGING_PC
|
2012-05-06 11:39:05 +02:00
|
|
|
$(INSTALL) -D package/libmad/mad.pc \
|
2011-01-18 17:54:33 +01:00
|
|
|
$(STAGING_DIR)/usr/lib/pkgconfig/mad.pc
|
|
|
|
endef
|
|
|
|
|
|
|
|
LIBMAD_POST_INSTALL_STAGING_HOOKS += LIBMAD_INSTALL_STAGING_PC
|
2007-05-10 10:10:21 +02:00
|
|
|
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBMAD_CONF_OPTS = \
|
2014-12-22 09:12:05 +01:00
|
|
|
--disable-debugging \
|
|
|
|
$(if $(BR2_PACKAGE_LIBMAD_OPTIMIZATION_SPEED),--enable-speed) \
|
|
|
|
$(if $(BR2_PACKAGE_LIBMAD_OPTIMIZATION_ACCURACY),--enable-accuracy) \
|
|
|
|
--$(if $(BR2_PACKAGE_LIBMAD_SSO),enable,disable)-sso \
|
|
|
|
--$(if $(BR2_PACKAGE_LIBMAD_ASO),enable,disable)-aso \
|
|
|
|
--$(if $(BR2_PACKAGE_LIBMAD_STRICT_ISO),enable,disable)-strict-iso
|
2003-12-03 23:56:58 +01:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|