From a7db862b2f44d23b358a1319cd8a374cf88c24fd Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sat, 16 Apr 2011 10:25:33 -0700 Subject: [PATCH] configure: added install of sounds in .../games/xboard/sounds/default --- Makefile.am | 17 +++++++++++++++-- xboard.conf.in | 2 +- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index f9b6398..3b5c18c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 ' ' $@; diff --git a/xboard.conf.in b/xboard.conf.in index 934e47f..74a5222 100644 --- a/xboard.conf.in +++ b/xboard.conf.in @@ -32,7 +32,7 @@ ; Behavior ; -soundProgram "aplay -q" --soundDirectory "@pixmapsdir@/sounds" +-soundDirectory "@soundsdir@" -pasteSelection false -keepLineBreaksICS false -timeDelay 1 -- 1.7.0.4