From 650f768843aec63f7c835992f295efd46d23ae51 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Thu, 24 Sep 2015 15:25:53 -0700 Subject: [PATCH] makefile: Add support for building with libpng --- makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/makefile b/makefile index 2066a55e..46d6b74a 100644 --- a/makefile +++ b/makefile @@ -393,6 +393,13 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin) endif endif endif + ifneq (,$(call find_include,png)) + ifneq (,$(call find_lib,png)) + OS_CCDEFS += -DHAVE_LIBPNG + OS_LDFLAGS += -lpng + $(info using libpng: $(call find_lib,png) $(call find_include,png)) + endif + endif ifneq (,$(call find_include,glob)) OS_CCDEFS += -DHAVE_GLOB else