$NetBSD: patch-aa,v 1.2 2005/09/08 19:06:03 rpaulo Exp $

--- makefiledir/Makefile.libdetection.orig	2005-05-16 09:30:32.000000000 +0100
+++ makefiledir/Makefile.libdetection	2005-09-07 22:45:41.000000000 +0100
@@ -66,7 +66,7 @@
 WITH_SDL:=$(shell $(SDL-CONFIG) --version 2>/dev/null)
 
 # libpng detection
-WITH_PNG:=$(shell libpng-config --version 2>/dev/null)
+WITH_PNG:=$(shell pkg-config --version libpng12 2>/dev/null)
 
 ifdef WITH_PNG
 # LibPNG depends on Zlib
