Package-Name: snd
Requires: gtk+
Suggests: guile
Homepage: http://ccrma.stanford.edu/software/snd/
Source: ftp://ccrma-ftp.stanford.edu/pub/Lisp/snd-(\d+(.\d+)+).tar.gz $1
Zap-Before-Install: 1
Repack:
	tar xzvfp "$(SOURCE)"
	test -f snd-"$(VERSION)" || mv snd* snd-"$(VERSION)"
Compile:
	if packager c guile; then GUILE=""; else GUILE="--without-guile --without-ruby"; fi; \
	$(MAKE) -f ../Makefile configure CONFIGURE_OPTS="--with-gtk --with-static-xm $$GUILE"
	$(MAKE)
	$(MAKE) install
	rm -rf "$(PREFIX)"/extensions
	mkdir "$(PREFIX)"/extensions
	cp -pf *.scm "$(PREFIX)"/extensions/
Install:
	$(MAKE) instbin BIN=snd
	$(MAKE) instman SECTION=1 MAN=snd

/pkg/snd/
/usr/bin/snd
/usr/man/man1/snd.1.gz
