# -*- 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 libbpg version 0.9.7 categories graphics platforms darwin maintainers ryandesign openmaintainer license BSD LGPL-2.1+ description better portable graphics -- a new image format long_description BPG (Better Portable Graphics) is a new lossy and \ lossless picture compression format based on HEVC. \ Its purpose is to replace the JPEG image format when \ quality or file size is an issue. homepage http://bellard.org/bpg/ master_sites ${homepage} checksums rmd160 9d2602b5871f9b86f321e8971de16b97c5c94a98 \ sha256 05035862ff4ffca0280261871486f44e74c4af4337c931e0858483551e6efe25 depends_build port:pkgconfig depends_lib port:jpeg \ port:libpng \ port:libsdl \ port:libsdl_image patchfiles patch-Makefile.diff use_configure no variant universal {} build.args prefix=${prefix} \ CC="${configure.cc} [get_canonical_archflags cc]" \ CXX="${configure.cxx} [get_canonical_archflags cxx]" destroot.args prefix=${prefix} post-destroot { set docdir ${prefix}/share/doc/${subport} xinstall -d ${destroot}${docdir} xinstall -m 644 -W ${worksrcpath} \ README \ doc/bpg_spec.txt \ ${destroot}${docdir} } platform darwin { build.args-append CONFIG_APPLE=y }