Files

42 lines
1.4 KiB
Tcl

# -*- 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 R 1.0
R.setup github shikokuchuo nanonext 1.4.0 v
revision 0
categories-append devel
maintainers nomaintainer
license GPL-3+
description NNG (Nanomsg Next Gen) lightweight messaging library
long_description {*}${description}
homepage https://shikokuchuo.net/nanonext
checksums rmd160 a74b3f86bd8e29c11bf5351762ffcb2c1860e576 \
sha256 36afbb22bccfaeef7a563da5805fe981fec2e9c30cc3e2c99729f58a84d0a2f3 \
size 989584
github.tarball_from archive
depends_build-append \
path:bin/cmake:cmake \
path:bin/pkg-config:pkgconfig \
port:xz
depends_lib-append port:mbedtls3 \
port:nng
# Configure literally searches everywhere besides the correct place.
patchfiles patch-fix-paths.diff
post-patch {
reinplace "s,@CC@,${configure.cc}," ${worksrcpath}/configure
reinplace "s,@PREFIX@,${prefix},g" ${worksrcpath}/configure
}
build.env-append CC=${configure.cc} CXX=${configure.cxx}
depends_test-append port:R-later \
port:R-litedown \
port:R-promises
test.run yes