On 2013/04/23 18:23, Juan Francisco Cantero Hurtado wrote: > The file plist.c requires the header "plist/plist.h" from > WRKSRC/include. The port has "LOCALBASE/include" in CFLAGS, so gcc picks > "plist/plist.h" from /usr/local. > > The patch bellow fixes the order of the include dirs.
Don't hardcode /usr/local, use ${LOCALBASE} or ${PREFIX} as appropriate (in this case, localbase, because it refers to "already installed packages" rather than "where this package will be installed") > DISTNAME = libplist-${VERSION} > +REVISION = 0 probably not strictly necessary, but doesn't hurt. > -CONFIGURE_ARGS = -DCMAKE_C_FLAGS="${CFLAGS} -I${LOCALBASE}/include > -pthread" > +CONFIGURE_ARGS = -DCMAKE_C_FLAGS="${CFLAGS} -pthread" mid update so can't check now, but can you just use this instead? CONFIGURE_ARGS = -DCMAKE_C_FLAGS="${CFLAGS} -I. -I${LOCALBASE}/include -pthread"