summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2009-12-17 21:45:12 +0100
committerPeter Korsgaard <jacmet@sunsite.dk>2009-12-17 21:45:12 +0100
commitec6ef827d6c3fdf50854a22c213cc1aac4c4eef8 (patch)
tree34b81e5c1bd940bd32858b2b980031399486e8cf /package
parent13975944738104ce7394f9f2bf22fca19887285f (diff)
downloadbuildroot-novena-ec6ef827d6c3fdf50854a22c213cc1aac4c4eef8.tar.gz
buildroot-novena-ec6ef827d6c3fdf50854a22c213cc1aac4c4eef8.zip
mpg123: convert to Makefile.autotools.in format
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package')
-rw-r--r--package/multimedia/mpg123/mpg123.mk72
1 files changed, 8 insertions, 64 deletions
diff --git a/package/multimedia/mpg123/mpg123.mk b/package/multimedia/mpg123/mpg123.mk
index 774ca77d7..25d5dd279 100644
--- a/package/multimedia/mpg123/mpg123.mk
+++ b/package/multimedia/mpg123/mpg123.mk
@@ -3,73 +3,17 @@
# mpg123
#
#############################################################
-MPG123_VERSION=0.66
-MPG123_SOURCE=mpg123-$(MPG123_VERSION).tar.bz2
-MPG123_CAT:=$(BZCAT)
-MPG123_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/mpg123
-MPG123_DIR:=$(BUILD_DIR)/mpg123-$(MPG123_VERSION)
-MPG123_BIN:=src/mpg123
-MPG123_TARGET_BIN:=usr/bin/mpg123
+MPG123_VERSION = 0.66
+MPG123_SOURCE = mpg123-$(MPG123_VERSION).tar.bz2
+MPG123_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/mpg123
+
+MPG123_CONF_OPT = --program-prefix='' --with-cpu=generic_nofpu
# Check if ALSA is built, then we should configure after alsa-lib so
# ./configure can find alsa-lib.
ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
-MPG123_USE_ALSA:=--with-audio=alsa
-MPG123_ALSA_DEP:=alsa-lib
+MPG123_CONF_OPT += --with-audio=alsa
+MPG123_DEPENDENCIES += alsa-lib
endif
-$(DL_DIR)/$(MPG123_SOURCE):
- $(call DOWNLOAD,$(MPG123_SITE),$(MPG123_SOURCE))
-
-$(MPG123_DIR)/.unpacked: $(DL_DIR)/$(MPG123_SOURCE)
- $(MPG123_CAT) $(DL_DIR)/$(MPG123_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
- toolchain/patch-kernel.sh $(MPG123_DIR) package/multimedia/mpg123/ mpg123-$(MPG123_VERSION)\*.patch
- $(CONFIG_UPDATE) $(MPG123_DIR)/build
- touch $@
-
-$(MPG123_DIR)/.configured: $(MPG123_DIR)/.unpacked
- (cd $(MPG123_DIR); rm -rf config.cache; \
- $(TARGET_CONFIGURE_ARGS) \
- $(TARGET_CONFIGURE_OPTS) \
- CFLAGS="$(TARGET_CFLAGS)" \
- LDFLAGS="$(TARGET_LDFLAGS)" \
- ./configure $(QUIET) \
- --target=$(REAL_GNU_TARGET_NAME) \
- --host=$(REAL_GNU_TARGET_NAME) \
- --build=$(GNU_HOST_NAME) \
- --prefix=/usr \
- --sysconfdir=/etc \
- --with-cpu=generic_nofpu \
- $(MPG123_USE_ALSA) \
- $(DISABLE_NLS) \
- $(DISABLE_LARGEFILE) \
- )
- touch $@
-
-$(MPG123_DIR)/$(MPG123_BIN): $(MPG123_DIR)/.configured
- $(MAKE) -C $(MPG123_DIR)
-
-$(TARGET_DIR)/$(MPG123_TARGET_BIN): $(MPG123_DIR)/$(MPG123_BIN)
- $(INSTALL) -D $(MPG123_DIR)/$(MPG123_BIN) $(TARGET_DIR)/$(MPG123_TARGET_BIN)
- $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/$(MPG123_TARGET_BIN)
-
-mpg123: $(MPG123_ALSA_DEP) $(TARGET_DIR)/$(MPG123_TARGET_BIN)
-
-mpg123-unpacked: $(MPG123_DIR)/.unpacked
-
-mpg123-clean:
- -$(MAKE) -C $(MPG123_DIR) clean
-
-mpg123-dirclean:
- rm -rf $(MPG123_DIR) $(MPG123_DIR)
-
-mpg123-source: $(DL_DIR)/$(MPG123_SOURCE)
-
-#############################################################
-#
-# Toplevel Makefile options
-#
-#############################################################
-ifeq ($(BR2_PACKAGE_MPG123),y)
-TARGETS+=mpg123
-endif
+$(eval $(call AUTOTARGETS,package/multimedia,mpg123))