# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
PortGroup compiler_blacklist_versions 1.0
set branch [join [lrange [split ${version} .] 0 1] .]
description GHex - a binary editor.
long_description GHex allows the user to load data from any file, \
view and edit it in either hex or ascii. A must for \
anyone playing games that use non-ascii format for saving.
maintainers {devans @dbevans} openmaintainer
homepage https://wiki.gnome.org/Apps/Ghex
master_sites gnome:sources/${name}/${branch}/
checksums rmd160 50fff8a7e3ecf146c96d69bff9a3d7a3be017412 \
sha256 c67450f86f9c09c20768f1af36c11a66faf460ea00fbba628a9089a6804808d3
depends_build port:pkgconfig \
depends_lib port:desktop-file-utils \
# blacklist old compilers that do not support gcc diagnostic pragmas in functions
compiler.blacklist *gcc-3.* *gcc-4.* {clang < 300}
# reconfigure using upstream autogen.sh for intltool 0.51 compatibility
xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
configure.cmd ./autogen.sh
configure.args --disable-silent-rules \
--enable-compile-warnings=minimum \
--disable-schemas-compile
system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor"
system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"