# -*- 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

PortSystem      1.0
PortGroup       conflicts_build 1.0
PortGroup       github 1.0

github.setup    gtk-gnutella gtk-gnutella 0cbba2f8ba18e93c27e2863827ac6db9744cf1de
version         2024.03.05
revision        0
categories      net p2p www
license         GPL-2+
maintainers     {@barracuda156 gmail.com:vital.had} openmaintainer
description     GTK-based Gnutella client
long_description \
                GTK-Gnutella is a Gnutella client that features search, \
                download, file sharing, bandwidth limiting, host caching \
                and some basic statistics.
homepage        https://gtk-gnutella.sourceforge.net

checksums       rmd160  c4d0834990d2abde195731385d0abbfaaf0e36b6 \
                sha256  b4ea75fffb04f9bf36e1d28fc5e825d5273da8d08df2596cd0dcec202043a184 \
                size    28349798
github.tarball_from archive

depends_lib-append \
                path:lib/pkgconfig/glib-2.0.pc:glib2 \
                path:lib/pkgconfig/gnutls.pc:gnutls \
                path:lib/pkgconfig/gtk+-2.0.pc:gtk2 \
                port:libxml2 \
                port:zlib
depends_build-append \
                bin:gawk:gawk \
                port:bison \
                port:pkgconfig

configure.cmd   ./build.sh

# Apparently scheduling may be off on some configurations.
use_parallel_build no

configure.args-append \
                --configure-only \
                --disable-dbus \
                --disable-nls \
                --mandir=${prefix}/share/man \
                --yacc=${prefix}/bin/bison

# If alternative libupnp is installed, linkage may fail with undefined symbols.
conflicts_build-append libupnp miniupnpc gupnp

destroot.destdir \
                INSTALL_PREFIX=${destroot}
