summaryrefslogtreecommitdiff
path: root/audio/wmsound/patches/patch-ad
blob: 19769d319ecc7c62a34115093c15a14794ca47f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ad,v 1.2 1999/04/26 23:30:00 tron Exp $

--- utils/Imakefile.orig	Thu Mar 18 00:15:11 1999
+++ utils/Imakefile	Sun Mar 21 02:22:07 1999
@@ -13,8 +13,15 @@
 XCOMM uncomment out the next line if you want to use esd comment out the line below next line
 XCOMM ESDLIB = -lesd -laudiofile
 
-WMSOUNDLIB = -L/usr/local/lib -lPropList -L../lib -lwmsnd $(ESDLIB)
-STD_INCLUDES = -I/usr/local/include -I/usr/X11R6/include
+XCOMM NetBSD requires -lossaudio for Linux OSS interface compatibility.
+#ifdef NetBSDArchitecture
+  OSSLIB = -lossaudio
+#else
+  OSSLIB =
+#endif
+
+WMSOUNDLIB = -L${LOCALBASE}/lib -Wl,-R${LOCALBASE}/lib -lPropList -L../lib -lwmsnd $(ESDLIB) $(OSSLIB)
+STD_INCLUDES = -I${LOCALBASE}/include -I${X11BASE}/include
 DEPLIBS = $(DEPXLIB) 
 
 LOCAL_LIBRARIES += $(XLIB) $(WMSOUNDLIB) $(EFENCELIB)