[67314] trunk/dports/python
jmr at macports.org
jmr at macports.org
Wed May 5 03:45:32 PDT 2010
Revision: 67314
http://trac.macports.org/changeset/67314
Author: jmr at macports.org
Date: 2010-05-05 03:45:29 -0700 (Wed, 05 May 2010)
Log Message:
-----------
py25-game, py26-game: add portmidi variant (#23670)
Modified Paths:
--------------
trunk/dports/python/py25-game/Portfile
trunk/dports/python/py25-game/files/patch-config_darwin.py.diff
trunk/dports/python/py26-game/Portfile
trunk/dports/python/py26-game/files/patch-config_darwin.py.diff
Added Paths:
-----------
trunk/dports/python/py25-game/files/patch-disable_portmidi.diff
trunk/dports/python/py26-game/files/patch-disable_portmidi.diff
Modified: trunk/dports/python/py25-game/Portfile
===================================================================
--- trunk/dports/python/py25-game/Portfile 2010-05-05 10:37:10 UTC (rev 67313)
+++ trunk/dports/python/py25-game/Portfile 2010-05-05 10:45:29 UTC (rev 67314)
@@ -25,7 +25,8 @@
sha1 a45aeb0623e36ae7a1707b5f41ee6274f72ca4fa \
rmd160 352d74d6cb025e7489e1123a7a25d1695beabafb
-patchfiles patch-config_darwin.py.diff
+patchfiles patch-config_darwin.py.diff \
+ patch-disable_portmidi.diff
depends_lib-append path:lib/pkgconfig/sdl.pc:libsdl \
port:libsdl_mixer \
@@ -46,6 +47,11 @@
README.txt ${destroot}${prefix}/share/doc/${name}
}
+variant portmidi description {Enable MIDI support using portmidi (experimental)} {
+ depends_lib-append port:portmidi
+ patchfiles-delete patch-disable_portmidi.diff
+}
+
livecheck.type regex
livecheck.url ${homepage}download.shtml
livecheck.regex {<a href=".*/ftp/pygame\-([0-9\.]+)release\.tar\.gz">}
Modified: trunk/dports/python/py25-game/files/patch-config_darwin.py.diff
===================================================================
--- trunk/dports/python/py25-game/files/patch-config_darwin.py.diff 2010-05-05 10:37:10 UTC (rev 67313)
+++ trunk/dports/python/py25-game/files/patch-config_darwin.py.diff 2010-05-05 10:45:29 UTC (rev 67314)
@@ -1,14 +1,17 @@
--- config_darwin.py.orig 2008-03-29 08:45:44.000000000 +1100
+++ config_darwin.py 2008-04-25 20:50:36.000000000 +1000
-@@ -4,6 +4,8 @@
+@@ -4,8 +4,10 @@
from glob import glob
from distutils.sysconfig import get_python_inc
+localbase = os.environ.get('LOCALBASE', '')
+
class Dependency:
- libext = '.a'
+- libext = '.a'
++ libext = '.dylib'
def __init__(self, name, checkhead, checklib, libs):
+ self.name = name
+ self.inc_dir = None
@@ -86,11 +88,11 @@
print (self.name + ' '[len(self.name):] + ': not found')
Added: trunk/dports/python/py25-game/files/patch-disable_portmidi.diff
===================================================================
--- trunk/dports/python/py25-game/files/patch-disable_portmidi.diff (rev 0)
+++ trunk/dports/python/py25-game/files/patch-disable_portmidi.diff 2010-05-05 10:45:29 UTC (rev 67314)
@@ -0,0 +1,11 @@
+--- config_darwin.py.orig 2010-05-05 20:17:12.000000000 +1000
++++ config_darwin.py 2010-05-05 20:27:03.000000000 +1000
+@@ -96,7 +96,7 @@
+ Dependency('PNG', 'png.h', 'libpng', ['png']),
+ Dependency('JPEG', 'jpeglib.h', 'libjpeg', ['jpeg']),
+ Dependency('SCRAP', '','',[]),
+- Dependency('PORTMIDI', 'portmidi.h', 'libportmidi', ['portmidi']),
++ Dependency('PORTMIDI', '', '', []),
+ FrameworkDependency('PORTTIME', 'CoreMidi.h', 'CoreMidi', 'CoreMidi'),
+ ]
+
Modified: trunk/dports/python/py26-game/Portfile
===================================================================
--- trunk/dports/python/py26-game/Portfile 2010-05-05 10:37:10 UTC (rev 67313)
+++ trunk/dports/python/py26-game/Portfile 2010-05-05 10:45:29 UTC (rev 67314)
@@ -25,7 +25,8 @@
sha1 a45aeb0623e36ae7a1707b5f41ee6274f72ca4fa \
rmd160 352d74d6cb025e7489e1123a7a25d1695beabafb
-patchfiles patch-config_darwin.py.diff
+patchfiles patch-config_darwin.py.diff \
+ patch-disable_portmidi.diff
depends_lib-append path:lib/pkgconfig/sdl.pc:libsdl \
port:libsdl_mixer \
@@ -35,7 +36,6 @@
port:py26-numpy
use_configure yes
-
configure.env-append LOCALBASE=${prefix}
configure.cmd ${python.bin} config.py
@@ -47,6 +47,11 @@
README.txt ${destroot}${prefix}/share/doc/${name}
}
+variant portmidi description {Enable MIDI support using portmidi (experimental)} {
+ depends_lib-append port:portmidi
+ patchfiles-delete patch-disable_portmidi.diff
+}
+
livecheck.type regex
livecheck.url ${homepage}download.shtml
livecheck.regex {<a href=".*/ftp/pygame\-([0-9\.]+)release\.tar\.gz">}
Modified: trunk/dports/python/py26-game/files/patch-config_darwin.py.diff
===================================================================
--- trunk/dports/python/py26-game/files/patch-config_darwin.py.diff 2010-05-05 10:37:10 UTC (rev 67313)
+++ trunk/dports/python/py26-game/files/patch-config_darwin.py.diff 2010-05-05 10:45:29 UTC (rev 67314)
@@ -1,14 +1,17 @@
--- config_darwin.py.orig 2008-03-29 08:45:44.000000000 +1100
+++ config_darwin.py 2008-04-25 20:50:36.000000000 +1000
-@@ -4,6 +4,8 @@
+@@ -4,8 +4,10 @@
from glob import glob
from distutils.sysconfig import get_python_inc
+localbase = os.environ.get('LOCALBASE', '')
+
class Dependency:
- libext = '.a'
+- libext = '.a'
++ libext = '.dylib'
def __init__(self, name, checkhead, checklib, libs):
+ self.name = name
+ self.inc_dir = None
@@ -86,11 +88,11 @@
print (self.name + ' '[len(self.name):] + ': not found')
Added: trunk/dports/python/py26-game/files/patch-disable_portmidi.diff
===================================================================
--- trunk/dports/python/py26-game/files/patch-disable_portmidi.diff (rev 0)
+++ trunk/dports/python/py26-game/files/patch-disable_portmidi.diff 2010-05-05 10:45:29 UTC (rev 67314)
@@ -0,0 +1,11 @@
+--- config_darwin.py.orig 2010-05-05 20:17:12.000000000 +1000
++++ config_darwin.py 2010-05-05 20:27:03.000000000 +1000
+@@ -96,7 +96,7 @@
+ Dependency('PNG', 'png.h', 'libpng', ['png']),
+ Dependency('JPEG', 'jpeglib.h', 'libjpeg', ['jpeg']),
+ Dependency('SCRAP', '','',[]),
+- Dependency('PORTMIDI', 'portmidi.h', 'libportmidi', ['portmidi']),
++ Dependency('PORTMIDI', '', '', []),
+ FrameworkDependency('PORTTIME', 'CoreMidi.h', 'CoreMidi', 'CoreMidi'),
+ ]
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100505/2384ca48/attachment.html>
More information about the macports-changes
mailing list