# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; truncate-lines: t -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4

PortSystem          1.0

PortGroup           cmake  1.0
PortGroup           github 1.0
PortGroup           qt4    1.0

# This appears last version that works with Qt4
github.setup        Cockatrice Cockatrice 2016-05-06-Release
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball

epoch               1
revision            7
categories          games
maintainers         nomaintainer
description         A board for playing trading card games like MTG online
long_description    {*}${description} (This port installs only the client as well as oracle.)

license             GPL-2

homepage            http://www.woogerworks.com/

checksums           rmd160  f590177c0e2252e9905c8c5bd7d50d070348b916 \
                    sha256  03751fd5283bfa0cd38071c2de295093dcace9c6ef9ad2a5ca3eba6d95e45cf9

depends_lib-append  port:protobuf3-cpp

configure.args-append -DWITH_QT4:BOOL=ON

destroot {
    xinstall -m 0755 -d ${destroot}${applications_dir}
    file copy ${worksrcpath}/cockatrice/cockatrice.app ${destroot}${applications_dir}
    file copy ${worksrcpath}/oracle/oracle.app ${destroot}${applications_dir}
}

# No new versions for Qt4
livecheck.type      none
