[oe-commits] Martin Jansa : mupdf: fix build on systems without all dependencies already installed ( use -native stuff)
git version control
git at git.openembedded.org
Fri Aug 20 07:22:06 UTC 2010
Module: openembedded.git
Branch: org.openembedded.dev
Commit: 74f4939c8f85b4d2055a552661bfd984cd3862fd
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=74f4939c8f85b4d2055a552661bfd984cd3862fd
Author: Martin Jansa <Martin.Jansa at gmail.com>
Date: Mon Jul 19 13:16:00 2010 +0200
mupdf: fix build on systems without all dependencies already installed (use -native stuff)
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
recipes/mupdf/mupdf_0.6.bb | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/recipes/mupdf/mupdf_0.6.bb b/recipes/mupdf/mupdf_0.6.bb
index bcd8534..21d435c 100644
--- a/recipes/mupdf/mupdf_0.6.bb
+++ b/recipes/mupdf/mupdf_0.6.bb
@@ -4,7 +4,7 @@ SECTION = "x11/applications"
LICENSE = "GPLv3"
PR = "r0"
-DEPENDS = "openjpeg jbig2dec jpeg zlib virtual/libx11 libxext freetype"
+DEPENDS = "openjpeg-native jbig2dec-native jpeg-native freetype-native libpng-native openjpeg jbig2dec jpeg zlib virtual/libx11 libxext freetype"
SRC_URI = "http://mupdf.com/download/source/${PN}-${PV}-source.tar.gz \
file://mupdf_fix_endianness.patch \
@@ -35,10 +35,12 @@ do_compile() {
# mupdf uses couple of tools for code generation during build process
# so we need to compile them first with host compiler
unset CFLAGS LDFLAGS
+ export PKG_CONFIG_PATH=${STAGING_LIBDIR_NATIVE}/pkgconfig
oe_runmake build/debug
- oe_runmake build/debug/cmapdump LD=${BUILD_CC} CC=${BUILD_CC}
- oe_runmake build/debug/fontdump LD=${BUILD_CC} CC=${BUILD_CC}
+ oe_runmake build/debug/cmapdump LD="${BUILD_CC} -L${STAGING_LIBDIR_NATIVE} -Wl,-rpath,${STAGING_LIBDIR_NATIVE}" CC=${BUILD_CC}
+ oe_runmake build/debug/fontdump LD="${BUILD_CC} -L${STAGING_LIBDIR_NATIVE} -Wl,-rpath,${STAGING_LIBDIR_NATIVE}" CC=${BUILD_CC}
+ export PKG_CONFIG_PATH=${STAGING_LIBDIR}/pkgconfig
# ...and then we fire 'make', feeding proper
# cross-compilation flags through Makerules file
echo "CFLAGS += ${CFLAGS}" >> ${S}/Makerules
More information about the Openembedded-commits
mailing list