aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure2
-rw-r--r--ports.mk4
2 files changed, 5 insertions, 1 deletions
diff --git a/configure b/configure
index f7823afa97..d38714e088 100755
--- a/configure
+++ b/configure
@@ -2388,7 +2388,7 @@ if test "$_png" = yes ; then
LIBS="$LIBS $PNG_LIBS -lpng"
INCLUDES="$INCLUDES $PNG_CFLAGS"
fi
-define_in_config_h_if_yes "$_png" 'USE_PNG'
+define_in_config_if_yes "$_png" 'USE_PNG'
echo "$_png"
if test `get_engine_build sword25` = yes && test ! "$_png" = yes ; then
diff --git a/ports.mk b/ports.mk
index 548dbc6f2f..f9012eb0bd 100644
--- a/ports.mk
+++ b/ports.mk
@@ -98,6 +98,10 @@ ifdef USE_MPEG2
OSX_STATIC_LIBS += $(STATICLIBPATH)/lib/libmpeg2.a
endif
+ifdef USE_PNG
+OSX_STATIC_LIBS += $(STATICLIBPATH)/lib/libpng.a
+endif
+
ifdef USE_ZLIB
OSX_ZLIB ?= -lz
endif