update Sat Sep 12 12:37:01 PDT 2009
[pkgsrc.git] / wip / aolserver / patches / patch-ab
1 $NetBSD$
2
3 --- include/Makefile.global.orig        Thu May 17 15:44:03 2001
4 +++ include/Makefile.global
5 @@ -15,18 +15,17 @@
6  #
7  # Installation directories.
8  #
9 -PREFIX       =   /usr/local/aolserver
10  INST         =   $(PREFIX)
11  INSTBIN      =   $(INST)/bin
12 -INSTLIB      =   $(INST)/lib
13 -INSTINC      =   $(INST)/include
14 -INSTLOG      =   $(INST)/log
15 -INSTMOD      =   $(INST)/modules
16 +INSTLIB      =   $(INST)/lib/nsd
17 +INSTINC      =   $(INST)/include/nsd
18 +INSTLOG      =   /var/log/nsd
19 +INSTMOD      =   $(INST)/share/nsd/modules
20  INSTTCL      =   $(INSTMOD)/tcl
21 -INSTSRV      =   $(INST)/servers/server1
22 +INSTSRV      =   $(INST)/share/nsd/servers/server1
23  INSTSRVMOD   =   $(INSTSRV)/modules
24  INSTSRVPAG   =   $(INSTSRV)/pages
25 -
26 +INSTRC      =   $(INST)/etc/rc.d
27  
28  #
29  # Common build variables.
30 @@ -210,10 +209,19 @@
31      NSDLIBS=-lm
32  endif
33  
34 -
35  #
36 -# SCO Unixware
37 +# NetBSD
38  #
39 +ifneq (,$(findstring NetBSD,$(PLAT)))
40 +    PLATFORM=netbsd
41 +    CC=ptlgcc
42 +    CFLAGS+=$(GGCCOPT)
43 +    LDFLAGS+=-Wl,-E
44 +    RANLIB=ranlib
45 +    CFLAGS+=-D_THREAD_SAFE=1 -DHAVE_CMMSG=1 -DNO_TIMEZONE=1 -DHAVE_TIMEGM=1 -DNEED_HERRNO
46 +    NSDLIBS=-lm
47 +endif
48 +
49  ifneq (,$(findstring UnixWare,$(PLAT)))
50      PLATFORM=unixware
51      CC=cc