Files

47 lines
1.8 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 cmake 1.1
PortGroup github 1.0
name libargparse
github.setup maryla-uc libargparse 81998ffafb9c2ac8cf488d31e536a2e6fd6b3fdf
version 20240826
revision 3
categories devel
license MIT
maintainers {mascguy @mascguy} openmaintainer
description Yet another simple command-line parser for C++ applications
long_description ${description}
checksums rmd160 c92abc57b9801a23a3f1059af4688c6c00b04b45 \
sha256 c26a772ba2cb52829759db4636c67ca318e1dd95c19254488353ed9021f366cc \
size 22411
# Patch proj's CMakeLists.txt, to auto-generate the pkgconfig file
# Note: Will be contributed to upstream, to see if they're interested in adding
patchfiles-append patch-cmake-pkgconfig.diff
post-patch {
copy ${filespath}/${subport}.pc.in ${worksrcpath}
}
compiler.cxx_standard 2014
set my_install_prefix ${prefix}/libexec/${subport}
set my_install_include ${prefix}/include/${subport}
set my_install_lib ${prefix}/lib/${subport}
configure.args-append \
-DCMAKE_INSTALL_LIBEXECDIR=${my_install_prefix} \
-DCMAKE_INSTALL_BINDIR=${my_install_prefix}/bin \
-DCMAKE_INSTALL_SBINDIR=${my_install_prefix}/sbin \
-DCMAKE_INSTALL_SHAREDIR=${my_install_prefix}/share \
-DCMAKE_INSTALL_INCLUDEDIR=${my_install_include} \
-DCMAKE_INSTALL_LIBDIR=${my_install_lib} \
-DCMAKE_INSTALL_NAME_DIR=${my_install_lib}