180 lines
4.7 KiB
BlitzBasic
180 lines
4.7 KiB
BlitzBasic
require ${BPN}.inc
|
|
|
|
FILESEXTRAPATHS =. "${FILE_DIRNAME}/${PN}:"
|
|
|
|
inherit native
|
|
|
|
DEPENDS += " \
|
|
curl-native \
|
|
gconf-native \
|
|
libpng-native \
|
|
jpeg-native \
|
|
libxml2-native \
|
|
harfbuzz-native \
|
|
boost-native \
|
|
icu-native \
|
|
expat-native \
|
|
lcms-native \
|
|
nss-native \
|
|
cppunit-native \
|
|
libabw-native \
|
|
libcdr-native \
|
|
libe-book-native \
|
|
libfreehand-native \
|
|
hunspell-native \
|
|
mythes-native \
|
|
clucene-core-native \
|
|
libcmis-native \
|
|
mdds-native \
|
|
libpagemaker-native \
|
|
glm-native \
|
|
libetonyek-native \
|
|
vigra-native \
|
|
libvisio-native \
|
|
libexttextcat-native \
|
|
hyphen-native \
|
|
"
|
|
|
|
SRC_URI += " \
|
|
file://0001-saxparser-output-calling-parametrs-for-debug.patch \
|
|
file://0002-cppumaker-output-more-detailed-error-message.patch \
|
|
file://0003-cppuhelper-defaultbootstrap-output-debug-information.patch \
|
|
file://0004-fix-build-for-x-less-cairp-less-build.patch \
|
|
file://0005-add-gengal-debug-information.patch \
|
|
file://0006-gengal-fix-path-to-redirectrc.patch \
|
|
"
|
|
|
|
EXTRA_OECONF += " \
|
|
--enable-verbose \
|
|
\
|
|
--enable-python=system \
|
|
--without-x \
|
|
--without-java \
|
|
\
|
|
--with-system-curl \
|
|
--with-system-libpng \
|
|
--with-system-jpeg \
|
|
--with-system-libxml \
|
|
--with-system-harfbuzz \
|
|
--with-system-boost \
|
|
--with-system-icu \
|
|
--with-system-expat \
|
|
--with-system-lcms2 \
|
|
--with-system-nss \
|
|
--with-system-cppunit \
|
|
--with-system-libabw \
|
|
--with-system-libcdr \
|
|
--with-system-libebook \
|
|
--with-system-libfreehand \
|
|
--with-system-hunspell \
|
|
--with-system-mythes \
|
|
--with-system-clucene \
|
|
--with-system-libcmis \
|
|
--with-system-mdds \
|
|
--with-system-libpagemaker \
|
|
--with-system-glm \
|
|
--with-system-libetonyek \
|
|
--with-system-vigra \
|
|
--with-system-libvisio \
|
|
--with-system-libexttextcat \
|
|
--with-system-altlinuxhyph \
|
|
\
|
|
--without-boost-date-time \
|
|
--without-boost-iostreams \
|
|
--without-boost-system \
|
|
--disable-postgresql-sdbc \
|
|
--disable-lotuswordpro \
|
|
--disable-firebird-sdbc \
|
|
--disable-liblangtag \
|
|
--disable-openssl \
|
|
--disable-gltf \
|
|
--disable-collada \
|
|
--disable-scripting-beanshell \
|
|
--disable-scripting-javascript \
|
|
--disable-graphite \
|
|
--disable-pdfimport \
|
|
--disable-orcus \
|
|
--disable-coinmp \
|
|
"
|
|
|
|
do_configure() {
|
|
olddir=`pwd`
|
|
cd ${S}
|
|
aclocal --system-acdir=${B}/aclocal-copy/ -I ${S}/m4
|
|
gnu-configize
|
|
autoconf
|
|
cd $olddir
|
|
PYTHON_CFLAGS=-I${STAGING_INCDIR_NATIVE}/${PYTHON_DIR} PYTHON_LIBS="-L${STAGING_LIBDIR_NATIVE} -lpython${PYTHON_BASEVERSION}" oe_runconf
|
|
}
|
|
|
|
# for debugging - we can as we're native
|
|
CXXFLAGS += "-g -O0 -DSAL_LOG_INFO -DSAL_LOG_WARN"
|
|
LDFLAGS += "-g"
|
|
|
|
do_compile() {
|
|
# inspired by ${B}/Makefile
|
|
BUILDDIR=${B} oe_runmake -f ${S}/Makefile.gbuild build-tools
|
|
# gengal was not designed for build on its own - we need to add dependencies
|
|
BUILDDIR=${B} oe_runmake Executable_gengal
|
|
BUILDDIR=${B} oe_runmake Executable_cfgex
|
|
BUILDDIR=${B} oe_runmake Library_ucb1
|
|
BUILDDIR=${B} oe_runmake Library_configmgr
|
|
BUILDDIR=${B} oe_runmake Library_fwk
|
|
BUILDDIR=${B} oe_runmake Library_i18npool
|
|
BUILDDIR=${B} oe_runmake Library_pyuno
|
|
|
|
# BUILDDIR=${B} oe_runmake Module_external
|
|
}
|
|
|
|
LOBUILDTOOLS = " \
|
|
bestreversemap \
|
|
cfgex \
|
|
cpp \
|
|
gencoll_rule \
|
|
genconv_dict \
|
|
genindex_data \
|
|
idxdict \
|
|
propex \
|
|
rsc \
|
|
saxparser \
|
|
svidl \
|
|
transex3 \
|
|
ulfex \
|
|
uiex \
|
|
unoidl-check \
|
|
unoidl-write \
|
|
xrmex \
|
|
"
|
|
|
|
do_install() {
|
|
install -d ${D}/${bindir}
|
|
for name in ${LOBUILDTOOLS} ; do
|
|
install "${B}/workdir/LinkTarget/Executable/$name" ${D}/${bindir}
|
|
done
|
|
|
|
# icu creates a gendict. To avoid conflicts rename in sysroot
|
|
install "${B}/workdir/LinkTarget/Executable/gendict" ${D}/${bindir}/gendict_libre
|
|
|
|
# install sdk binaries
|
|
install ${B}/instdir/sdk/bin/* ${D}/${bindir}
|
|
|
|
# install libraries and defaults
|
|
install -d ${D}/${libdir}
|
|
for name in `find ${B}/instdir/program -type f` ; do
|
|
install "$name" ${D}/${libdir}
|
|
done
|
|
|
|
# move saxparser.rdb to libdir - we'll need it for cross building
|
|
cp -rf ${B}/workdir/Rdb/saxparser.rdb ${D}/${libdir}
|
|
# fix library path - otherwise cross lib is pulled for native saxparse
|
|
sed -i 's:LO_LIB_DIR:URE_INTERNAL_LIB_DIR:g' ${D}/${libdir}/saxparser.rdb
|
|
|
|
# gengal script and binary to expected location
|
|
install ${S}/svx/source/gengal/gengal.sh ${D}/${bindir}/gengal
|
|
mv ${D}/${libdir}/gengal.bin ${D}/${bindir}
|
|
|
|
# unoconv
|
|
install -d ${D}${bindir}
|
|
install -m 0755 ${WORKDIR}/git/unoconv/unoconv ${D}/${bindir}
|
|
}
|