Initial import of openttd-0.3.6, provided by Ian Zagorskih via pkgsrc-wip:
[pkgsrc.git] / games / openttd / patches / patch-aa
1 $NetBSD$
2
3 --- makefiledir/Makefile.libdetection.orig      2004-12-07 23:58:06.000000000 +0600
4 +++ makefiledir/Makefile.libdetection
5 @@ -18,6 +18,11 @@ ifeq ($(shell uname),FreeBSD)
6  FREEBSD:=1
7  endif
8  
9 +# Automatically recognize if building on NetBSD
10 +ifeq ($(shell uname),NetBSD)
11 +NETBSD:=1
12 +endif
13 +
14  # Automatically recognize if building on MacOSX
15  ifeq ($(VENDOR), apple)
16  OSX:=1
17 @@ -75,8 +80,13 @@ ifdef WITH_PNG
18  WITH_PNG:=1
19  endif
20  else
21 +ifdef NETBSD
22 +# NetBSD uses generic pkg-config instead of libpng-config
23 +WITH_PNG:=$(shell pkg-config --version libpng12 2>/dev/null)
24 +else
25  WITH_PNG:=$(shell libpng-config --version 2>/dev/null)
26  endif
27 +endif
28  
29  ifdef WITH_PNG
30  # LibPNG depends on Zlib