[103662] trunk/dports/audio/xmp

larryv at macports.org larryv at macports.org
Mon Mar 4 00:17:26 PST 2013


Revision: 103662
          https://trac.macports.org/changeset/103662
Author:   larryv at macports.org
Date:     2013-03-04 00:17:26 -0800 (Mon, 04 Mar 2013)
Log Message:
-----------
xmp: Update to 4.0.1 (maintainer, #38178); add subport libxmp @4.0.2 (maintainer, #38179).

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

Added Paths:
-----------
    trunk/dports/audio/xmp/files/
    trunk/dports/audio/xmp/files/patch-configure.diff

Modified: trunk/dports/audio/xmp/Portfile
===================================================================
--- trunk/dports/audio/xmp/Portfile	2013-03-04 07:51:09 UTC (rev 103661)
+++ trunk/dports/audio/xmp/Portfile	2013-03-04 08:17:26 UTC (rev 103662)
@@ -4,20 +4,79 @@
 PortSystem          1.0
 
 name                xmp
-version             3.5.0
 categories          audio
 platforms           darwin
 maintainers         dcarmichael.net:dcarmich
-license             GPL-2+
 
 description         Extended Module Player
+homepage            http://xmp.sourceforge.net/
 
-long_description    The Extended Module Player, or xmp, is a portable \
-                    command-line module player for Unix and Unix-like systems.
+build.type          gnu
 
-homepage            http://xmp.sourceforge.net/
-master_sites        sourceforge:project/xmp/xmp/${version}
+# Cannot turn off dependency tracking for libxmp.
+universal_variant   no
 
-checksums           rmd160  ed51b6b2d1043c6238ba1df05abbbf5a032b4bd3 \
-                    sha256  e1c7c7f9a59da7901f299e1b93b4ffb4ad17731cbb8f09df5c2d5eab2ef7e3a3
+if {${subport} == ${name}} {
+    version             4.0.1
+    license             GPL-2+
 
+    long_description    The Extended Module Player is a portable \
+                        command-line module player for Unix and \
+                        Unix-like systems. It plays over 90 mainstream \
+                        and obscure module formats from Amiga, Atari, \
+                        Acorn, Apple IIgs and PC, including Protracker \
+                        (MOD), Scream Tracker 3 (S3M), Fast Tracker II \
+                        (XM), and Impulse Tracker (IT).
+
+    master_sites        sourceforge:project/xmp/xmp/${version}
+    checksums           rmd160  cad757123fbd1bcc07ab4191faeef348904e9fbc \
+                        sha256  6887834a9c498cb7bd79c57a1ddcc976269c30af595566034341d0d268aacc57
+
+    depends_lib         port:libxmp
+
+    set etc_xmp ${prefix}/etc/xmp
+    post-destroot {
+        move ${destroot}${etc_xmp}/modules.conf \
+            ${destroot}${etc_xmp}/modules.conf.default
+        move ${destroot}${etc_xmp}/xmp.conf \
+            ${destroot}${etc_xmp}/xmp.conf.default
+    }
+    post-activate {
+        if {![file exists ${etc_xmp}/modules.conf]} {
+            copy ${etc_xmp}/modules.conf.default ${etc_xmp}/modules.conf
+        }
+        if {![file exists ${etc_xmp}/xmp.conf]} {
+            copy ${etc_xmp}/xmp.conf.default ${etc_xmp}/xmp.conf
+        }
+    }
+} else {
+    livecheck.type      none
+}
+
+subport libxmp {
+    version             4.0.2
+    license             LGPL-2.1+
+
+    long_description    Libxmp is a library that renders module files to \
+                        PCM data. It supports over 90 mainstream and \
+                        obscure module formats including Protracker \
+                        (MOD), Scream Tracker 3 (S3M), Fast Tracker II \
+                        (XM), and Impulse Tracker (IT).
+ 
+
+    master_sites        sourceforge:project/xmp/libxmp/${version}
+    distname            ${subport}-${version}
+    checksums           rmd160  44e41962c2f30312ec34edf471d784f53242bfa0 \
+                        sha256  37c8e054136716119fe509ccf4539af5c759235f8088937d485d39a95c6e6c9c
+
+    # Switch to warning that Clang recognizes.
+    if {[string first clang ${configure.compiler}] != -1} {
+        patchfiles      patch-configure.diff
+    }
+
+    test.run            yes
+    test.target         check
+
+    livecheck.type      sourceforge
+    livecheck.distname  ${subport}
+}

Added: trunk/dports/audio/xmp/files/patch-configure.diff
===================================================================
--- trunk/dports/audio/xmp/files/patch-configure.diff	                        (rev 0)
+++ trunk/dports/audio/xmp/files/patch-configure.diff	2013-03-04 08:17:26 UTC (rev 103662)
@@ -0,0 +1,29 @@
+--- configure.orig	2012-09-22 10:17:48.000000000 -0400
++++ configure	2013-02-26 21:53:44.000000000 -0500
+@@ -3034,14 +3034,14 @@
+ fi
+ 
+ 
+-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler understands -Wunused-but-set-variable" >&5
+-$as_echo_n "checking whether compiler understands -Wunused-but-set-variable... " >&6; }
++  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler understands -Wunused-variable" >&5
++$as_echo_n "checking whether compiler understands -Wunused-variable... " >&6; }
+ if ${ac_cv_c_flag_w_unused_but_set_variable+:} false; then :
+   $as_echo_n "(cached) " >&6
+ else
+ 
+     oldcflags="${CFLAGS}"
+-    CFLAGS="${CFLAGS} -Wunused-but-set-variable"
++    CFLAGS="${CFLAGS} -Wunused-variable"
+     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h.  */
+ 
+@@ -3058,7 +3058,7 @@
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flag_w_unused_but_set_variable" >&5
+ $as_echo "$ac_cv_c_flag_w_unused_but_set_variable" >&6; }
+   if test "x$ac_cv_c_flag_w_unused_but_set_variable" = xyes; then :
+-  CFLAGS="${CFLAGS} -Wno-unused-but-set-variable"
++  CFLAGS="${CFLAGS} -Wno-unused-variable"
+ fi
+ 
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130304/827f5955/attachment.html>


More information about the macports-changes mailing list