Ticket #40768: saga-wxwidgets-portgroup.diff

File saga-wxwidgets-portgroup.diff, 2.4 KB (added by mojca (Mojca Miklavec), 11 years ago)
  • Portfile

     
    22# $Id$
    33
    44PortSystem          1.0
     5PortGroup           wxWidgets 1.0
    56
    67name                saga
    78categories          gis
     
    2728checksums           rmd160  558332c890049c8c05b802aa2e413be2314697df \
    2829                    sha256  eb4cfd9e1028a52d272bc2fe878ba4971b70fb79e6f73234e4c1519586a58a6c
    2930
    30 patchfiles          patch-configure_in.diff\
     31patchfiles          patch-configure_in.diff \
    3132                    patch-saga_cmd_cpp.diff
    3233
     34wxWidgets.use       wxWidgets-3.0
     35
    3336depends_build       port:autoconf \
    3437                    port:automake \
    3538                    port:libtool
    3639
    37 depends_lib         port:wxWidgets-3.0\
    38                     port:geos\
    39                     port:gdal\
    40                     port:proj47\
    41                     port:jasper\
    42                     port:fftw-3\
     40depends_lib         port:${wxWidgets.port} \
     41                    port:geos \
     42                    port:gdal \
     43                    port:proj47 \
     44                    port:jasper \
     45                    port:fftw-3 \
    4346                    port:unixodbc
    4447
    45 set wxver     3.0
    46 set wx30frmwk ${frameworks_dir}/wxWidgets.framework/Versions/wxWidgets/${wxver}
     48post-patch  {
     49    reinplace -E "s|wx-config|${wxWidgets.wxconfig}|" ${worksrcpath}/configure.in
    4750
    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    }
    5055}
    5156
    5257use_autoreconf              yes
     
    5459
    5560configure.args              --disable-openmp
    5661configure.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}
    5962
    6063variant python27 {
    6164    depends_lib-append      port:python27\
     
    6366    configure.args-append   --enable-python
    6467}
    6568
    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    
    7369
    7470livecheck.type              regex
    7571livecheck.url               ${master_sites}