# This file created by conda-build 26.1.0
# meta.yaml template originally from:
# /home/task_177456595742149/libpng-feedstock/recipe, last modified Thu Mar 26 23:06:56 2026
# ------------------------------------------------

package:
  name: libpng
  version: 1.6.56
source:
  url: https://download.sourceforge.net/libpng/libpng-1.6.56.tar.gz
  sha256: 8f91e941a07fb1069ebb3855278f82a849e6af14ca05821e14ec3d5348697ea5
  patches:
    - 0001-Include-pkg-config-files-in-the-Windows-packages-too.patch
    - 0002-Ensure-that-lm-is-not-included-in-Windows-pkg-config.patch
build:
  number: '0'
  run_exports:
    - libpng >=1.6.56,<1.7.0a0
  string: h22898a0_0
requirements:
  build:
    - _libgcc_mutex 0.1 main
    - _openmp_mutex 5.1 1_gnu
    - autoconf 2.71 pl5340h5eee18b_0
    - automake 1.16.5 pl5340h06a4308_1
    - binutils_impl_linux-64 2.44 h78f17ca_3
    - binutils_linux-64 2.44 hc03a8fd_3
    - gcc_impl_linux-64 14.3.0 h4943218_4
    - gcc_linux-64 14.3.0 hda73cce_13
    - kernel-headers_linux-64 4.18.0 h3108a97_1
    - ld_impl_linux-64 2.44 h9e0c5a2_3
    - libgcc 15.2.0 h69a1729_7
    - libgcc-devel_linux-64 14.3.0 he7458c1_104
    - libgcc-ng 15.2.0 h166f726_7
    - libgomp 15.2.0 h4751f2c_7
    - libltdl 2.6.0 h47b2149_0
    - libsanitizer 14.3.0 hd4faa28_4
    - libstdcxx 15.2.0 h39759b7_7
    - libtool 2.6.0 h7354ed3_0
    - m4 1.4.18 h4e445db_0
    - make 4.2.1 h1bed415_1
    - perl 5.42.0 0_h47b2149_perl5
    - sysroot_linux-64 2.28 h3108a97_1
    - tzdata 2026a he532380_0
  host:
    - _libgcc_mutex 0.1 main
    - _openmp_mutex 5.1 1_gnu
    - libgcc 15.2.0 h69a1729_7
    - libgcc-ng 15.2.0 h166f726_7
    - libgomp 15.2.0 h4751f2c_7
    - libzlib 1.3.1 hb25bd0a_0
    - zlib 1.3.1 hb25bd0a_0
  run:
    - __glibc >=2.28,<3.0.a0
    - libgcc >=14
    - libzlib >=1.3.1,<2.0a0
test:
  requires:
    - gcc_linux-64 14.3.0.*
    - zlib 1.3.*
  files:
    - test_libpng_write.c
  commands:
    - test -f ${PREFIX}/lib/libpng${SHLIB_EXT}
    - test -f ${PREFIX}/lib/libpng16${SHLIB_EXT}
    - test -f ${PREFIX}/include/libpng16/png.h
    - test -f ${PREFIX}/include/libpng16/pngconf.h
    - test -f ${PREFIX}/include/libpng16/pnglibconf.h
    - libpng-config --version
    - ${CC} test_libpng_write.c -I${PREFIX}/include -L${PREFIX}/lib -lpng -lz -Wl,-rpath,${PREFIX}/lib
      -o test_libpng_write
    - ./test_libpng_write
about:
  home: https://www.libpng.org/pub/png/libpng.html
  license: Zlib
  license_family: Other
  license_file: LICENSE
  summary: PNG reference library
  description: 'libpng is the official PNG reference library. It supports almost all
    PNG

    features, is extensible, and has been extensively tested for over 30 years.

    '
  doc_url: https://www.libpng.org/pub/png/libpng.html
  dev_url: https://sourceforge.net/p/libpng/code/ci/libpng16/tree
extra:
  recipe-maintainers:
    - msarahan
    - ocefpaf
    - pkgw
  final: true
  copy_test_source_files: true
  remote_url: https://github.com/AnacondaRecipes/libpng-feedstock
  sha: 4241a28fa0dd3aa812bfe6147fa393d9ff50a9d9
  task_id: SFInUUVOQs68l6zwXok2GQ
  task_run_id: '0'
  pbp_graph_uuid: 19871dc4-20e9-4520-8bb4-640983c101ea
