# $Id$ PortSystem 1.0 name wxLua version 2.8.4.0 revision 1 categories graphics devel platforms darwin freebsd maintainers afb@macports.org 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. homepage http://wxlua.sourceforge.net/ master_sites sourceforge:wxlua checksums ${name}-${version}${extract.suffix} \ md5 b785cac87f34f5e0f43d0a6a6ddc4770 \ ${name}-${version}${extract.suffix} \ sha1 d0fdd5ebe497c1ecece240628932aea1476acf0d \ ${name}-${version}${extract.suffix} \ rmd160 5b9d8b46c900bf70a840c2163f11198fdd556d2c depends_lib port:wxstedit # port:lua worksrcdir wxLua patchfiles patch-configure configure.args --mandir=${prefix}/share/man \ --with-wx-prefix=${prefix} \ --enable-wxbindstc --enable-luamodule # --with-lua-prefix=${prefix} post-destroot { # this bin conflicts with the "lua" port: delete "${destroot}${prefix}/bin/lua" delete "${destroot}${prefix}/include/lauxlib.h" delete "${destroot}${prefix}/include/lua.h" delete "${destroot}${prefix}/include/luaconf.h" delete "${destroot}${prefix}/include/lualib.h" } platform darwin { patchfiles-append patch-Makefile.in } platform macosx {} if { [variant_isset macosx] && ![variant_isset x11] } { default_variants +aqua } if { [variant_isset puredarwin] } { default_variants +x11 } if { [variant_isset freebsd] } { default_variants +x11 } variant aqua requires macosx description "Use the wxMac port of wxWidgets" { depends_lib-append port:wxWidgets post-destroot { set appPath /Applications/MacPorts/wxLua xinstall -d -m 0755 ${destroot}${appPath} # for wxMac, we delete the programs and use bundles delete "${destroot}${prefix}/bin/wxlua" delete "${destroot}${prefix}/bin/wxluacan" delete "${destroot}${prefix}/bin/wxluaedit" delete "${destroot}${prefix}/bin/wxluafreeze" copy "${worksrcpath}/apps/wxLua.app" "${destroot}${appPath}" copy "${worksrcpath}/apps/wxLuaCan.app" "${destroot}${appPath}" copy "${worksrcpath}/apps/wxLuaEdit.app" "${destroot}${appPath}" copy "${worksrcpath}/apps/wxLuaFreeze.app" "${destroot}${appPath}" # 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" # remove some stuff that is unused with wxMac port delete "${destroot}/${prefix}/share/applications/wxlua.desktop" delete "${destroot}/${prefix}/share/mime/packages/wxlua.xml" delete "${destroot}/${prefix}/share/pixmaps/wxlualogo.xpm" } } variant x11 conflicts aqua description "Use the wxGTK port of wxWidgets" { depends_lib-append port:wxgtk } #livecheck.url http://wxlua.sourceforge.net/download.php #livecheck.regex \»\;\ \;(\[0-9\.\]+)\ \;\«\;