Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] Upgrade mpg123 to 0.61
@ 2006-11-29  3:26 Pavel Roskin
  2006-11-29  9:00 ` Bernhard Fischer
  0 siblings, 1 reply; 2+ messages in thread
From: Pavel Roskin @ 2006-11-29  3:26 UTC (permalink / raw)
  To: buildroot

mpg123 0.59r is unsuitable for crosscompiling due to its makefile
organization.  Upgrade it to 0.61.  Download the package from the
preferred SourceForge mirror.  Use configure script.  mpg123 is now in
src directory.

Index: package/mpg123/mpg123.mk
===================================================================
--- package/mpg123/mpg123.mk	(revision 16709)
+++ package/mpg123/mpg123.mk	(working copy)
@@ -4,14 +4,14 @@
 #
 #############################################################
 
-MPG123_VERSION=0.59r
+MPG123_VERSION=0.61
 
 # Don't alter below this line unless you (think) you know
 # what you are doing! Danger, Danger!
 
 MPG123_SOURCE=mpg123-$(MPG123_VERSION).tar.gz
 MPG123_CAT:=$(ZCAT)
-MPG123_SITE=http://www.mpg123.de/mpg123
+MPG123_SITE=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/mpg123
 MPG123_DIR=$(BUILD_DIR)/${shell basename $(MPG123_SOURCE) .tar.gz}
 MPG123_WORKDIR=$(BUILD_DIR)/mpg123-$(MPG123_VERSION)
 
@@ -22,13 +22,28 @@
 	$(MPG123_CAT) $(DL_DIR)/$(MPG123_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
 	touch $(MPG123_DIR)/.unpacked
 
-$(MPG123_WORKDIR)/mpg123:	$(MPG123_DIR)/.unpacked
+$(MPG123_DIR)/.configured: $(MPG123_DIR)/.unpacked
+	(cd $(MPG123_DIR); rm -rf config.cache; \
+		$(TARGET_CONFIGURE_OPTS) \
+		CFLAGS="$(TARGET_CFLAGS)" \
+		./configure \
+		--target=$(GNU_TARGET_NAME) \
+		--host=$(GNU_TARGET_NAME) \
+		--build=$(GNU_HOST_NAME) \
+		--prefix=/usr \
+		--libexecdir=/usr/lib \
+		--sysconfdir=/etc \
+		--localstatedir=/var \
+	);
+	touch $(MPG123_DIR)/.configured
+
+$(MPG123_WORKDIR)/src/mpg123:	$(MPG123_DIR)/.configured
 	rm -f $@
-	$(MAKE) CC=$(TARGET_CC) -C $(MPG123_WORKDIR) linux
+	$(MAKE) -C $(MPG123_WORKDIR)
 
-$(MPG123_WORKDIR)/.installed: 	$(MPG123_WORKDIR)/mpg123
+$(MPG123_WORKDIR)/.installed: 	$(MPG123_WORKDIR)/src/mpg123
 	mkdir -p $(TARGET_DIR)/usr/bin
-	cp -f $(MPG123_WORKDIR)/mpg123 $(TARGET_DIR)/usr/bin
+	cp -f $(MPG123_WORKDIR)/src/mpg123 $(TARGET_DIR)/usr/bin
 	$(STRIP) --strip-all $(TARGET_DIR)/usr/bin/mpg123
 	touch $(MPG123_WORKDIR)/.installed
 


-- 
Regards,
Pavel Roskin

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-11-29  9:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-29  3:26 [Buildroot] [PATCH] Upgrade mpg123 to 0.61 Pavel Roskin
2006-11-29  9:00 ` Bernhard Fischer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox