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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
$NetBSD: patch-aa,v 1.2 2001/03/05 09:20:55 skrll Exp $
--- conf/NetBSD.mk.orig Thu Aug 31 13:06:52 2000
+++ conf/NetBSD.mk
@@ -1,6 +1,6 @@
INSTALL=install
MAKEDEPEND=sh ../conf/mkdep.sh
-INCS_X11= -I/usr/X11R6/include
+INCS_X11= -I${X11BASE}/include
# set ELFENV in config.mk
# a.out env. -> 0
@@ -9,29 +9,16 @@
ELFENV=1
endif
-ifeq (${ELFENV},1)
-LIBS_X11= -L/usr/X11R6/lib -Wl,-rpath,/usr/X11R6/lib -lX11
-else
-LIBS_X11= -L/usr/X11R6/lib -lX11
-endif
-
-INCS_CONS= -I/usr/pkg/include
-ifeq (${ELFENV},1)
- LIBS_CONS= -L/usr/pkg/lib -Wl,-rpath /usr/pkg/lib
-else
- LIBS_CONS= -L/usr/pkg/lib
-endif
+LIBS_X11= -L${X11BASE}/lib -Wl,-rpath,${X11BASE}/lib -lX11
+INCS_CONS= -I${PREFIX}/include
+LIBS_CONS= -L${PREFIX}/lib -Wl,-rpath ${PREFIX}/lib
ifndef LIBS_IM
-INCS_IM = -I/usr/pkg/include
- ifeq (${ELFENV},1)
- LIBS_IM = -L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib -lcanna
- else
- LIBS_IM = -L/usr/pkg/lib -lcanna
- endif
+INCS_IM = -I${PREFIX}/include
+ LIBS_IM = -L${PREFIX}/lib -Wl,-rpath,${PREFIX}/lib -lcanna
endif
-SHLIB_CFLAGS=-fpic -DPIC
+SHLIB_CFLAGS=-fPIC -DPIC
ifeq (${ELFENV},1)
SHLIB_LDFLAGS = -shared
SHLIB_LD=${CC}
@@ -62,17 +49,13 @@
ifdef MGL_INSTALLED
INCS_MGL = -I${MGL_HEADER_DIR}
- ifeq (${ELFENV},1)
- LIBS_MGL = -L${MGL_LIB_DIR} -L/usr/X11R6/lib -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -lmgl2
- else
- LIBS_MGL = -L${MGL_LIB_DIR} -L/usr/X11R6/lib -L/usr/pkg/lib -lmgl2
- endif
+ LIBS_MGL = -L${MGL_LIB_DIR} -L/usr/X11R6/lib -Wl,-rpath,${PREFIX}/lib -L${PREFIX}/lib -lmgl2
else
INCS_MGL = -I${SRCDIR}
ifeq (${ELFENV},1)
- LIBS_MGL = -L${SRCDIR} -rdynamic -L/usr/X11R6/lib -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -lmgl2
+ LIBS_MGL = -L${SRCDIR} -rdynamic -L/usr/X11R6/lib -Wl,-rpath,${PREFIX}/lib -L${PREFIX}/lib -lmgl2
else
- LIBS_MGL = -L${SRCDIR} -L/usr/X11R6/lib -L/usr/pkg/lib -lmgl2
+ LIBS_MGL = -L${SRCDIR} -L/usr/X11R6/lib -L${PREFIX}/lib -lmgl2
endif
endif
|