head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.46 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.44 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.42 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.40 pkgsrc-2025Q2-base:1.1 pkgsrc-2025Q1:1.1.0.38 pkgsrc-2025Q1-base:1.1 pkgsrc-2024Q4:1.1.0.36 pkgsrc-2024Q4-base:1.1 pkgsrc-2024Q3:1.1.0.34 pkgsrc-2024Q3-base:1.1 pkgsrc-2024Q2:1.1.0.32 pkgsrc-2024Q2-base:1.1 pkgsrc-2024Q1:1.1.0.30 pkgsrc-2024Q1-base:1.1 pkgsrc-2023Q4:1.1.0.28 pkgsrc-2023Q4-base:1.1 pkgsrc-2023Q3:1.1.0.26 pkgsrc-2023Q3-base:1.1 pkgsrc-2023Q2:1.1.0.24 pkgsrc-2023Q2-base:1.1 pkgsrc-2023Q1:1.1.0.22 pkgsrc-2023Q1-base:1.1 pkgsrc-2022Q4:1.1.0.20 pkgsrc-2022Q4-base:1.1 pkgsrc-2022Q3:1.1.0.18 pkgsrc-2022Q3-base:1.1 pkgsrc-2022Q2:1.1.0.16 pkgsrc-2022Q2-base:1.1 pkgsrc-2022Q1:1.1.0.14 pkgsrc-2022Q1-base:1.1 pkgsrc-2021Q4:1.1.0.12 pkgsrc-2021Q4-base:1.1 pkgsrc-2021Q3:1.1.0.10 pkgsrc-2021Q3-base:1.1 pkgsrc-2021Q2:1.1.0.8 pkgsrc-2021Q2-base:1.1 pkgsrc-2021Q1:1.1.0.6 pkgsrc-2021Q1-base:1.1 pkgsrc-2020Q4:1.1.0.4 pkgsrc-2020Q4-base:1.1 pkgsrc-2020Q3:1.1.0.2 pkgsrc-2020Q3-base:1.1; locks; strict; comment @# @; 1.1 date 2020.08.08.22.18.27; author brook; state Exp; branches; next ; commitid 4u914mNnJXJokjjC; desc @@ 1.1 log @graphics/ncview: update to 2.1.7. 2.0: 21 Jan 2010 * ncview now REQUIRES netcdf version 4 with full HDF5 support. I am not going to maintain two code bases, one of which supports netcdf-4 and one of which doesn't. If you need a vesion of ncview that works even without a full netcdf v4/HDF-5 install, use ncview version 1.93h. * If a udunits library is supplied, ncview now requires that it be the udunits-2 library. Support for the udunits-1 library has been dropped. * Many thanks to Magnus Hagdorn for changes to the package that make it more compatible with GNU standards! All failures in that respect are mine; Magnus' contributions were exemplary. 1.93d: 13 June 2008 * Thanks to Seth Olsen for contributing the code to sort the variables menus. @ text @$NetBSD$ Using == with test is not portable; replace with =. Use pkg-config to define compiler flags for libpng. --- configure.orig 2020-08-07 23:28:40.807171000 +0000 +++ configure @@@@ -4218,7 +4218,7 @@@@ else $as_echo "libraries $x_libraries, headers $x_includes" >&6; } fi -if test "x$no_x" == "xyes"; then +if test "x$no_x" = "xyes"; then echo "------------------------------------------------------------------------------------" echo "Error, the X libraries and development headers must be installed for ncview to work!" echo "------------------------------------------------------------------------------------" @@@@ -5496,6 +5496,10 @@@@ fi fi +if test x$PNG_INCDIR = x; then + PNG_INC_PRESENT=yes + PNG_CPPFLAGS=`pkg-config --cflags-only-I libpng` +else PNG_INC_PRESENT=no if test x$PNG_INCDIR != x; then PNG_INC_PRESENT=yes @@@@ -5504,6 +5508,7 @@@@ else echo "** Could not find the png.h file, so -frames support will not be included **" echo "** Install the PNG library (and development headers) to fix this **" fi +fi PNG_LIBNAME=libpng.so # Check whether --with-png_libdir was given. @@@@ -5708,6 +5713,13 @@@@ if test $PNG_INC_PRESENT = yes; then $as_echo "#define HAVE_PNG 1" >>confdefs.h + else + PNG_PRESENT=yes + PNG_LIBS=`pkg-config --libs-only-l libpng` + PNG_LDFLAGS=`pkg-config --libs libpng` + +$as_echo "#define HAVE_PNG 1" >>confdefs.h + fi fi @