File: check_for_v4l2.diff

package info (click to toggle)
pygame 1.9.1release%2Bdfsg-10
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 7,280 kB
  • ctags: 6,685
  • sloc: ansic: 41,205; python: 21,987; cpp: 537; objc: 196; php: 92; sh: 77; makefile: 41
file content (34 lines) | stat: -rw-r--r-- 1,777 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Index: pygame-1.9.1release+dfsg/Setup.in
===================================================================
--- pygame-1.9.1release+dfsg.orig/Setup.in	2012-01-05 17:53:23.000000000 +0100
+++ pygame-1.9.1release+dfsg/Setup.in	2012-01-05 22:27:25.376271658 +0100
@@ -34,7 +34,7 @@
 _numericsndarray src/_numericsndarray.c $(SDL) $(MIXER) $(DEBUG)
 movie src/movie.c $(SDL) $(SMPEG) $(DEBUG)
 scrap src/scrap.c $(SDL) $(SCRAP) $(DEBUG)
-_camera src/_camera.c src/camera_v4l2.c $(SDL) $(DEBUG)
+_camera src/_camera.c src/camera_v4l2.c $(V4L2) $(SDL) $(DEBUG)
 pypm src/pypm.c $(SDL) $(PORTMIDI) $(PORTTIME) $(DEBUG)
 
 GFX = src/SDL_gfx/SDL_gfxPrimitives.c 
Index: pygame-1.9.1release+dfsg/config_unix.py
===================================================================
--- pygame-1.9.1release+dfsg.orig/config_unix.py	2012-01-05 17:53:23.000000000 +0100
+++ pygame-1.9.1release+dfsg/config_unix.py	2012-01-05 22:43:07.853348334 +0100
@@ -150,6 +150,7 @@
         Dependency('SCRAP', '', 'libX11', ['X11']),
         Dependency('PORTMIDI', 'portmidi.h', 'libportmidi.so', ['portmidi']),
         Dependency('PORTTIME', 'porttime.h', 'libporttime.so', ['porttime']),
+        Dependency('V4L2', 'linux/videodev2.h', '', []),
         #Dependency('GFX', 'SDL_gfxPrimitives.h', 'libSDL_gfx.so', ['SDL_gfx']),
     ]
     if not DEPS[0].found:
@@ -177,7 +178,7 @@
 
     for d in DEPS[1:]:
         if not d.found:
-            if ( d.name=='PORTMIDI' or d.name=='PORTTIME') and  \
+            if ( d.name=='PORTMIDI' or d.name=='PORTTIME'  or d.name=='V4L2') 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'))