# -*- 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.5 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 4942f57e0353689d40c1f78993ef3ed8f494235f \ sha256 30de1d0099920e24b7c9aae4d4e6b62f446823f0a1d52eb195dfc25c662ee203 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 }