source: trunk/dports/graphics/wxLua/Portfile

Last change on this file was 134469, checked in by mojca@…, 2 years ago

wxLua: out-of-source build (#47197)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.4 KB
Line 
1# -*- 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
2# $Id: Portfile 134469 2015-03-26 20:27:50Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           cmake 1.0
6PortGroup           wxWidgets 1.0
7
8name                wxLua
9version             2.8.12.3
10revision            2
11categories          graphics devel
12platforms           darwin freebsd
13maintainers         nomaintainer
14description         Lua bindings for wxWidgets
15long_description    wxLua is a lua scripting language wrapper around the \
16                    wxWidgets cross-platform GUI library. It consists of an \
17                    executable for running standalone wxLua scripts and a \
18                    library for extending C++ programs with a fast, small, \
19                    fully embeddable scripting language.
20
21homepage            http://wxlua.sourceforge.net/
22master_sites        sourceforge:wxlua
23distname            ${name}-${version}-src
24
25## SVN repository
26# fetch.type        svn
27# svn.url           https://svn.code.sf.net/p/wxlua/svn/trunk/${name}
28# worksrcdir        ${name}
29
30checksums           rmd160  c09c3e64b0abde69e1d3ecc62a703b225c78e278 \
31                    sha256  dbfc1d0ed7a89524c7adac66b8ae4b792f4c06255c5c0fea304d439fc87a6d50
32
33cmake.out_of_source yes
34wxWidgets.use       wxWidgets-3.0
35
36depends_lib         port:readline \
37                    port:${wxWidgets.port}
38
39configure.args-append \
40                    -DwxWidgets_CONFIG_EXECUTABLE=${wxWidgets.wxconfig} \
41                    -DwxLua_LUA_LIBRARY_BUILD_SHARED=OFF \
42                    -DwxLua_LUA_LIBRARY_USE_BUILTIN=ON \
43                    -DwxLua_LUA_LIBRARY_VERSION=5.2
44
45# TODO: there is no FindLua52.cmake, but FindLua51 finds the right includes & libraries,
46#       except that it then fails to compile; when using the builtin lua,
47#       we need to delete lua afterwards
48
49#                   -DwxLua_LUA_INCLUDE_DIR=${prefix}/include \
50#                   -DwxLua_LUA_LIBRARY=${prefix}/lib/liblua.dylib \
51#                   -DLUA_INCLUDE_DIR=${prefix}/include \
52#                   -DLUA_LIBRARIES=${prefix}/lib/liblua.dylib \
53#                   -DLUA_LIBRARY=${prefix}/lib/liblua.dylib
54
55post-destroot {
56    xinstall -d -m 0755 ${destroot}${applications_dir}
57    # TODO: - wxLuaFreeze isn't really working as an app
58    foreach {app} {wxLua wxLuaCan wxLuaEdit wxLuaFreeze} {
59        move "${destroot}${prefix}/bin/${app}.app" ${destroot}${applications_dir}
60    }
61
62    # delete a generic wxWidgets library
63    delete ${destroot}${prefix}/lib/libwx.dylib
64
65    # these files need to be deleted if wxstedit remains a separate port
66    xinstall -d -m 0755 ${destroot}${prefix}/share/wxstedit
67    move ${destroot}${prefix}/doc/wxStEdit ${destroot}${prefix}/share/wxstedit/doc
68    delete ${destroot}${prefix}/doc
69
70    # make sure that there is no bin/lua & bin/luac distributed
71    delete ${destroot}${prefix}/bin/lua
72    delete ${destroot}${prefix}/bin/luac
73}
74
75# TODO: if still needed ...
76#
77# post-destroot {
78#     # provide a symbolic link to the wxLua sample programs
79#     ln -sf "${prefix}/share/wxlua/samples" "${destroot}${appPath}/Samples"
80#
81#     # set up a wrapper so that you can call "wxlua *.wx.lua"
82#     xinstall -m 0755 "${filespath}/wxlua.sh" "${destroot}${prefix}/bin/wxlua"
83#     # set up a wrapper so that you can call "wxluaedit" too
84#     xinstall -m 0755 "${filespath}/wxluaedit.sh" "${destroot}${prefix}/bin/wxluaedit"
85# }
86
87livecheck.type      sourceforge
88livecheck.name      wxlua
Note: See TracBrowser for help on using the repository browser.