Ticket #15451: Portfile-rrdtool.diff

File Portfile-rrdtool.diff, 966 bytes (added by hvdwolf@…, 16 years ago)

patch for the Cairo Portfile

  • Portfile

    old new  
    135135    configure {
    136136        foreach arch ${my_universal_archs} {
    137137            set my_arch_flag "-arch ${arch}"
    138             set my_cflags "${configure.cflags} -isysroot ${sysroot} ${my_arch_flag}"
     138            set my_cflags "${configure.cflags} -isysroot ${sysroot} ${my_arch_flag} -I${prefix}/include -L{prefix}/lib"
    139139            set my_ldflags "${configure.ldflags} ${my_arch_flag}"
    140             system "cd ${workpath}/${arch} && CFLAGS=\"${my_cflags}\" CXXFLAGS=\"${my_cflags}\" LDFLAGS=\"${my_ldflags}\" ${configure.cmd} ${configure.pre_args} ${configure.args}"
     140            set pcp "{prefix}/lib/pkgconfig"
     141            system "cd ${workpath}/${arch} && CFLAGS=\"${my_cflags}\" CXXFLAGS=\"${my_cflags}\" LDFLAGS=\"${my_ldflags}\" PKG_CONFIG_PATH=\"${pcp}\" ${configure.cmd} ${configure.pre_args} ${configure.args}"
    141142        }
    142143    }
    143144