# -*- 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 cmake 1.1 PortGroup github 1.0 PortGroup legacysupport 1.1 github.setup dankamongmen notcurses 3.0.9 v github.tarball_from archive revision 0 categories devel license Apache-2 maintainers {linux.com:nickblack @dankamongmen} openmaintainer description blingful tuis and character graphics long_description Notcurses facilitates the creation of modern TUI programs, making \ full use of Unicode and 24-bit TrueColor. Its API is similar \ to that of NCURSES, but extends that with z-buffering, rendering \ of images and video using ffmpeg, alpha blending, widgets, palette \ fades, resize awareness, and multithreading support. homepage https://notcurses.com master_sites-append https://github.com/dankamongmen/${name}/releases/download/v${version}/:bootstrap distfiles-append ${name}-doc-${version}${extract.suffix}:bootstrap checksums ${distname}${extract.suffix} \ rmd160 05b4d9bef689fe9348245c27edd23cd7c5524055 \ sha256 e5cc02aea82814b843cdf34dedd716e6e1e9ca440cf0f899853ca95e241bd734 \ size 10148050 \ ${name}-doc-${version}${extract.suffix} \ rmd160 f00189a7b7859e829c8471b3eb045cdb6c7072f7 \ sha256 a40d7d5c4b948e3423bfdfc24b1c10a823dee146540ab7da03e932b80c161432 \ size 162750 extract.only ${distname}${extract.suffix} # create directory for ${name}-doc archive post-extract { system -W ${workpath} "mkdir ${name}-doc-${version}" system -W ${workpath}/${name}-doc-${version} "/usr/bin/gzip -dc\ ${distpath}/${name}-doc-${version}${extract.suffix} |\ /usr/bin/tar -xf -" } # requires clock_gettime() legacysupport.newest_darwin_requires_legacy 15 # https://github.com/dankamongmen/notcurses/pull/2724 patchfiles-append 0001-inttypes.h-needs-__STDC_FORMAT_MACROS-defined.patch compiler.c_standard 2011 compiler.cxx_standard \ 2017 depends_build-append \ port:doctest \ port:pkgconfig depends_lib-append path:lib/libavcodec.dylib:ffmpeg \ port:libunistring \ port:libdeflate \ port:ncurses configure.args-append \ -DUSE_PANDOC=OFF post-destroot { set notcurses-doc ${workpath}/${name}-doc-${version} xinstall -m 0644 {*}[glob ${notcurses-doc}/*.1] \ ${destroot}${prefix}/share/man/man1 xinstall -m 0644 {*}[glob ${notcurses-doc}/*.3] \ ${destroot}${prefix}/share/man/man3 } # dyld: Library not loaded: @rpath/libnotcurses++.3.dylib configure.pre_args-replace \ -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON \ -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=OFF test.run yes