2003-12-03 23:56:58 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# libmad
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2011-01-18 17:54:33 +01:00
|
|
|
LIBMAD_VERSION = 0.15.1b
|
|
|
|
LIBMAD_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/mad/
|
|
|
|
LIBMAD_INSTALL_STAGING = YES
|
|
|
|
LIBMAD_LIBTOOL_PATCH = NO
|
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
|
|
|
|
$(INSTALL) -D package/multimedia/libmad/mad.pc \
|
|
|
|
$(STAGING_DIR)/usr/lib/pkgconfig/mad.pc
|
|
|
|
endef
|
|
|
|
|
|
|
|
define LIBMAD_INSTALL_TARGET_PC
|
|
|
|
$(INSTALL) -D package/multimedia/libmad/mad.pc \
|
|
|
|
$(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
|
|
|
|
2010-04-10 21:58:12 +02:00
|
|
|
LIBMAD_CONF_OPT = \
|
|
|
|
--disable-debugging \
|
|
|
|
--enable-speed
|
2003-12-03 23:56:58 +01:00
|
|
|
|
2011-09-29 21:57:43 +02:00
|
|
|
$(eval $(call AUTOTARGETS))
|