# -*- 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           cmake 1.0
PortGroup           github 1.0

github.setup        LuaDist toluapp 1.0.93
revision            1
categories          lang
platforms           darwin
maintainers         nomaintainer
license             MIT

description         A extension of toLua, a tool to integrate C-Cpp code with Lua.

long_description    tolua++ is an extension of toLua, a tool to \
                    integrate C-C++ code with Lua. tolua++ includes new features \
                    oriented to c++, such as class templates. \
                    tolua is a tool that greatly simplifies the integration of C-C++ code with Lua. \
                    Based on a "cleaned" header file, tolua automatically \
                    generates the binding code to access C-C++ features from Lua. \
                    Using Lua-5.0 API and metamethod facilities, the current version \
                    automatically maps C-C++ constants, external variables, functions, \
                    namespace, classes, and methods to Lua. It also provides facilities \
                    to create Lua modules.

checksums           rmd160  c5cf5a16e4ea297b0bcf4ba8add3c4ed67ea3431 \
                    sha256  1900908bd551c951d4ef6b460b00fb336086bfc67084d2edd029784ff3bf1a68

depends_lib-append  port:lua

post-extract {
    xinstall -d ${build.dir}
}

configure.dir       ${worksrcpath}/build
build.dir           ${configure.dir}

configure.args-append -DUSE_RPATH=OFF
configure.post_args ..