$OpenBSD: patch-jdk_make_javax_sound_jsoundalsa_Makefile,v 1.1 2011/09/22 20:26:48 kurt Exp $
--- jdk/make/javax/sound/jsoundalsa/Makefile.orig	Tue Sep  6 18:23:39 2011
+++ jdk/make/javax/sound/jsoundalsa/Makefile	Wed Sep  7 09:44:08 2011
@@ -51,7 +51,6 @@ FILES_c = \
 	$(PORTFILES_c)
 
 # platform dependent files
-ifeq ($(PLATFORM), linux)
 FILES_c += \
 	PLATFORM_API_LinuxOS_ALSA_CommonUtils.c   \
 	PLATFORM_API_LinuxOS_ALSA_PCM.c     \
@@ -61,37 +60,19 @@ FILES_c += \
 	PLATFORM_API_LinuxOS_ALSA_MidiUtils.c \
 	PLATFORM_API_LinuxOS_ALSA_Ports.c
 
-MIDI_CPPFLAGS= \
-	-DUSE_PLATFORM_MIDI_OUT=TRUE \
-	-DUSE_PLATFORM_MIDI_IN=TRUE
-endif
-
-ifeq ($(PLATFORM), bsd)
-FILES_c += \
-	PLATFORM_API_BsdOS_ALSA_CommonUtils.c   \
-	PLATFORM_API_BsdOS_ALSA_PCM.c     \
-	PLATFORM_API_BsdOS_ALSA_PCMUtils.c   \
-	PLATFORM_API_BsdOS_ALSA_MidiIn.c  \
-	PLATFORM_API_BsdOS_ALSA_MidiOut.c \
-	PLATFORM_API_BsdOS_ALSA_MidiUtils.c \
-	PLATFORM_API_BsdOS_ALSA_Ports.c
-
-MIDI_CPPFLAGS=
-endif
-
 FILES_export = \
 	$(DAUDIOFILES_export) \
 	$(MIDIFILES_export) \
 	$(PORTFILES_export)
 
-LDFLAGS += -L$(ALSA_LIB_PATH) -lasound
+LDFLAGS += -lasound
 
 CPPFLAGS += \
 	-DUSE_DAUDIO=TRUE \
 	-DUSE_PORTS=TRUE  \
-	$(MIDI_CPPFLAGS) \
-	-I$(SHARE_SRC)/native/com/sun/media/sound \
-	-I$(ALSA_HEADERS_PATH)
+	-DUSE_PLATFORM_MIDI_OUT=TRUE \
+	-DUSE_PLATFORM_MIDI_IN=TRUE \
+	-I$(SHARE_SRC)/native/com/sun/media/sound
 
 #
 # Add to the ambient VPATH.
