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
|
|
|
|
LIBMAD_LIBTOOL_PATCH = NO
|
2012-11-21 15:18:12 +01:00
|
|
|
LIBMAD_LICENSE = GPLv2+
|
|
|
|
LIBMAD_LICENSE_FILES = COPYING
|
2003-12-03 23:56:58 +01:00
|
|
|
|
2010-04-10 21:58:12 +02:00
|
|
|
define LIBMAD_PREVENT_AUTOMAKE
|
2007-11-02 23:37:58 +01:00
|
|
|
# Prevent automake from running.
|
2010-04-10 21:58:12 +02:00
|
|
|
(cd $(@D); touch -c config* aclocal.m4 Makefile*);
|
|
|
|
endef
|
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
|
|
|
|
|
|
|
|
define LIBMAD_INSTALL_TARGET_PC
|
2012-05-06 11:39:05 +02:00
|
|
|
$(INSTALL) -D package/libmad/mad.pc \
|
2011-01-18 17:54:33 +01:00
|
|
|
$(TARGET_DIR)/usr/lib/pkgconfig/mad.pc
|
|
|
|
endef
|
|
|
|
|
2010-04-10 21:58:12 +02:00
|
|
|
LIBMAD_POST_PATCH_HOOKS += LIBMAD_PREVENT_AUTOMAKE
|
2011-01-18 17:54:33 +01:00
|
|
|
LIBMAD_POST_INSTALL_STAGING_HOOKS += LIBMAD_INSTALL_STAGING_PC
|
|
|
|
LIBMAD_POST_INSTALL_TARGET_HOOKS += LIBMAD_INSTALL_TARGET_PC
|
2007-05-10 10:10:21 +02:00
|
|
|
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBMAD_CONF_OPTS = \
|
2010-04-10 21:58:12 +02:00
|
|
|
--disable-debugging \
|
2012-07-13 22:14:05 +02:00
|
|
|
$(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))
|