Package-Name: uart16550_midi
Homepage: http://crystal.apana.org.au/~ghansper/midiaxis.html
Source: http://crystal.apana.org.au/ghansper/midiaxis.html/(midi\x2Fuart16550_midi.\d+\w*.tar.gz)/[\0-\377]*?uart16550_midi.(\d+\w*).tar.gz $1
Zap-Before-Install: 1
Repack:
	mkdir uart16550_midi-"$(VERSION)"
	tar Cxzvfp uart16550_midi-"$(VERSION)" "$(SOURCE)"
Compile:
	cp -p Artistic.txt Configure.help.uart16550_midi uart16550_midi.{c,html} "$(PREFIX)/"
	set -x ; \
	n1=`grep -n "^--- Config.in.before_uart16550" uart16550_midi.linux-2.4.x.patch | cut -d: -f1` ; \
	n1=`expr "$$n1" + 2` ; \
	l1=`head -$$n1 uart16550_midi.linux-2.4.x.patch | tail -1 | perl -pe 's/,(\d+)/",".($$1+3)/eg or die'` ; \
	n2=`grep -n "^--- Makefile.before_uart16550" uart16550_midi.linux-2.4.x.patch | cut -d: -f1` ; \
	( \
		head -`expr "$$n1" - 1` uart16550_midi.linux-2.4.x.patch ; \
		echo "$$l1" ; \
		head -`expr "$$n2" - 1` uart16550_midi.linux-2.4.x.patch | tail -`expr "$$n2" - "$$n1" - 1` ; \
		echo ' ' ; \
		echo ' # A cross directory dependence. The sound modules will need gameport.o compiled in,' ; \
		echo ' # but it resides in the drivers/char/joystick directory. This define_tristate takes' ; \
		echo '--- Makefile.before_uart16550	2002-12-09 16:38:03 +0900' ; \
		echo '+++ Makefile	2003-03-23 03:09:26 +0900' ; \
		echo '@@ -84,6 +84,8 @@' ; \
		echo '   obj-$$(CONFIG_SOUND_EMU10K1)	+= sound.o' ; \
		echo ' endif' ; \
		echo ' ' ; \
		echo '+obj-$$(CONFIG_UART16550_MIDI)	+= uart16550_midi.o' ; \
		echo '+' ; \
		echo ' subdir-$$(CONFIG_SOUND_EMU10K1) += emu10k1' ; \
		echo ' subdir-$$(CONFIG_SOUND_CS4281) += cs4281' ; \
		echo ' ' ; \
	) > "$(PREFIX)"/uart16550_midi.linux-2.4.x.patch
Install:
	# nothing to do

/pkg/uart16550_midi/
