Ticket #35875: wxgtk-newport.patch

File wxgtk-newport.patch, 6.4 KB (added by jvalduvieco@…, 12 years ago)
  • x11/wxgtk-opengl/Portfile

    diff -Nru /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/x11/wxgtk-opengl/Portfile x11/wxgtk-opengl/Portfile
    old new  
     1# $Id: Portfile 92969 2012-05-12 13:26:40Z jmr@macports.org $
     2
     3PortSystem      1.0
     4
     5name            wxgtk-opengl
     6conflicts       wxWidgets wxWidgets-python wxgtk
     7version         2.8.12
     8categories      x11
     9license         wxwidgets
     10platforms       darwin
     11maintainers     nomaintainer
     12
     13description     The wxWidgets GUI toolkit with GTK+ bindings
     14long_description    \
     15    A C++ package for platform independent software development
     16
     17homepage        http://wxwidgets.org/
     18master_sites    sourceforge:wxwindows
     19distname        wxGTK-${version}
     20
     21checksums       sha1    a8d31ef924ae49e97690646b13d5a2a7be7dda10 \
     22                rmd160  c401f141ed9fb085c7b79a2f0db788ce6ae9309f
     23
     24use_bzip2       yes
     25use_parallel_build yes
     26depends_build   port:pkgconfig
     27depends_lib     port:gtk2 \
     28                port:tiff \
     29                port:jpeg \
     30                port:libpng \
     31                port:freetype \
     32                port:mesa \
     33                port:zlib
     34
     35patchfiles      patch-Makefile.in configure.patch
     36
     37# g++-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags
     38universal_variant no
     39
     40# --enable-graphics_ctx Seems to be unsupported on x86_64
     41configure.args  --with-gtk --with-libpng --with-opengl --with-libjpeg --with-libtiff \
     42                --with-freetype --with-zlib --enable-unicode
     43post-destroot {
     44    system "cd ${worksrcpath}/contrib && make && make install"
     45    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
     46    eval xinstall -m 644 [glob ${worksrcpath}/*.txt] \
     47      ${destroot}${prefix}/share/doc/${name}
     48#    system "cd ${worksrcpath}/contrib && cp -av include/wx/* ${destroot}${prefix}/include/wx-2.8/wx/"
     49#    xinstall -m 644 ${worksrcpath}/contrib/lib/libwx_gtk2u_stc-* ${destroot}${prefix}/lib/
     50
     51}
  • x11/wxgtk-opengl/files/configure.patch

    diff -Nru /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/x11/wxgtk-opengl/files/configure.patch x11/wxgtk-opengl/files/configure.patch
    old new  
     1--- configure.orig      2011-03-22 23:16:57.000000000 +1100
     2+++ configure   2012-02-16 14:40:36.000000000 +1100
     3@@ -33191,7 +33191,7 @@
     4     elif test "$wxUSE_MSW" = 1; then
     5         OPENGL_LIBS="-lopengl32 -lglu32"
     6     elif test "$USE_DARWIN" = 1; then
     7-        OPENGL_LIBS=""
     8+        OPENGL_LIBS="-lGL -lGLU"
     9     else
     10                         echo "$as_me:$LINENO: checking for OpenGL headers" >&5
     11 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6
  • x11/wxgtk-opengl/files/patch-Makefile.in

    diff -Nru /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/x11/wxgtk-opengl/files/patch-Makefile.in x11/wxgtk-opengl/files/patch-Makefile.in
    old new  
     1--- Makefile.in.orig    2010-09-05 00:01:24.000000000 +0200
     2+++ Makefile.in 2010-09-05 00:05:11.000000000 +0200
     3@@ -5033,8 +5033,8 @@
     4 @COND_PLATFORM_MACOSX_1@__HTML_SRC_PLATFORM_OBJECTS = monodll_chm.o
     5 @COND_PLATFORM_UNIX_1@__HTML_SRC_PLATFORM_OBJECTS = monodll_chm.o
     6 @COND_TOOLKIT_MSW@__HTML_SRC_PLATFORM_OBJECTS = monodll_helpbest.o
     7-@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@__PLUGIN_ADV_SRC_OBJECTS \
     8-@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@   = monodll_sound_sdl.o
     9+@COND_USE_PLUGINS_0@__PLUGIN_ADV_SRC_OBJECTS \
     10+@COND_USE_PLUGINS_0@   = monodll_sound_sdl.o
     11 COND_MONOLITHIC_1_SHARED_0___monolib___depname = \
     12        $(LIBDIRNAME)/$(LIBPREFIX)wx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)$(LIBEXT)
     13 @COND_MONOLITHIC_1_SHARED_0@__monolib___depname = $(COND_MONOLITHIC_1_SHARED_0___monolib___depname)
     14@@ -6830,8 +6830,8 @@
     15 @COND_PLATFORM_MACOSX_1@__HTML_SRC_PLATFORM_OBJECTS_1 = monolib_chm.o
     16 @COND_PLATFORM_UNIX_1@__HTML_SRC_PLATFORM_OBJECTS_1 = monolib_chm.o
     17 @COND_TOOLKIT_MSW@__HTML_SRC_PLATFORM_OBJECTS_1 = monolib_helpbest.o
     18-@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@__PLUGIN_ADV_SRC_OBJECTS_1 \
     19-@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@   = monolib_sound_sdl.o
     20+@COND_USE_PLUGINS_0@__PLUGIN_ADV_SRC_OBJECTS_1 \
     21+@COND_USE_PLUGINS_0@   = monolib_sound_sdl.o
     22 COND_MONOLITHIC_0_SHARED_1___basedll___depname = \
     23        $(LIBDIRNAME)/$(DLLPREFIX)$(WXDLLNAMEPREFIX)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)$(WXCOMPILER)$(VENDORTAG)$(WXDLLVERSIONTAG)$(dll___targetsuf3)
     24 @COND_MONOLITHIC_0_SHARED_1@__basedll___depname = $(COND_MONOLITHIC_0_SHARED_1___basedll___depname)
     25@@ -10405,8 +10405,8 @@
     26 @COND_TOOLKIT_MSW@     = advdll_datectrl.o
     27 @COND_TOOLKIT_WINCE@__ADVANCED_PLATFORM_NATIVE_SRC_OBJECTS_2 \
     28 @COND_TOOLKIT_WINCE@   = advdll_datectrl.o
     29-@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@__PLUGIN_ADV_SRC_OBJECTS_2 \
     30-@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@   = advdll_sound_sdl.o
     31+@COND_USE_PLUGINS_0@__PLUGIN_ADV_SRC_OBJECTS_2 \
     32+@COND_USE_PLUGINS_0@   = advdll_sound_sdl.o
     33 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1___advlib___depname = \
     34        $(LIBDIRNAME)/$(LIBPREFIX)wx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv-$(WX_RELEASE)$(HOST_SUFFIX)$(LIBEXT)
     35 @COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@__advlib___depname = $(COND_MONOLITHIC_0_SHARED_0_USE_GUI_1___advlib___depname)
     36@@ -10470,8 +10470,8 @@
     37 @COND_TOOLKIT_MSW@     = advlib_datectrl.o
     38 @COND_TOOLKIT_WINCE@__ADVANCED_PLATFORM_NATIVE_SRC_OBJECTS_3 \
     39 @COND_TOOLKIT_WINCE@   = advlib_datectrl.o
     40-@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@__PLUGIN_ADV_SRC_OBJECTS_3 \
     41-@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@   = advlib_sound_sdl.o
     42+@USE_PLUGINS_0@__PLUGIN_ADV_SRC_OBJECTS_3 \
     43+@USE_PLUGINS_0@        = advlib_sound_sdl.o
     44 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1___mediadll___depname = \
     45        $(LIBDIRNAME)/$(DLLPREFIX)$(WXDLLNAMEPREFIXGUI)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_media$(WXCOMPILER)$(VENDORTAG)$(WXDLLVERSIONTAG)$(dll___targetsuf3)
     46 @COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1@__mediadll___depname = $(COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1___mediadll___depname)