# -*- 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
# $Id$

PortSystem          1.0
PortGroup           github 1.0
PortGroup           cmake 1.0

github.setup        openSUSE libsolv 0.6.20
checksums           rmd160  2bfcc74688ab30cece371db0da92d5b9ea297a2e \
                    sha256  7f9f866d3d14af7c0922fef8d7bbbb42f8342398322225f0137f394bd4829f58

maintainers         cal openmaintainer
categories          devel math
platforms           darwin

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

patch.pre_args      -p1
patchfiles          0001-Fix-manpage-install-dir.patch

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_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