# -*- 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 name luabind version 0.9.1 categories devel platforms darwin maintainers nomaintainer description A library that helps you create bindings between C++ and Lua long_description \ Luabind is a library that helps you create \ bindings between C++ and Lua. It has the ability \ to expose functions and classes, written in C++, \ to Lua. It will also supply the functionality to \ define classes in lua and let them derive from \ other lua classes or C++ classes. Lua classes can \ override virtual functions from their C++ baseclasses. \ It is written towards Lua 5.x, and does not work with Lua 4. homepage http://www.rasterbar.com/products/luabind.html master_sites sourceforge checksums sha256 80de5e04918678dd8e6dac3b22a34b3247f74bf744c719bae21faaa49649aaae \ rmd160 0c8ea633f4b2981d977c3300cf9825de3bba4936 depends_build port:boost-jam \ port:boost-build depends_lib port:lua \ port:boost patchfiles patch-luabind-detail-format_signature.hpp.diff use_configure no pre-build { reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/Jamroot } build.cmd bjam build.args link=static --toolset=darwin -d2 variant debug description {Build debug libraries} { global build.target build.target variant=debug,release } if {![variant_isset debug]} { global build.target build.target variant=release } variant universal { build.args-append \ cflags="${configure.universal_cflags} ${configure.universal_cppflags}" \ linkflags="${configure.universal_ldflags}" } destroot.cmd ${build.cmd} destroot.destdir --prefix=${destroot}${prefix} pre-destroot { eval destroot.args ${build.target} ${build.args} } post-destroot { #check for boost_system multi-threaded version if {[file exists ${prefix}/lib/libboost_system-mt.dylib]} { set boost_system_lib boost_system-mt } else { set boost_system_lib boost_system } #Create a .pc for pkg-config set data "Name: ${name} Description: ${description} URL: ${homepage} Version: ${version} Requires: lua Libs: -L${prefix}/lib -lluabind -l${boost_system_lib} Cflags: -I${prefix}/include" set filename "${worksrcpath}/luabind.pc" set file [open $filename "w"] puts -nonewline $file $data close $file xinstall -d -m 0755 ${destroot}${prefix}/lib/pkgconfig xinstall -m 0644 ${worksrcpath}/luabind.pc ${destroot}${prefix}/lib/pkgconfig/luabind.pc } livecheck.regex ${name} (\\d+\\.\\d+\\.\\d+) released