source: trunk/dports/graphics/wxLua/Portfile @ 113329

Last change on this file since 113329 was 113329, checked in by mojca@…, 6 years ago

revbump the wxWidgets dependents

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.5 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 113329 2013-11-13 16:53:30Z mojca@macports.org $
3
4PortSystem          1.0
5PortGroup           cmake 1.0
6PortGroup           wxWidgets 1.0
7
8name                wxLua
9svn.revision        219
10version             2.8.12.3_r${svn.revision}
11revision            1
12categories          graphics devel
13platforms           darwin freebsd
14maintainers         nomaintainer
15description         Lua bindings for wxWidgets
16long_description    wxLua is a lua scripting language wrapper around the \
17                    wxWidgets cross-platform GUI library. It consists of an \
18                    executable for running standalone wxLua scripts and a \
19                    library for extending C++ programs with a fast, small, \
20                    fully embeddable scripting language.
21
22# fetching sources from SVN because no sources seem to have been released recently,
23# but they are needed in order to work with wxWidgets 2.9.
24# There were only windows binaries. As soon as some recent version gets released,
25# fetching from SVN should stop.
26homepage            http://wxlua.sourceforge.net/
27
28## this could work if the project would release any files recently, but the files are too old
29#master_sites       sourceforge:wxlua
30#distname           ${name}-${version}-src
31#
32## SVN repository (apparently not desirable to use)
33fetch.type          svn
34svn.url             https://svn.code.sf.net/p/wxlua/svn/trunk/${name}
35worksrcdir          ${name}
36
37## temporary URL from SourceForge
38## (one needs to initiate the transfer manually first and it gets wiped out after a while;
39##  to make it worse checksums change after manually downloading the files again after a while)
40## https://sourceforge.net/p/wxlua/svn/${svn.revision}/tree/
41# master_sites        http://sourceforge.net/code-snapshots/svn/w/wx/wxlua/svn/
42# distname            wxlua-svn-${svn.revision}-trunk
43# use_zip             yes
44# worksrcdir          ${distname}/wxLua
45
46wxWidgets.use       wxWidgets-3.0
47
48depends_lib         port:lua \
49                    port:readline \
50                    port:${wxWidgets.port}
51
52# port:wxstedit seems to be built in now, but the exact relationship is not clear
53
54# TODO: not sure how to translate these options from the previous version of the port
55#
56# configure.args      --mandir=${prefix}/share/man \
57#                     --with-wx-prefix=${prefix} \
58#                     --enable-wxbindstc --enable-luamodule \
59#                     --with-lua-prefix=${prefix} \
60#                     --enable-wxluafreeze-app
61
62configure.args-append \
63                    -DwxWidgets_CONFIG_EXECUTABLE=${wxWidgets.wxconfig} \
64                    -DwxLua_LUA_LIBRARY_BUILD_SHARED=OFF \
65                    -DwxLua_LUA_LIBRARY_USE_BUILTIN=ON \
66                    -DwxLua_LUA_LIBRARY_VERSION=5.2
67
68# TODO: there is no FindLua52.cmake, but FindLua51 finds the right includes & libraries,
69#       except that it then fails to compile; when using the builtin lua,
70#       we need to delete lua afterwards
71
72#                   -DwxLua_LUA_INCLUDE_DIR=${prefix}/include \
73#                   -DwxLua_LUA_LIBRARY=${prefix}/lib/liblua.dylib \
74#                   -DLUA_INCLUDE_DIR=${prefix}/include \
75#                   -DLUA_LIBRARIES=${prefix}/lib/liblua.dylib \
76#                   -DLUA_LIBRARY=${prefix}/lib/liblua.dylib
77
78post-destroot {
79    xinstall -d -m 0755 ${destroot}${applications_dir}
80    # TODO: - wxLuaFreeze isn't really working as an app
81    foreach {app} {wxLua wxLuaCan wxLuaEdit wxLuaFreeze} {
82        move "${destroot}${prefix}/bin/${app}.app" ${destroot}${applications_dir}
83    }
84
85    # these files need to be deleted if wxstedit remains a separate port
86    xinstall -d -m 0755 ${destroot}${prefix}/share/wxstedit
87    move ${destroot}${prefix}/doc/wxStEdit ${destroot}${prefix}/share/wxstedit/doc
88    delete ${destroot}${prefix}/doc
89
90    # make sure that there is no bin/lua & bin/luac distributed
91    delete ${destroot}${prefix}/bin/lua
92    delete ${destroot}${prefix}/bin/luac
93}
94
95# TODO: if still needed ...
96#
97# post-destroot {
98#     # provide a symbolic link to the wxLua sample programs
99#     ln -sf "${prefix}/share/wxlua/samples" "${destroot}${appPath}/Samples"
100#
101#     # set up a wrapper so that you can call "wxlua *.wx.lua"
102#     xinstall -m 0755 "${filespath}/wxlua.sh" "${destroot}${prefix}/bin/wxlua"
103#     # set up a wrapper so that you can call "wxluaedit" too
104#     xinstall -m 0755 "${filespath}/wxluaedit.sh" "${destroot}${prefix}/bin/wxluaedit"
105# }
106
107livecheck.type      sourceforge
108livecheck.name      wxlua
Note: See TracBrowser for help on using the repository browser.