1 ################################################################################
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
*);
19 define LIBMAD_INSTALL_STAGING_PC
20 $(INSTALL
) -D package
/libmad
/mad.
pc \
21 $(STAGING_DIR
)/usr
/lib
/pkgconfig
/mad.
pc
24 define LIBMAD_INSTALL_TARGET_PC
25 $(INSTALL
) -D package
/libmad
/mad.
pc \
26 $(TARGET_DIR
)/usr
/lib
/pkgconfig
/mad.
pc
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
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
))