pkgsrc/games/xgalaga/patches/patch-ab
obache 77cfdab783 Fixes typo ,it rise build failure on Solaris.
Noticed by Tim Larson in PR 40304.
2009-01-03 12:37:08 +00:00

58 lines
1.1 KiB
Text

$NetBSD: patch-ab,v 1.3 2009/01/03 12:37:08 obache Exp $
--- configure.orig 1998-05-11 07:02:12.000000000 +0000
+++ configure
@@ -1810,9 +1810,15 @@ if test -n "$sound-type"; then
*linux*)
sound_type=native
;;
+ *dragonfly*)
+ sound_type=native
+ ;;
*freebsd*)
sound_type=native
;;
+ *netbsd*)
+ sound_type=native
+ ;;
*sunos*)
sound_type=native
;;
@@ -1839,7 +1845,7 @@ EOF
EOF
;;
- *freebsd*)
+ *freebsd* | *dragonfly*)
SOUNDSERVER=xgal.sndsrv.freebsd
cat >> confdefs.h <<\EOF
#define SOUNDDEV "/dev/dsp"
@@ -1850,8 +1856,18 @@ EOF
EOF
;;
+ *netbsd*)
+ SOUNDSERVER=xgal.sndsrv.linux
+ cat >> confdefs.h <<\EOF
+#define SOUNDDEV "/dev/audio"
+EOF
+ cat >> confdefs.h <<\EOF
+#define SOUND 1
+EOF
+
+ ;;
*sunos*)
- SOUNDSERVER=xgal.sndsrv.sun.c
+ SOUNDSERVER=xgal.sndsrv.sun
cat >> confdefs.h <<\EOF
#define SOUNDDEV "/dev/audio"
EOF
@@ -1862,7 +1878,7 @@ EOF
;;
*solaris*)
- SOUNDSERVER=xgal.sndsrv.sun.c
+ SOUNDSERVER=xgal.sndsrv.sun
cat >> confdefs.h <<\EOF
#define SOUNDDEV "/dev/audio"
EOF