$OpenBSD: patch-Imakefile,v 1.2 2009/11/08 16:36:08 jasper Exp $
--- Imakefile.orig	Thu Sep  2 08:33:47 1999
+++ Imakefile	Sun Nov  8 09:33:10 2009
@@ -74,7 +74,9 @@ XCOMM
 /* IRIX */
 #ifdef	SGIArchitecture
 #define	StartupSound	myu.aiff
+#ifndef OpenBSDArchitecture
 #define	SoundLibrary	-laudio -laudiofile
+#endif /* !OpenBSD/sgi */
 #endif	/* SGIArchitecture */
 
 /* HP-UX */
@@ -104,8 +106,14 @@ XCOMM
 /* FreeBSD */
 #if defined(i386BsdArchitecture) && (defined(i386FreeBsd) || defined(FreeBSDArchitecture))
 #define	StartupSound	myu.au
+EXTRA_LIBRARIES = -lxpg4
 #endif	/* i386BsdArchitecture && (i386FreeBsd || FreeBSDArchitecture) */
 
+/* OpenBSD */
+#ifdef OpenBSDArchitecture
+#define	StartupSound	myu.au
+#endif	/* OpenBSDArchitecture */
+
 #else	/* USE_NETAUDIO */
 
 /* netaudio (NCDaudio) */
@@ -234,6 +242,6 @@ XCOMM
 
 #ifdef	USE_SOUND
 install:: sounds/StartupSound
-	MakeDir(EmiClockLib)
-	$(INSTALL) -c $(INSTAPPFLAGS) sounds/StartupSound EmiClockLib/StartupSound
+	MakeDir($(DESTDIR)EmiClockLib)
+	$(INSTALL) -c $(INSTAPPFLAGS) sounds/StartupSound $(DESTDIR)EmiClockLib/StartupSound
 #endif	/* USE_SOUND */
