# -*- 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.0

github.setup        openSUSE libsolv 0.7.24
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball

checksums           rmd160  ce91d6c7f3bac97774ff9ea1de6e920d6450b7d4 \
                    sha256  436433b00421ee42f27ca1a030502643d48a711b49f09ee2ab644379173198b9 \
                    size    751133

maintainers         {cal @neverpanic} {ijackson @JacksonIsaac} openmaintainer
categories          devel math

license             BSD
description         Library for solving packages and reading repositories
long_description    {*}${description}

cmake.out_of_source yes
configure.args-append \
                    -DLIB=lib \
                    -DMAN_INSTALL_DIR=${prefix}/share/man \
                    -DENABLE_APPDATA=OFF \
                    -DENABLE_ARCHREPO=OFF \
                    -DENABLE_BZIP2_COMPRESSION=ON \
                    -DENABLE_COMPS=OFF \
                    -DENABLE_CONDA=ON \
                    -DENABLE_CUDFREPO=ON \
                    -DENABLE_DEBIAN=OFF \
                    -DENABLE_HAIKU=OFF \
                    -DENABLE_HELIXREPO=OFF \
                    -DENABLE_LZMA_COMPRESSION=ON \
                    -DENABLE_MDKREPO=OFF \
                    -DENABLE_PERL=OFF \
                    -DENABLE_PUBKEY=OFF \
                    -DENABLE_PYTHON=OFF \
                    -DENABLE_RPMDB=OFF \
                    -DENABLE_RPMMD=OFF \
                    -DENABLE_RUBY=OFF \
                    -DENABLE_SUSEREPO=OFF

depends_build-append \
                    port:pkgconfig

depends_lib-append  port:expat \
                    port:zlib \
                    port:bzip2 \
                    port:xz
