options (CFLAGS...) for make in port without autoconf/cmake

Lawrence Velázquez larryv at macports.org
Wed Nov 26 13:22:03 PST 2014


On Nov 26, 2014, at 4:20 PM, Lawrence Velázquez <larryv at macports.org> wrote:

> The contents of `build.args` are passed to `build.cmd` as command-line arguments. An example, from llvm-gcc42:

Pardon, copypasta error. This is what I meant to paste. Same idea, though.

build.args-append \
    CC="${configure.cc} -pipe -std=gnu89" \
    CXX="${configure.cxx} -pipe" \
    PREFIX="${prefix}" \
    SRCROOT="${srcroot}" \
    OBJROOT="${objroot}" \
    SYMROOT="${symroot}" \
    DSTROOT="${destroot}" \
    RC_NONARCH_CFLAGS="-pipe -std=gnu89" \
    RC_OS="macos" \
    RC_ARCHS="[get_canonical_archs]" \
    RC_ProjectSourceVersion="[lindex [split ${version} .] 0]" \
    RC_ProjectSourceSubversion="[lindex [split ${version} .] 1]"

vq


More information about the macports-users mailing list