diff options
Diffstat (limited to 'games/openttd/patches/patch-aa')
-rw-r--r-- | games/openttd/patches/patch-aa | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/games/openttd/patches/patch-aa b/games/openttd/patches/patch-aa new file mode 100644 index 00000000000..d6dccc21d47 --- /dev/null +++ b/games/openttd/patches/patch-aa @@ -0,0 +1,30 @@ +$NetBSD: patch-aa,v 1.1.1.1 2005/03/30 15:12:48 wiz Exp $ + +--- makefiledir/Makefile.libdetection.orig 2004-12-07 23:58:06.000000000 +0600 ++++ makefiledir/Makefile.libdetection +@@ -18,6 +18,11 @@ ifeq ($(shell uname),FreeBSD) + FREEBSD:=1 + endif + ++# Automatically recognize if building on NetBSD ++ifeq ($(shell uname),NetBSD) ++NETBSD:=1 ++endif ++ + # Automatically recognize if building on MacOSX + ifeq ($(VENDOR), apple) + OSX:=1 +@@ -75,8 +80,13 @@ ifdef WITH_PNG + WITH_PNG:=1 + endif + else ++ifdef NETBSD ++# NetBSD uses generic pkg-config instead of libpng-config ++WITH_PNG:=$(shell pkg-config --version libpng12 2>/dev/null) ++else + WITH_PNG:=$(shell libpng-config --version 2>/dev/null) + endif ++endif + + ifdef WITH_PNG + # LibPNG depends on Zlib |