# -*- 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 wxWidgets 1.0 name wxLua svn.revision 193 version 2.8.12.3_r${svn.revision} categories graphics devel platforms darwin freebsd maintainers afb description Lua bindings for wxWidgets long_description wxLua is a lua scripting language wrapper around the \ wxWidgets cross-platform GUI library. It consists of an \ executable for running standalone wxLua scripts and a \ library for extending C++ programs with a fast, small, \ fully embeddable scripting language. # fetching sources from SVN because no sources seem to have been released recently, # but they are needed in order to work with wxWidgets 2.9. # There were only windows binaries. As soon as some recent version gets released, # fetching from SVN should stop. homepage http://wxlua.sourceforge.net/ ## this could work if the project would release any files recently, but the files are too old #master_sites sourceforge:wxlua #distname ${name}-${version}-src # ## SVN repository (apparently not desirable to use) fetch.type svn svn.url svn://svn.code.sf.net/p/wxlua/svn/trunk/${name} worksrcdir ${name} ## temporary URL from SourceForge ## (one needs to initiate the transfer manually first and it gets wiped out after a while; ## to make it worse checksums change after manually downloading the files again after a while) ## https://sourceforge.net/p/wxlua/svn/${svn.revision}/tree/ # master_sites http://sourceforge.net/code-snapshots/svn/w/wx/wxlua/svn/ # distname wxlua-svn-${svn.revision}-trunk # use_zip yes # worksrcdir ${distname}/wxLua wxWidgets.use wxWidgets-3.0 depends_lib port:lua \ port:readline \ port:${wxWidgets.port} # port:wxstedit seems to be built in now, but the exact relationship is not clear # TODO: not sure how to translate these options from the previous version of the port # # configure.args --mandir=${prefix}/share/man \ # --with-wx-prefix=${prefix} \ # --enable-wxbindstc --enable-luamodule \ # --with-lua-prefix=${prefix} \ # --enable-wxluafreeze-app configure.args-append \ -DwxWidgets_CONFIG_EXECUTABLE=${wxWidgets.wxconfig} \ -DwxLua_LUA_LIBRARY_BUILD_SHARED=OFF \ -DwxLua_LUA_LIBRARY_USE_BUILTIN=ON \ -DwxLua_LUA_LIBRARY_VERSION=5.2 # TODO: there is no FindLua52.cmake, but FindLua51 finds the right includes & libraries, # except that it then fails to compile; when using the builtin lua, # we need to delete lua afterwards # -DwxLua_LUA_INCLUDE_DIR=${prefix}/include \ # -DwxLua_LUA_LIBRARY=${prefix}/lib/liblua.dylib \ # -DLUA_INCLUDE_DIR=${prefix}/include \ # -DLUA_LIBRARIES=${prefix}/lib/liblua.dylib \ # -DLUA_LIBRARY=${prefix}/lib/liblua.dylib post-destroot { xinstall -d -m 0755 ${destroot}${applications_dir} # TODO: - wxLuaFreeze isn't really working as an app foreach {app} {wxLua wxLuaCan wxLuaEdit wxLuaFreeze} { move "${destroot}${prefix}/bin/${app}.app" ${destroot}${applications_dir} } # these files need to be deleted if wxstedit remains a separate port xinstall -d -m 0755 ${destroot}${prefix}/share/wxstedit move ${destroot}${prefix}/doc/wxStEdit ${destroot}${prefix}/share/wxstedit/doc delete ${destroot}${prefix}/doc # make sure that there is no bin/lua & bin/luac distributed delete ${destroot}${prefix}/bin/lua delete ${destroot}${prefix}/bin/luac } # TODO: if still needed ... # # post-destroot { # # provide a symbolic link to the wxLua sample programs # ln -sf "${prefix}/share/wxlua/samples" "${destroot}${appPath}/Samples" # # # set up a wrapper so that you can call "wxlua *.wx.lua" # xinstall -m 0755 "${filespath}/wxlua.sh" "${destroot}${prefix}/bin/wxlua" # # set up a wrapper so that you can call "wxluaedit" too # xinstall -m 0755 "${filespath}/wxluaedit.sh" "${destroot}${prefix}/bin/wxluaedit" # } livecheck.type sourceforge livecheck.name wxlua