Ticket #36157: port-wxmaxima.diff
File port-wxmaxima.diff, 1.7 KB (added by anddam (Andrea D'Amore), 12 years ago) |
---|
-
Portfile
23 23 depends_lib port:libiconv \ 24 24 path:lib/pkgconfig/sdl.pc:libsdl \ 25 25 port:libxml2 \ 26 bin:wx-config:wxWidgets \26 port:wxWidgets \ 27 27 port:zlib 28 28 depends_run port:maxima 29 29 30 30 platform darwin 11 { 31 if {[vercmp $xcodeversion 4.3] >= 0} { 31 if {[vercmp $xcodeversion 4.4] >= 0} { 32 configure.cxxflags-append -isysroot ${developer_dir}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk 33 } elseif {[vercmp $xcodeversion 4.3] >= 0} { 32 34 configure.cxxflags-append -isysroot ${developer_dir}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk 33 35 } else { 34 36 configure.cxxflags-append -isysroot ${developer_dir}/SDKs/MacOSX10.6.sdk … … 44 46 configure.args --enable-dnd --enable-printing --enable-unicode-glyphs 45 47 build.target-append wxMaxima.app 46 48 49 if {[catch {registry_active wxwidgets-devel}] == 0} { 50 default_variants +wxwidgets_devel 51 } 52 47 53 destroot { 48 54 xinstall -m 755 -d ${destroot}${applications_dir} 49 55 file copy ${worksrcpath}/wxMaxima.app ${destroot}${applications_dir} … … 54 60 xinstall -m 644 ${worksrcpath}/${f} ${destroot}${docPath} 55 61 } 56 62 } 63 64 variant wxwidgets_devel description {Build against wxWidgets-devel rather than wxWidgets} { 65 # if the user has installed wxWidgets-devel, force using that 66 # (from gobject-introspection) 67 depends_lib-delete port:wxWidgets 68 depends_lib-append port:wxWidgets-devel 69 supported_archs i386 x86_64 70 }