diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2010-04-10 21:53:56 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2010-04-13 16:55:46 +0200 |
commit | 8e4a53cf8c5ddb3f0ea5b8d084e1b8b2b81139d4 (patch) | |
tree | 1e889b61977b6ad69e04d08de7eddfd175b8d535 /package | |
parent | c901bef2c80d9e2eac3ca482c40019957d8b3fe7 (diff) | |
download | buildroot-novena-8e4a53cf8c5ddb3f0ea5b8d084e1b8b2b81139d4.tar.gz buildroot-novena-8e4a53cf8c5ddb3f0ea5b8d084e1b8b2b81139d4.zip |
madplay: convert to the autotools infrastructure
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package')
-rw-r--r-- | package/multimedia/madplay/madplay.mk | 64 |
1 files changed, 5 insertions, 59 deletions
diff --git a/package/multimedia/madplay/madplay.mk b/package/multimedia/madplay/madplay.mk index fce9a6169..a2ac14d38 100644 --- a/package/multimedia/madplay/madplay.mk +++ b/package/multimedia/madplay/madplay.mk @@ -6,68 +6,14 @@ MADPLAY_VERSION:=0.15.2b MADPLAY_SOURCE:=madplay-$(MADPLAY_VERSION).tar.gz MADPLAY_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/mad -MADPLAY_CAT:=$(ZCAT) -MADPLAY_DIR:=$(BUILD_DIR)/madplay-$(MADPLAY_VERSION) -MADPLAY_BIN:=madplay -MADPLAY_TARGET_BIN:=usr/bin/$(MADPLAY_BIN) +MADPLAY_LIBTOOL_PATCH=NO +MADPLAY_DEPENDENCIES=libmad libid3tag # Check if ALSA is built, then we should configure after alsa-lib so # ./configure can find alsa-lib. ifeq ($(BR2_PACKAGE_MADPLAY_ALSA),y) -MADPLAY_USE_ALSA:=--with-alsa -MADPLAY_ALSA_DEP:=alsa-lib +MADPLAY_CONF_OPT+=--with-alsa +MADPLAY_DEPENDENCIES+=alsa-lib endif -$(DL_DIR)/$(MADPLAY_SOURCE): - $(call DOWNLOAD,$(MADPLAY_SITE),$(MADPLAY_SOURCE)) - -$(MADPLAY_DIR)/.unpacked: $(DL_DIR)/$(MADPLAY_SOURCE) - $(MADPLAY_CAT) $(DL_DIR)/$(MADPLAY_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - - toolchain/patch-kernel.sh $(MADPLAY_DIR) package/multimedia/madplay madplay\*.patch\* - $(CONFIG_UPDATE) $(MADPLAY_DIR) - touch $@ - -$(MADPLAY_DIR)/.configured: $(MADPLAY_DIR)/.unpacked - (cd $(MADPLAY_DIR); rm -rf config.cache; \ - $(TARGET_CONFIGURE_ARGS) \ - $(TARGET_CONFIGURE_OPTS) \ - CFLAGS="$(TARGET_CFLAGS) $(BR2_MADPLAY_CFLAGS)" \ - LDFLAGS="$(TARGET_LDFLAGS)" \ - ./configure $(QUIET) \ - --target=$(REAL_GNU_TARGET_NAME) \ - --host=$(REAL_GNU_TARGET_NAME) \ - --build=$(GNU_HOST_NAME) \ - --prefix=/usr \ - --sysconfdir=/etc \ - $(MADPLAY_USE_ALSA) \ - $(DISABLE_NLS) \ - $(DISABLE_LARGEFILE) \ - ) - touch $@ - -$(MADPLAY_DIR)/$(MADPLAY_BIN): $(MADPLAY_DIR)/.configured - $(MAKE) -C $(MADPLAY_DIR) - -$(TARGET_DIR)/$(MADPLAY_TARGET_BIN): $(MADPLAY_DIR)/$(MADPLAY_BIN) - $(INSTALL) -D $(MADPLAY_DIR)/$(MADPLAY_BIN) $(TARGET_DIR)/$(MADPLAY_TARGET_BIN) - $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/$(MADPLAY_TARGET_BIN) - -madplay: $(MADPLAY_ALSA_DEP) libmad libid3tag $(TARGET_DIR)/$(MADPLAY_TARGET_BIN) - -madplay-clean: - rm -f $(TARGET_DIR)/$(MADPLAY_TARGET_BIN) - -$(MAKE) -C $(MADPLAY_DIR) clean - -madplay-dirclean: - rm -rf $(MADPLAY_DIR) - -madplay-source: $(DL_DIR)/$(MADPLAY_SOURCE) - -############################################################# -# -# Toplevel Makefile options -# -############################################################# -ifeq ($(BR2_PACKAGE_MADPLAY),y) -TARGETS+=madplay -endif +$(eval $(call AUTOTARGETS,package/multimedia,madplay)) |