Package-Name: sndstretch_xmms
Requires: xmms
Homepage: http://www.geocities.com/harpin_floh/sndstretch_page.html
Source: http://www.geocities.com/harpin_floh/sndstretch_page.html/href="([^"]*sndstretch_xmms-(\d+(\.\d+)+)\.tar\.gz)"/[\0-\377]*sndstretch_xmms-(\d+(.\d+)+).tar.gz $1
Zap-Before-Install: 1
Repack:
	tar xzvfp "$(SOURCE)"
	test -d sndstretch_xmms-"$(VERSION)" || mv sndstretch_xmms* sndstretch_xmms-"$(VERSION)"
Compile:
	cp -pf COPYING Change* README TODO "$(PREFIX)/"
	$(MAKE) clean
	$(MAKE) OPT="-O6 $(GCC_OPT_FLAGS)"
	mkdir -p "$(PREFIX)"/lib/xmms/{Effect,Output}
	mv -f sndstretch_xmms_eff.so "$(PREFIX)"/lib/xmms/Effect/
	mv -f sndstretch_xmms_out.so "$(PREFIX)"/lib/xmms/Output/
Install:
	ln -fs "$(PREFIX)"/lib/xmms/Effect/sndstretch_xmms_eff.so /usr/lib/xmms/Effect/
	ln -fs "$(PREFIX)"/lib/xmms/Output/sndstretch_xmms_out.so /usr/lib/xmms/Output/
Patch: <<EOT
--- Makefile.old	2002-02-10 22:56:42 +0900
+++ Makefile	2004-11-22 13:06:46 +0900
@@ -1,6 +1,7 @@
 CC      = gcc
 #INCDIR  = -I sndstretch
-CFLAGS  = -Wall -O6 $(INCDIR) `xmms-config --cflags`
+OPT     = -O6
+CFLAGS  = -Wall $(OPT) $(INCDIR) `xmms-config --cflags`
 #LDFLAGS = -lgthread -lpthread 
 LDFLAGS = -gthread -pthread `xmms-config --libs`
 
EOT

/pkg/sndstretch_xmms/
/usr/lib/xmms/Effect/sndstretch_xmms_eff.so
/usr/lib/xmms/Output/sndstretch_xmms_out.so
