summaryrefslogtreecommitdiff
path: root/chat/ser/patches/patch-aa
blob: e7ce8ecec5a3f99b415f6412bf7c486a302745a6 (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
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
70
71
72
73
$NetBSD: patch-aa,v 1.4 2004/08/27 06:29:07 jlam Exp $

--- Makefile.defs.orig	2002-11-12 17:21:28.000000000 +0000
+++ Makefile.defs	2003-09-16 15:42:29.000000000 +0100
@@ -16,7 +16,6 @@
 			-e s/armv4l/arm/)
 
  # install location
-PREFIX = /usr/local
 prefix = $(PREFIX)
 # install path is $(basedir) $(prefix) 
 # example:
@@ -33,7 +32,7 @@
 ut-prefix = $(basedir)$(prefix)
 
 # dirs
-cfg-dir = etc/ser/
+cfg-dir = ser/
 bin-dir = sbin/
 modules-dir = lib/ser/modules/
 ifeq ($(OS), linux)
@@ -45,7 +44,7 @@
 endif
 ut-prefix = bin/
 # target dirs for various stuff
-cfg-target = $(prefix)/$(cfg-dir)
+cfg-target = $(PKG_SYSCONFDIR)/$(cfg-dir)
 modules-target = $(prefix)/$(modules-dir)
 
 
@@ -59,10 +58,10 @@
 endif
 
 # INSTALL-CFG = $(INSTALL) -m 644
-INSTALL-BIN = $(INSTALL) -m 755
-INSTALL-MODULES = $(INSTALL) -m 755
-INSTALL-DOC = $(INSTALL) -m 644
-INSTALL-MAN = $(INSTALL) -m 644
+INSTALL-BIN = $(INSTALL) -c -m 755
+INSTALL-MODULES = $(INSTALL) -c -m 755
+INSTALL-DOC = $(INSTALL) -c -m 644
+INSTALL-MAN = $(INSTALL) -c -m 644
 
 #set some vars from the environment (and not make builtins)
 CC   := $(shell echo "$${CC}")
@@ -446,6 +445,7 @@
 endif
 
 endif #mode=release
+LDFLAGS+= -L${BUILDLINK_PREFIX.pthread}/lib ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.pthread}/lib
 
 
 #*FLAGS used for compiling the modules
@@ -473,8 +473,10 @@
 	DEFS+=-DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN
 endif
 ifneq ($(OS), openbsd)
+ifneq ($(OS), netbsd)
 	DEFS+=-DHAVE_SCHED_YIELD
 endif
+endif
 
 
 #os specific stuff
@@ -520,7 +522,7 @@
 ifeq ($(OS), netbsd)
 	DEFS+=-DHAVE_SOCKADDR_SA_LEN
 	YACC=yacc
-	LIBS= -lfl  -lc_r
+	LIBS= -lfl  -lpthread
 endif
 
 ifneq (,$(findstring CYGWIN, $(OS)))