[28166] trunk/dports/graphics

source_changes at macosforge.org source_changes at macosforge.org
Thu Aug 23 03:55:26 PDT 2007


Revision: 28166
          http://trac.macosforge.org/projects/macports/changeset/28166
Author:   afb at macports.org
Date:     2007-08-23 03:55:26 -0700 (Thu, 23 Aug 2007)

Log Message:
-----------
updated port, closes #11453

Added Paths:
-----------
    trunk/dports/graphics/wxLua/
    trunk/dports/graphics/wxLua/Portfile
    trunk/dports/graphics/wxLua/files/
    trunk/dports/graphics/wxLua/files/patch-Makefile.in
    trunk/dports/graphics/wxLua/files/patch-configure
    trunk/dports/graphics/wxLua/files/wxlua.sh
    trunk/dports/graphics/wxLua/files/wxluaedit.sh

Added: trunk/dports/graphics/wxLua/Portfile
===================================================================
--- trunk/dports/graphics/wxLua/Portfile	                        (rev 0)
+++ trunk/dports/graphics/wxLua/Portfile	2007-08-23 10:55:26 UTC (rev 28166)
@@ -0,0 +1,92 @@
+# $Id$
+
+PortSystem 1.0
+
+name			wxLua
+version			2.8.4.0
+categories		graphics devel
+platforms		darwin freebsd
+maintainers		afb at 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} --with-lua-prefix=${prefix} \
+			--enable-wxbindstc --enable-luamodule
+
+post-destroot {
+	# this bin conflicts with the "lua" port:
+	delete "${destroot}${prefix}/bin/lua"
+}
+
+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	\&raquo\;\&nbsp\;(\[0-9\.\]+)\&nbsp\;\&laquo\;


Property changes on: trunk/dports/graphics/wxLua/Portfile
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

Added: trunk/dports/graphics/wxLua/files/patch-Makefile.in
===================================================================
--- trunk/dports/graphics/wxLua/files/patch-Makefile.in	                        (rev 0)
+++ trunk/dports/graphics/wxLua/files/patch-Makefile.in	2007-08-23 10:55:26 UTC (rev 28166)
@@ -0,0 +1,11 @@
+--- apps/Makefile.in.orig	2007-05-24 02:59:43.000000000 +0200
++++ apps/Makefile.in	2007-08-14 01:24:59.000000000 +0200
+@@ -184,7 +184,7 @@
+ @COND_USE_WXLUAFREEZEAPP_1@	= wxLuaFreeze.app/Contents/PkgInfo
+ @COND_PLATFORM_MACOSX_1 at __app_wxluafreeze_bundle___depname \
+ @COND_PLATFORM_MACOSX_1@	= app_wxluafreeze_bundle
+- at COND_SHARED_1@__app = -Wl,-rpath,../lib
++ at COND_SHARED_1@__app = 
+ 
+ ### Targets: ###
+ 

Added: trunk/dports/graphics/wxLua/files/patch-configure
===================================================================
--- trunk/dports/graphics/wxLua/files/patch-configure	                        (rev 0)
+++ trunk/dports/graphics/wxLua/files/patch-configure	2007-08-23 10:55:26 UTC (rev 28166)
@@ -0,0 +1,11 @@
+--- configure.orig	2007-05-08 20:26:05.000000000 +0200
++++ configure	2007-08-14 01:49:28.000000000 +0200
+@@ -4375,7 +4375,7 @@
+ 
+                         if test "$DEBUG" = "1"; then
+                 BUILD="debug"
+-            elif test "$DEBUG" = ""; then
++            elif test "$DEBUG" = "0"; then
+                 BUILD="release"
+             fi
+         fi

Added: trunk/dports/graphics/wxLua/files/wxlua.sh
===================================================================
--- trunk/dports/graphics/wxLua/files/wxlua.sh	                        (rev 0)
+++ trunk/dports/graphics/wxLua/files/wxlua.sh	2007-08-23 10:55:26 UTC (rev 28166)
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec /Applications/MacPorts/wxLua/wxLua.app/Contents/MacOS/* $@


Property changes on: trunk/dports/graphics/wxLua/files/wxlua.sh
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:eol-style
   + native

Added: trunk/dports/graphics/wxLua/files/wxluaedit.sh
===================================================================
--- trunk/dports/graphics/wxLua/files/wxluaedit.sh	                        (rev 0)
+++ trunk/dports/graphics/wxLua/files/wxluaedit.sh	2007-08-23 10:55:26 UTC (rev 28166)
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec /Applications/MacPorts/wxLua/wxLuaEdit.app/Contents/MacOS/* $@


Property changes on: trunk/dports/graphics/wxLua/files/wxluaedit.sh
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:eol-style
   + native

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070823/d43a6a16/attachment.html


More information about the macports-changes mailing list