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

github.setup        haiwen libsearpc 3.3 v -latest
revision            2
categories          devel
license             Apache-2
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
description         Simple RPC framework based on GObject System in C
long_description    {*}${description}
checksums           rmd160  4fddff7140d46f2b759e0b55257147d8340ab0fe \
                    sha256  61674ce451c643c8e96e33ff32874f0f05cf5fe958a26d625486375796406618 \
                    size    55834
github.tarball_from archive

use_autoreconf      yes

set py_ver          3.14
set py_ver_nodot    [string map {. {}} ${py_ver}]
set python.prefix   ${frameworks_dir}/Python.framework/Versions/${py_ver}

depends_build-append \
                    port:gettext \
                    path:bin/pkg-config:pkgconfig \
                    port:python${py_ver_nodot}

depends_lib-append  port:gettext-runtime \
                    path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    port:jansson

configure.args-append \
                    --with-python_prefix=${python.prefix}
