summaryrefslogtreecommitdiff
path: root/audio/dap/patches/patch-ap
blob: 4e8806ed271efc7f648293624d4d13d9535a5612 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
$NetBSD: patch-ap,v 1.5 2007/03/24 21:02:18 adam Exp $

--- tooltips/Makefile.netbsd.orig	2003-09-16 01:05:51.000000000 +0200
+++ tooltips/Makefile.netbsd
@@ -26,18 +26,20 @@
 VERSION = 0.02g
 
 # Define where the X11 include files are.
-X11_INCLUDE_DIR = /usr/X11R6/include
+X11_INCLUDE_DIR = ${X11BASE}/include
+OTHER_INCLUDE_DIR = ${X11PREFIX}/include/X11
+X11_BASE_INCLUDE= ${X11BASE}/include
 
 # Uncomment out this line if you do not want debug information included.
 # DEBUG = -g -Wall -ansi -pedantic
 DEBUG = 
 
 # Set the default optimisation
-OPTIM = -O1
+OPTIM = ${CFLAGS}
 
 # Define the utilities to use for compilation.
 CC         = gcc
-CCOPTS     = $(DEBUG) $(OPTIM) -I$(X11_INCLUDE_DIR) -I$(X11_INCLUDE_DIR)/X11 -I$(OTHER_INCLUDE_DIR)
+CCOPTS     = $(DEBUG) $(OPTIM) -I$(X11_INCLUDE_DIR) -I$(X11_INCLUDE_DIR)/X11 -I$(OTHER_INCLUDE_DIR) -I${X11_BASE_INCLUDE}
 AR         = ar
 AROPTS     = ruv
 SED        = sed