[61124] trunk/dports/audio/mpg123

ryandesign at macports.org ryandesign at macports.org
Wed Dec 2 09:41:18 PST 2009


Revision: 61124
          http://trac.macports.org/changeset/61124
Author:   ryandesign at macports.org
Date:     2009-12-02 09:41:14 -0800 (Wed, 02 Dec 2009)
Log Message:
-----------
mpg123: update to 1.9.2, add sourceforge master site, fix problem loading modules when using libtool 2.2.6b (http://lists.macosforge.org/pipermail/macports-users/2009-December/017841.html)

Modified Paths:
--------------
    trunk/dports/audio/mpg123/Portfile

Added Paths:
-----------
    trunk/dports/audio/mpg123/files/
    trunk/dports/audio/mpg123/files/patch-src-module.c

Modified: trunk/dports/audio/mpg123/Portfile
===================================================================
--- trunk/dports/audio/mpg123/Portfile	2009-12-02 13:54:17 UTC (rev 61123)
+++ trunk/dports/audio/mpg123/Portfile	2009-12-02 17:41:14 UTC (rev 61124)
@@ -2,7 +2,7 @@
 
 PortSystem 1.0
 name		mpg123
-version		1.9.0
+version		1.9.2
 categories	audio
 maintainers	gmx.at:astifter openmaintainer
 description	fast mp3 player for linux and unix systems
@@ -18,12 +18,17 @@
 
 homepage	http://www.mpg123.de/
 platforms	darwin
-master_sites	http://www.mpg123.de/download/
+master_sites	sourceforge \
+		${homepage}download/
 use_bzip2	yes
-checksums	md5 0ea1a5d45680c847a9594188f582d284
+checksums	md5     5313b1bcc0274b4d7c394397c205bb20 \
+		sha1    89d80da4dde0dbed1f605650c06a49d70cabff4c \
+		rmd160  a7a786d85f7fb7d019cfad26562f4c8b3cfb77e3
 
 depends_lib	port:libtool
 
+patchfiles	patch-src-module.c
+
 platform macosx {
     configure.args-append --with-audio=coreaudio
 }

Added: trunk/dports/audio/mpg123/files/patch-src-module.c
===================================================================
--- trunk/dports/audio/mpg123/files/patch-src-module.c	                        (rev 0)
+++ trunk/dports/audio/mpg123/files/patch-src-module.c	2009-12-02 17:41:14 UTC (rev 61124)
@@ -0,0 +1,19 @@
+http://sourceforge.net/tracker/?func=detail&aid=2901661&group_id=135704&atid=733194
+--- src/module.c-orig	2009-11-18 11:21:01.000000000 -0600
++++ src/module.c	2009-12-02 11:35:53.000000000 -0600
+@@ -121,13 +121,13 @@
+ 		goto om_bad;
+ 	}
+ 	/* Work out the path of the module to open */
+-	module_path_len = strlen(type) + 1 + strlen(name) + strlen(MODULE_FILE_SUFFIX) + 1;
++	module_path_len = 2 + strlen(type) + 1 + strlen(name) + strlen(MODULE_FILE_SUFFIX) + 1;
+ 	module_path = malloc( module_path_len );
+ 	if (module_path == NULL) {
+ 		error1( "Failed to allocate memory for module name: %s", strerror(errno) );
+ 		goto om_bad;
+ 	}
+-	snprintf( module_path, module_path_len, "%s_%s%s", type, name, MODULE_FILE_SUFFIX );
++	snprintf( module_path, module_path_len, "./%s_%s%s", type, name, MODULE_FILE_SUFFIX );
+ 	/* Display the path of the module created */
+ 	debug1( "Module path: %s", module_path );
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091202/1654383f/attachment.html>


More information about the macports-changes mailing list