[67813] trunk/dports/graphics
macsforever2000 at macports.org
macsforever2000 at macports.org
Tue May 18 14:25:19 PDT 2010
Revision: 67813
http://trac.macports.org/changeset/67813
Author: macsforever2000 at macports.org
Date: 2010-05-18 14:25:16 -0700 (Tue, 18 May 2010)
Log Message:
-----------
Added new port. (#24350)
Added Paths:
-----------
trunk/dports/graphics/wxWidgets-python/
trunk/dports/graphics/wxWidgets-python/Portfile
trunk/dports/graphics/wxWidgets-python/files/
trunk/dports/graphics/wxWidgets-python/files/changeset_r61009.diff
trunk/dports/graphics/wxWidgets-python/work
Added: trunk/dports/graphics/wxWidgets-python/Portfile
===================================================================
--- trunk/dports/graphics/wxWidgets-python/Portfile (rev 0)
+++ trunk/dports/graphics/wxWidgets-python/Portfile 2010-05-18 21:25:16 UTC (rev 67813)
@@ -0,0 +1,147 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=2:ts=2:sts=2
+# $Id$
+
+PortSystem 1.0
+PortGroup archcheck 1.0
+
+name wxWidgets-python
+version 2.8.10.1
+categories graphics devel
+platforms darwin
+maintainers nomaintainer
+
+description mature cross-platform C++ GUI framework
+long_description wxWidgets is a mature open-source cross-platform C++ \
+ GUI framework for Mac OS, Unix, Linux, Windows. It can \
+ make use of a variety of native widget sets as well as \
+ its own widget set: Mac OS, GTK+, Motif, WIN32. \
+ wxWidgets will even run on embedded systems using \
+ Linux and X11. This port version is meant to be in sync with py*-wxpython.
+
+homepage http://www.wxwidgets.org/
+distname wxWidgets
+master_sites sourceforge:wxpython
+
+use_bzip2 yes
+
+distname wxPython-src
+distfiles ${distname}-${version}${extract.suffix}
+checksums md5 65d5ef166f23fe8b4c67f58df164f93e \
+ sha1 6598fbafd979a91f20100171fa23a91779f6dc62 \
+ rmd160 bb606046d140623041b988e64ab268ced9aa958f
+
+depends_lib \
+ port:jpeg \
+ port:tiff \
+ port:libpng \
+ port:zlib \
+ port:libiconv \
+ port:expat \
+ path:lib/pkgconfig/sdl.pc:libsdl \
+ port:libsdl_mixer
+
+archcheck.files lib/libjpeg.dylib \
+ lib/libtiff.dylib \
+ lib/libpng.dylib \
+ lib/libz.dylib \
+ lib/libiconv.dylib \
+ lib/libexpat.dylib \
+ lib/libSDL.dylib \
+ lib/libSDL_mixer.dylib
+
+set worksrcdir ${distname}-${version}/build
+
+extract.only ${distname}-${version}${extract.suffix}
+
+patchfiles changeset_r61009.diff
+patch.dir ${workpath}/${distname}-${version}
+patch.pre_args -p4
+
+configure.cmd ../configure
+configure.ldflags -L${build.dir}/lib -L${prefix}/lib
+configure.args --mandir=${prefix}/share/man \
+ --with-libiconv-prefix=${prefix} \
+ --with-libjpeg \
+ --with-libtiff \
+ --with-libpng \
+ --with-zlib \
+ --with-sdl \
+ --with-opengl \
+ --disable-sdltest \
+ --enable-unicode \
+ --enable-display \
+ --enable-monolithic
+
+set contrib "gizmos stc ogl"
+set installtype release
+
+build.target
+
+universal_variant no
+use_parallel_build no
+
+variant carbon conflicts gtk description {use carbon} {
+ configure.args-append --with-mac
+ if {$build_arch == "x86_64"} {
+ configure.build_arch i386
+ } elseif {$build_arch == "ppc64"} {
+ configure.build_arch ppc
+ }
+ if {![info exists configure.ld_archflags]} {
+ eval configure.ldflags-append ${configure.cc_archflags}
+ }
+}
+variant gtk conflicts carbon description {use gtk} {
+ depends_lib-append port:gtk2
+ depends_lib-delete path:lib/pkgconfig/sdl.pc:libsdl
+ depends_lib-delete port:libsdl_mixer
+ configure.args-delete --with-sdl
+ configure.args-append --with-gtk
+}
+variant nonmonolithic description {build libraries separately} {
+ configure.args-delete --enable-monolithic
+}
+variant debug description {add debug info to libraries} {
+ configure.args-append --enable-debug
+ set installtype debug
+}
+if {![variant_isset carbon]} {
+ default_variants-append +gtk
+}
+
+post-configure {
+ if {[variant_isset gtk]} {
+ # for some reason, 'configure --with-gtk' does not specify to link the X11 opengl libs
+ # not sure what happens if quartz variant of gtk2 is used
+ reinplace "s|EXTRALIBS_OPENGL = |EXTRALIBS_OPENGL = -lGL -lGLU -lglut|g" ${worksrcpath}/Makefile
+ }
+}
+post-build {
+ foreach c { ${contrib} } {
+ system "cd ${build.dir} && make -C contrib/src/${c}"
+ }
+}
+post-destroot {
+ foreach c { ${contrib} } {
+ system "cd ${build.dir} && make -C contrib/src/${c} install ${destroot.destdir}"
+ }
+ xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
+ #xinstall -m 644 -W ${workpath}/${distname}-${version} \
+ # install-mac.txt install-mgl.txt install-motif.txt \
+ # INSTALL-OS2.txt install-x11.txt readme-cocoa.txt \
+ # readme-gtk.txt readme-mac.txt \
+ # readme-mgl.txt readme-motif.txt readme-x11.txt \
+ # ${destroot}${prefix}/share/doc/${name}
+ if {[variant_isset carbon]} {
+ set confscript ${prefix}/lib/wx/config/mac-unicode-${installtype}-2.8
+ }
+ if {[variant_isset gtk]} {
+ set confscript ${prefix}/lib/wx/config/gtk2-unicode-${installtype}-2.8
+ }
+ reinplace "s|-L${build.dir}/lib||" ${destroot}${confscript}
+ ln -sf ${confscript} ${destroot}${prefix}/bin/wx-config
+}
+
+livecheck.type regex
+livecheck.url ${homepage}/downloads/
+livecheck.regex Current Stable Release.*(2\\.\[0-9\]\\.\[0-9\]+)
Property changes on: trunk/dports/graphics/wxWidgets-python/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/graphics/wxWidgets-python/files/changeset_r61009.diff
===================================================================
--- trunk/dports/graphics/wxWidgets-python/files/changeset_r61009.diff (rev 0)
+++ trunk/dports/graphics/wxWidgets-python/files/changeset_r61009.diff 2010-05-18 21:25:16 UTC (rev 67813)
@@ -0,0 +1,16 @@
+Index: /wxWidgets/branches/WX_2_8_BRANCH/src/gtk/gsockgtk.cpp
+===================================================================
+--- /wxWidgets/branches/WX_2_8_BRANCH/src/gtk/gsockgtk.cpp (revision 37159)
++++ /wxWidgets/branches/WX_2_8_BRANCH/src/gtk/gsockgtk.cpp (revision 61009)
+@@ -16,6 +16,11 @@
+ #include <stdio.h>
+
++// newer versions of glib define its own GSocket but we unfortunately use this
++// name in our own (semi-)public header and so can't change it -- rename glib
++// one instead
++#define GSocket GlibGSocket
+ #include <gdk/gdk.h>
+ #include <glib.h>
++#undef GSocket
+
+ #include "wx/gsocket.h"
Added: trunk/dports/graphics/wxWidgets-python/work
===================================================================
--- trunk/dports/graphics/wxWidgets-python/work (rev 0)
+++ trunk/dports/graphics/wxWidgets-python/work 2010-05-18 21:25:16 UTC (rev 67813)
@@ -0,0 +1 @@
+link /opt/local/var/macports/build/_opt_mports_trunk_dports_graphics_wxWidgets-python/work
\ No newline at end of file
Property changes on: trunk/dports/graphics/wxWidgets-python/work
___________________________________________________________________
Added: svn:special
+ *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100518/43b447f0/attachment-0001.html>
More information about the macports-changes
mailing list