Package: pygame / 1.9.1release+dfsg-8

setup_ignore_portmidi_on_non_linux.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Index: pygame-1.9.1release+dfsg/config_unix.py
===================================================================
--- pygame-1.9.1release+dfsg.orig/config_unix.py	2012-01-03 12:41:31.000000000 +0100
+++ pygame-1.9.1release+dfsg/config_unix.py	2012-01-05 08:57:57.854761334 +0100
@@ -177,7 +177,11 @@
 
     for d in DEPS[1:]:
         if not d.found:
-            if not confirm("""
+            if ( d.name=='PORTMIDI' or d.name=='PORTTIME') and  \
+                    os.getenv('DEB_HOST_ARCH_OS') != 'linux':
+                print 'Debian specific hack: ignore missing dependency %s on %s .' % \
+                    (d.name , os.getenv('DEB_HOST_ARCH_OS'))
+            elif not confirm("""
 Warning, some of the pygame dependencies were not found. Pygame can still
 compile and install, but games that depend on those missing dependencies
 will not run. Would you like to continue the configuration?"""):