diff --git a/www/chatgpt-client/Portfile b/www/chatgpt-client/Portfile new file mode 100644 index 00000000000..73f782116db --- /dev/null +++ b/www/chatgpt-client/Portfile @@ -0,0 +1,35 @@ +# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=portfile:et:sw=4:ts=4:sts=4 + +PortSystem 1.0 +PortGroup github 1.0 + +github.setup LumitoLuma chatgpt-client bd4b13db19b45c548bb8ef81a13feb42ff495680 +version 0.5.2 +revision 0 +maintainers nomaintainer + +categories www devel +description Simple ChatGPT client written in C +long_description ${name} is a simple ChatGPT client written in C (GNU89) \ + for UNIX-based systems. +license GPL-3 +checksums rmd160 c9cccb841f4e33366d732d37212e054d7dcb4992 \ + sha256 686173d27261ed8df869124981eb7827c54decf308deddba70cc66508d405616 \ + size 20352 +github.tarball_from archive + +depends_lib-append port:curl \ + port:libcjson \ + port:readline + +use_configure no + +build.cmd ${configure.cc} +build.cmd-append -o chatgpt chatgpt.c -O2 -std=gnu89 -L${prefix}/lib -lcurl -lcjson -lreadline +build.target + +destroot { + xinstall -m 0755 -W ${worksrcpath} chatgpt ${destroot}${prefix}/bin + xinstall -d ${destroot}${prefix}/share/doc/${name} + xinstall -m 0644 -W ${worksrcpath} LICENSE README.md ${destroot}${prefix}/share/doc/${name} +}