It's not a big deal here as we disable most deps, but it avoids
"command not found" errors when cross-compiling, and confusing
checkers looking for bad pkg-config invocation.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
RDEPEND="dev-db/sqlite"
DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
S=${WORKDIR}/${P}-7a4fdad
sed -i \
-e '/^CFLAGS =/{s:=:+=:;s:-O2 -finline-functions:${CPPFLAGS}:}' \
+ -e 's:pkg-config:$(PKG_CONFIG):' \
Makefile || die
}
AR="$(tc-getAR)" \
CC="$(tc-getCC)" \
LD='$(CC)' \
+ PKG_CONFIG="$(tc-getPKG_CONFIG)" \
HAVE_GTK2=no \
HAVE_LLVM=no \
HAVE_LIBXML=no \
RDEPEND="dev-db/sqlite"
DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
src_prepare() {
default
sed -i \
-e '/^CFLAGS =/{s:=:+=:;s:-O2 -finline-functions:${CPPFLAGS}:}' \
+ -e 's:pkg-config:$(PKG_CONFIG):' \
Makefile || die
}
AR="$(tc-getAR)" \
CC="$(tc-getCC)" \
LD='$(CC)' \
+ PKG_CONFIG="$(tc-getPKG_CONFIG)" \
HAVE_GTK2=no \
HAVE_LLVM=no \
HAVE_LIBXML=no \