configure: added install of sounds in .../games/xboard/sounds/default
authorArun Persaud <apersaud@lbl.gov>
Sat, 16 Apr 2011 17:25:33 +0000 (10:25 -0700)
committerArun Persaud <apersaud@lbl.gov>
Sat, 16 Apr 2011 18:03:45 +0000 (11:03 -0700)
Makefile.am
xboard.conf.in

index f9b6398..3b5c18c 100644 (file)
@@ -33,7 +33,7 @@ xboard_SOURCES = backend.c backend.h backendz.h \
                 $(ZPY)
 xboard_LDADD = -lm @XAW_LIBS@ @X_LIBS@
 
-EXTRA_DIST = pixmaps bitmaps winboard sounds filebrowser/README \
+EXTRA_DIST = pixmaps bitmaps sounds winboard filebrowser/README \
        xboard.texi gpl.texinfo texi2man texinfo.tex xboard.man xboard.desktop \
        COPYRIGHT FAQ.html engine-intf.html ics-parsing.txt readme.htm zippy.README \
        xboard.conf.in SHORTLOG DIFFSTAT history.c
@@ -72,9 +72,22 @@ pixmapsdir = $(datadir)/games/xboard/pixmaps/default
 dist_pixmaps_DATA = pixmaps/wood_d.xpm pixmaps/wood_l.xpm
 
 
+### directory and files for sound files
+
+soundsdir = $(datadir)/games/xboard/sounds/default
+dist_sounds_DATA = \
+  sounds/alarm.wav      sounds/cymbal.wav    sounds/kibitz.wav   sounds/pop2.wav     sounds/slap.wav    sounds/unfinished.wav \
+  sounds/challenge.wav  sounds/ding1.wav     sounds/laser.wav    sounds/pop.wav      sounds/squeak.wav  sounds/whipcrak.wav \
+  sounds/channel1.wav   sounds/draw.wav      sounds/lose.wav     sounds/README       sounds/sshout.wav  sounds/win.wav \
+  sounds/channel.wav    sounds/drip.wav      sounds/move.wav     sounds/request.wav  sounds/swish.wav   sounds/woodthunk.wav \
+  sounds/ching.wav      sounds/gong.wav      sounds/penalty.wav  sounds/seek.wav     sounds/tell.wav \
+  sounds/click.wav      sounds/honkhonk.wav  sounds/phone.wav    sounds/shout.wav    sounds/thud.wav
+
+
 ### set correct dir in xboard.conf
 
-edit = sed -e 's|@pixmapsdir[@]|$(pixmapsdir)|g'
+edit = sed -e 's|@pixmapsdir[@]|$(pixmapsdir)|g' \
+           -e 's|@soundsdir[@]|$(soundsdir)|g'
 
 xboard.conf: Makefile $(srcdir)/xboard.conf.in
        @echo '  'GEN '  ' $@;
index 934e47f..74a5222 100644 (file)
@@ -32,7 +32,7 @@
 ; Behavior
 ;
 -soundProgram "aplay -q"
--soundDirectory "@pixmapsdir@/sounds"
+-soundDirectory "@soundsdir@"
 -pasteSelection false
 -keepLineBreaksICS false
 -timeDelay 1