summaryrefslogtreecommitdiff
path: root/net/unison-devel/patches/patch-ab
blob: 9f92a78e5e4fae2b50a5afaa6ac6f84de59f6b3c (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
$NetBSD: patch-ab,v 1.2 2005/04/24 13:06:03 adrianp Exp $

--- Makefile.OCaml.orig	2005-04-24 09:08:08.000000000 +0100
+++ Makefile.OCaml
@@ -29,6 +29,10 @@ ifeq ($(shell uname),Darwin)
 else
 ifeq ($(shell uname),OpenBSD)
   OSARCH=OpenBSD
+else
+ifeq ($(shell uname),NetBSD)
+  OSARCH=NetBSD
+endif
 endif
 endif
 endif
@@ -240,6 +244,9 @@ endif
 ifeq ($(OSARCH), osx)
   X11LIBDIR=/usr/X11R6/lib
 endif
+ifeq ($(OSARCH), NetBSD)
+  X11LIBDIR=/usr/X11R6/lib
+endif
 
 # Developer-only directories
 ifeq ($(shell hostname), raptor.research.att.com)
@@ -383,6 +390,9 @@ ifeq ($(STATIC), true)
   ifeq ($(OSARCH), osx)
     STATICLIBS+=-cclib -static
   endif
+  ifeq ($(OSARCH), NetBSD)
+    STATICLIBS+=-cclib -static
+  endif
   CLIBS=$(STATICLIBS)
 endif
 
@@ -424,6 +434,10 @@ else
   endif
 endif
 
+ifeq ($(OSARCH), NetBSD)
+  OCAMLDOT=false
+endif
+
 # Rebuild dependencies (must be invoked manually)
 .PHONY: depend
 depend::