# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 name glpng version 1.45 revision 3 categories graphics platforms darwin maintainers ryandesign openmaintainer license zlib homepage http://www.wyatt100.freeserve.co.uk/download.htm master_sites http://mirror.amdmi3.ru/distfiles use_zip yes distname ${name} dist_subdir ${name}/${version} extract.mkdir yes description OpenGL library for loading PNG images long_description ${name} is a library for OpenGL to load PNG \ graphics files as an OpenGL texture checksums md5 bed59efb699a51e6de7434580df41395 \ sha1 9678f9627b011eb5d4ac222673dfdde8539c6409 \ rmd160 797a4b68b54b0681e0c84e26a7962b24329eaddd depends_lib port:libpng \ port:mesa build.dir ${worksrcpath}/src post-extract { reinplace "s|\r||g" ${build.dir}/glpng.c xinstall -m 644 ${filespath}/Makefile ${build.dir} } patch.dir ${build.dir} patchfiles patch-glpng.c.diff use_configure no variant universal {} if {[variant_isset universal]} { configure.cflags-append ${configure.universal_cflags} configure.ldflags-append ${configure.universal_ldflags} } else { configure.cflags-append ${configure.cc_archflags} configure.ldflags-append ${configure.ld_archflags} } build.args AR=/usr/bin/ar \ CC=${configure.cc} \ CFLAGS="[join ${configure.cflags}]" \ CPPFLAGS="[join ${configure.cppflags}]" \ LDFLAGS="[join ${configure.ldflags}]" \ PREFIX=${prefix} destroot.args PREFIX=${prefix} post-destroot { set docdir ${destroot}${prefix}/share/doc/${name} xinstall -d ${docdir} xinstall -m 644 ${worksrcpath}/glpng.htm ${docdir} } # This software hasn't been updated since 2000 livecheck.type none