1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
#!/usr/bin/make -f
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- -DCMAKE_INSTALL_BINDIR=games
midfiles := $(wildcard resources/music/music*.mid)
oggfiles := $(midfiles:.mid=.ogg)
override_dh_clean-indep:
dh_clean -i
# These are shipped in the source archive, let's rebuild them
rm -f $(oggfiles)
override_dh_auto_build-indep: $(oggfiles)
dh_auto_build -i
resources/music/music%.ogg: resources/music/music%.mid
# Encode to ogg with "Quality=0" ~ 64 kB
timidity --config-string="soundfont /usr/share/sounds/sf2/sf_GMbank.sf2" -Ow $< -o - | oggenc -Q -q0 --serial 1 -o $@ -
|