[109363] users/mojca/wxports/math
mojca at macports.org
mojca at macports.org
Tue Aug 13 17:12:10 PDT 2013
Revision: 109363
https://trac.macports.org/changeset/109363
Author: mojca at macports.org
Date: 2013-08-13 17:12:10 -0700 (Tue, 13 Aug 2013)
Log Message:
-----------
mojca/wxMaxima: adapt for new wxWidgets
Modified Paths:
--------------
users/mojca/wxports/math/wxMaxima/Portfile
Added Paths:
-----------
users/mojca/wxports/math/wxMaxima/
Modified: users/mojca/wxports/math/wxMaxima/Portfile
===================================================================
--- trunk/dports/math/wxMaxima/Portfile 2013-08-13 23:47:35 UTC (rev 109362)
+++ users/mojca/wxports/math/wxMaxima/Portfile 2013-08-14 00:12:10 UTC (rev 109363)
@@ -2,10 +2,11 @@
PortSystem 1.0
PortGroup active_variants 1.1
+PortGroup wxWidgets 1.0
name wxMaxima
version 12.01.0
-revision 2
+revision 3
maintainers usami-k openmaintainer
license gpl
platforms darwin
@@ -20,6 +21,9 @@
checksums md5 ef71ba8339fcdd7b715619af51bfa65e \
sha1 d80002ddea3260b0f3315072f23b4bb3cce3a10a \
rmd160 47891ac06c2e9b789c9581901c1e410e932beecd
+
+wxWidgets.use wxWidgets-3.0
+
patchfiles patch-src_main.cpp.diff \
patch-src_Config.cpp.diff \
patch-src_wxMaxima.cpp.diff
@@ -27,41 +31,25 @@
depends_lib port:libiconv \
path:lib/pkgconfig/sdl.pc:libsdl \
port:libxml2 \
- port:wxWidgets \
+ port:wxWidgets-3.0 \
port:zlib
depends_run port:maxima
-platform darwin 11 {
- if {[vercmp $xcodeversion 4.4] < 0} {
- if {[vercmp $xcodeversion 4.3] >= 0} {
- configure.cxxflags-append -isysroot ${developer_dir}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
- } else {
- configure.cxxflags-append -isysroot ${developer_dir}/SDKs/MacOSX10.6.sdk
- }
- }
-}
+require_active_variants gnuplot wxwidgets
+# TODO: only for 2.8 & not tested yet
+#if {${wxWidgets.sdk} != ""} {
+# configure.cxxflags-append -isysroot ${wxWidgets.sdk}
+#}
+
post-patch {
reinplace "s|@@PREFIX@@|${prefix}|" ${worksrcpath}/src/main.cpp
}
depends_skip_archcheck maxima
-supported_archs i386 ppc
-configure.args --enable-dnd --enable-printing --enable-unicode-glyphs
+configure.args --enable-dnd --enable-printing --enable-unicode-glyphs --with-wxdir=${wxWidgets.wxdir}
build.target-append wxMaxima.app
-if {[catch {registry_active wxwidgets-devel}] == 0} {
- default_variants +wxwidgets_devel
-}
-
-if {[catch {registry_active wxwidgets30}] == 0} {
- default_variants +wxwidgets30
-}
-
-if { ![variant_isset wxwidgets_devel] } {
- default_variants +wxwidgets30
-}
-
destroot {
xinstall -m 755 -d ${destroot}${applications_dir}
file copy ${worksrcpath}/wxMaxima.app ${destroot}${applications_dir}
@@ -73,24 +61,4 @@
}
}
-variant wxwidgets_devel description {Build against wxWidgets-devel rather than wxWidgets} {
- # if the user has installed wxWidgets-devel, force using that
- # (from gobject-introspection)
- depends_lib-delete port:wxWidgets
- depends_lib-append port:wxWidgets-devel
- require_active_variants gnuplot wxwidgets_devel
-
- supported_archs i386 x86_64
-}
-
-variant wxwidgets30 description {Build against wxWidgets30 rather than wxWidgets} {
- # if the user has installed wxWidgets30, force using that
- # (from gobject-introspection)
- depends_lib-delete port:wxWidgets
- depends_lib-append port:wxWidgets30
-
- require_active_variants gnuplot wxwidgets30
-
- supported_archs i386 x86_64
-}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130813/8c01f5d7/attachment.html>
More information about the macports-changes
mailing list