Ticket #40768: saga-wxwidgets-portgroup.diff
File saga-wxwidgets-portgroup.diff, 2.4 KB (added by mojca (Mojca Miklavec), 11 years ago) |
---|
-
Portfile
2 2 # $Id$ 3 3 4 4 PortSystem 1.0 5 PortGroup wxWidgets 1.0 5 6 6 7 name saga 7 8 categories gis … … 27 28 checksums rmd160 558332c890049c8c05b802aa2e413be2314697df \ 28 29 sha256 eb4cfd9e1028a52d272bc2fe878ba4971b70fb79e6f73234e4c1519586a58a6c 29 30 30 patchfiles patch-configure_in.diff \31 patchfiles patch-configure_in.diff \ 31 32 patch-saga_cmd_cpp.diff 32 33 34 wxWidgets.use wxWidgets-3.0 35 33 36 depends_build port:autoconf \ 34 37 port:automake \ 35 38 port:libtool 36 39 37 depends_lib port: wxWidgets-3.0\38 port:geos \39 port:gdal \40 port:proj47 \41 port:jasper \42 port:fftw-3 \40 depends_lib port:${wxWidgets.port} \ 41 port:geos \ 42 port:gdal \ 43 port:proj47 \ 44 port:jasper \ 45 port:fftw-3 \ 43 46 port:unixodbc 44 47 45 set wxver 3.0 46 set wx30frmwk ${frameworks_dir}/wxWidgets.framework/Versions/wxWidgets/${wxver} 48 post-patch { 49 reinplace -E "s|wx-config|${wxWidgets.wxconfig}|" ${worksrcpath}/configure.in 47 50 48 post-patch { 49 reinplace -E "s|wx-config|${wx30frmwk}/bin/wx-config|" ${worksrcpath}/configure.in 51 set mkfiles [exec find ${worksrcpath} -type f -name Makefile.am] 52 foreach makefile ${mkfiles} { 53 reinplace -E "s|wx-config|${wxWidgets.wxconfig}|" ${makefile} 54 } 50 55 } 51 56 52 57 use_autoreconf yes … … 54 59 55 60 configure.args --disable-openmp 56 61 configure.cppflags-append -I${prefix}/lib/proj47/include 57 configure.cppflags-append -I${wx30frmwk}/include/wx-${wxver}58 configure.cppflags-append -I${wx30frmwk}/lib/wx/include/osx_cocoa-unicode-${wxver}59 62 60 63 variant python27 { 61 64 depends_lib-append port:python27\ … … 63 66 configure.args-append --enable-python 64 67 } 65 68 66 pre-build {67 set mkfiles [exec find ${worksrcpath} -type f -name Makefile]68 foreach makefile ${mkfiles} {69 reinplace -E "s|wx-config|${wx30frmwk}/bin/wx-config|" ${makefile}70 }71 }72 73 69 74 70 livecheck.type regex 75 71 livecheck.url ${master_sites}