i3 - improved tiling WM


Fix the build on NetBSD

Patch status: merged

Patch by Arnaud Degroote

To apply this patch, use:
curl http://cr.i3wm.org/patch/250/raw.patch | git am

b/Makefile

13
@@ -21,26 +21,28 @@ LIBS+=-lyajl
14
 
15
 VERSION:=$(shell git describe --tags --abbrev=0)
16
 GIT_VERSION:="$(shell git describe --tags --always) ($(shell git log --pretty=format:%cd --date=short -n1))"
17
+OS:=$(shell uname)
18
 
19
-ifeq ($(shell uname),Linux)
20
+ifeq ($(OS),Linux)
21
 CPPFLAGS+=-DLINUX
22
 CPPFLAGS+=-D_GNU_SOURCE
23
 LIBS+=-liw
24
 LIBS+=-lasound
25
 endif
26
 
27
-ifeq ($(shell uname),GNU/kFreeBSD)
28
+ifeq ($(OS),GNU/kFreeBSD)
29
 LIBS+=-lbsd
30
 endif
31
 
32
-ifeq ($(shell uname),OpenBSD)
33
+ifeq ($(OS),OpenBSD)
34
 CFLAGS+=-I/usr/local/include/
35
 LDFLAGS+=-L/usr/local/lib/
36
 LIBS+=-lossaudio
37
 endif
38
 
39
+
40
 # This probably applies for any pkgsrc based system
41
-ifeq ($(shell uname),DragonFly)
42
+ifneq (, $(filter $(OS), NetBSD DragonFly))
43
 CFLAGS+=-I/usr/pkg/include/
44
 LDFLAGS+=-L/usr/pkg/lib/
45
 endif