2003-12-03 23:56:58 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# libmad
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2004-10-09 22:18:02 +02:00
|
|
|
LIBMAD_VERSION=0.15.1b
|
2003-12-03 23:56:58 +01:00
|
|
|
LIBMAD_SOURCE=libmad-$(LIBMAD_VERSION).tar.gz
|
2005-06-09 14:15:00 +02:00
|
|
|
LIBMAD_SITE=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/mad/
|
2003-12-03 23:56:58 +01:00
|
|
|
LIBMAD_DIR=$(BUILD_DIR)/${shell basename $(LIBMAD_SOURCE) .tar.gz}
|
|
|
|
LIBMAD_WORKDIR=$(BUILD_DIR)/libmad-$(LIBMAD_VERSION)
|
2004-10-09 22:18:02 +02:00
|
|
|
LIBMAD_CAT:=zcat
|
2003-12-03 23:56:58 +01:00
|
|
|
|
|
|
|
$(DL_DIR)/$(LIBMAD_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(LIBMAD_SITE)/$(LIBMAD_SOURCE)
|
|
|
|
|
2004-10-09 22:18:02 +02:00
|
|
|
$(LIBMAD_DIR)/.unpacked: $(DL_DIR)/$(LIBMAD_SOURCE)
|
2004-10-09 23:19:47 +02:00
|
|
|
$(LIBMAD_CAT) $(DL_DIR)/$(LIBMAD_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2003-12-03 23:56:58 +01:00
|
|
|
touch $(LIBMAD_DIR)/.unpacked
|
|
|
|
|
|
|
|
$(LIBMAD_DIR)/.configured: $(LIBMAD_DIR)/.unpacked
|
|
|
|
(cd $(LIBMAD_DIR); rm -rf config.cache; \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
$(DISABLE_NLS) \
|
|
|
|
);
|
2004-10-09 22:18:02 +02:00
|
|
|
touch $(LIBMAD_DIR)/.configured
|
2003-12-03 23:56:58 +01:00
|
|
|
|
2004-10-09 22:18:02 +02:00
|
|
|
$(LIBMAD_WORKDIR)/libmad.la: $(LIBMAD_DIR)/.configured
|
2003-12-03 23:56:58 +01:00
|
|
|
rm -f $@
|
|
|
|
$(MAKE) CC=$(TARGET_CC) -C $(LIBMAD_WORKDIR)
|
|
|
|
|
2004-10-09 22:18:02 +02:00
|
|
|
$(LIBMAD_WORKDIR)/.installed: $(LIBMAD_WORKDIR)/libmad.la
|
2003-12-03 23:56:58 +01:00
|
|
|
$(MAKE) prefix=$(TARGET_DIR)/usr -C $(LIBMAD_WORKDIR) install
|
|
|
|
touch $(LIBMAD_WORKDIR)/.installed
|
|
|
|
|
|
|
|
libmad: uclibc $(LIBMAD_WORKDIR)/.installed
|
|
|
|
|
|
|
|
libmad-source: $(DL_DIR)/$(LIBMAD_SOURCE)
|
|
|
|
|
|
|
|
libmad-clean:
|
|
|
|
@if [ -d $(LIBMAD_WORKDIR)/Makefile ] ; then \
|
|
|
|
$(MAKE) -C $(LIBMAD_WORKDIR) clean ; \
|
|
|
|
fi;
|
|
|
|
|
|
|
|
libmad-dirclean:
|
|
|
|
rm -rf $(LIBMAD_DIR) $(LIBMAD_WORKDIR)
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_LIBMAD)),y)
|
|
|
|
TARGETS+=libmad
|
|
|
|
endif
|