Files
2025-06-26 17:02:14 +08:00

37 lines
1.3 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 github 1.0
PortGroup cmake 1.1
github.setup argtable argtable3 3.3.1 v
github.tarball_from archive
revision 0
categories devel
license BSD
maintainers {i0ntempest @i0ntempest} openmaintainer
description ANSI C library for parsing GNU style command line arguments
long_description ${name} is an open source ANSI C library that parses GNU-style command-line \
options with the getopt library.
checksums sha256 8b28a4fb2cd621d8d16f34e30e1956aa488077f6a6b902e7fc9f07883e1519c1 \
rmd160 95585a5b3ed558a9fe38c43873eb210288236b76 \
size 178811
# https://github.com/argtable/argtable3/issues/88
if {[string match *gcc-4.* ${configure.compiler}]} {
patchfiles-append \
patch-gcc-4.diff
}
configure.args-append \
-DBUILD_SHARED_LIBS=ON
# Needed to run tests:
configure.pre_args-replace \
-DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON \
-DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=OFF
test.run yes