Ticket #34346: pgplot_aqt_framework.diff

File pgplot_aqt_framework.diff, 1.1 KB (added by mojca (Mojca Miklavec), 12 years ago)

Accompanying change for pgplot (enables replacing libraries & headers with framework)

  • Portfile

    diff --git a/Portfile b/Portfile
    index 3340d3b..e325d26 100644
    a b pre-configure { 
    9595    }
    9696
    9797    if {[variant_isset aquaterm]} {
    98         set aqtLibs "-laquaterm -Wl,-framework -Wl,Foundation"
     98        set aqtLibs "-Wl,-framework -Wl,AquaTerm -Wl,-framework -Wl,Foundation -F${frameworks_dir}"
    9999    } else {
    100100        set aqtLibs ""
    101101    }
    102102
    103103    # Create configuration file.
    104104    #    For a description of options, see ${worksrcpath}/sys_linux/g77_gcc.conf
    105     lappend options XINCL           "${configure.cppflags}"
     105    lappend options XINCL           "${configure.cppflags} -F${frameworks_dir}"
    106106    lappend options MOTIF_INCL      ""
    107107    lappend options ATHENA_INCL     ""
    108108    lappend options TK_INCL         ""
    pre-configure { 
    133133
    134134    file mkdir ${worksrcpath}/sys_darwin
    135135    foreach {var val} ${options} {
    136         system "/bin/echo \"   ${var}=\\\"${val}\\\"\" >> ${worksrcpath}/sys_darwin/marcports.conf"
     136        system "/bin/echo \"   ${var}=\\\"${val}\\\"\" >> ${worksrcpath}/sys_darwin/macports.conf"
    137137    }
    138138
    139139    # Create optional routine which makemake will find and compile.