flann: bump version to fix build with gcc 6
[buildroot-gz.git] / package / libmad / libmad.mk
blob9c152f9721e9518d5fe7397356282bb4a32a5899
1 ################################################################################
3 # libmad
5 ################################################################################
7 LIBMAD_VERSION = 0.15.1b
8 LIBMAD_SITE = http://downloads.sourceforge.net/project/mad/libmad/$(LIBMAD_VERSION)
9 LIBMAD_INSTALL_STAGING = YES
10 LIBMAD_LIBTOOL_PATCH = NO
11 LIBMAD_LICENSE = GPLv2+
12 LIBMAD_LICENSE_FILES = COPYING
14 define LIBMAD_PREVENT_AUTOMAKE
15 # Prevent automake from running.
16 (cd $(@D); touch -c config* aclocal.m4 Makefile*);
17 endef
19 define LIBMAD_INSTALL_STAGING_PC
20 $(INSTALL) -D package/libmad/mad.pc \
21 $(STAGING_DIR)/usr/lib/pkgconfig/mad.pc
22 endef
24 define LIBMAD_INSTALL_TARGET_PC
25 $(INSTALL) -D package/libmad/mad.pc \
26 $(TARGET_DIR)/usr/lib/pkgconfig/mad.pc
27 endef
29 LIBMAD_POST_PATCH_HOOKS += LIBMAD_PREVENT_AUTOMAKE
30 LIBMAD_POST_INSTALL_STAGING_HOOKS += LIBMAD_INSTALL_STAGING_PC
31 LIBMAD_POST_INSTALL_TARGET_HOOKS += LIBMAD_INSTALL_TARGET_PC
33 LIBMAD_CONF_OPTS = \
34 --disable-debugging \
35 $(if $(BR2_PACKAGE_LIBMAD_OPTIMIZATION_SPEED),--enable-speed) \
36 $(if $(BR2_PACKAGE_LIBMAD_OPTIMIZATION_ACCURACY),--enable-accuracy) \
37 --$(if $(BR2_PACKAGE_LIBMAD_SSO),enable,disable)-sso \
38 --$(if $(BR2_PACKAGE_LIBMAD_ASO),enable,disable)-aso \
39 --$(if $(BR2_PACKAGE_LIBMAD_STRICT_ISO),enable,disable)-strict-iso
41 $(eval $(autotools-package))