mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
227 lines
7.5 KiB
Bash
227 lines
7.5 KiB
Bash
SUMMARY="A full office productivity suite"
|
||
DESCRIPTION="LibreOffice is a powerful office suite – its clean interface and \
|
||
feature-rich tools help you unleash your creativity and enhance your \
|
||
productivity.
|
||
LibreOffice includes several applications that make it the most powerful Free \
|
||
and Open Source office suite on the market."
|
||
HOMEPAGE="https://www.libreoffice.org/"
|
||
COPYRIGHT="2000, 2010 Oracle and/or its affiliates.
|
||
2000, 2010 LibreOffice contributors and/or their affiliates."
|
||
LICENSE="MPL v2.0"
|
||
REVISION="1"
|
||
COMMIT="08c2927e0587428d2c242ffcdf142d39f23df092"
|
||
SOURCE_URI="https://github.com/LibreOffice/core/archive/$COMMIT.tar.gz"
|
||
CHECKSUM_SHA256="7f947f57743d817205b3f4f7494e21b39bdd9e2d52543c4fbc9538a99870488a"
|
||
SOURCE_DIR="core-$COMMIT"
|
||
PATCHES="libreoffice-$portVersion.patchset"
|
||
ADDITIONAL_FILES="libreoffice.rdef.in"
|
||
|
||
ARCHITECTURES="!x86_gcc2 ?x86_64"
|
||
SECONDARY_ARCHITECTURES="?x86"
|
||
|
||
PROVIDES="
|
||
libreoffice$secondaryArchSuffix = $portVersion
|
||
app:LibreOffice$secondaryArchSuffix = $portVersion
|
||
cmd:libreoffice$secondaryArchSuffix = $portVersion
|
||
cmd:lobase$secondaryArchSuffix = $portVersion
|
||
cmd:localc$secondaryArchSuffix = $portVersion
|
||
cmd:lodraw$secondaryArchSuffix = $portVersion
|
||
cmd:loffice$secondaryArchSuffix = $portVersion
|
||
cmd:lofromtemplate$secondaryArchSuffix = $portVersion
|
||
cmd:loimpress$secondaryArchSuffix = $portVersion
|
||
cmd:lomath$secondaryArchSuffix = $portVersion
|
||
cmd:loweb$secondaryArchSuffix = $portVersion
|
||
cmd:lowriter$secondaryArchSuffix = $portVersion
|
||
cmd:soffice$secondaryArchSuffix = $portVersion
|
||
cmd:unopkg$secondaryArchSuffix = $portVersion
|
||
"
|
||
REQUIRES="
|
||
haiku$secondaryArchSuffix
|
||
lib:libabw_0.1$secondaryArchSuffix
|
||
lib:libboost_date_time$secondaryArchSuffix
|
||
lib:libboost_filesystem$secondaryArchSuffix
|
||
lib:libboost_iostreams$secondaryArchSuffix
|
||
lib:libboost_locale$secondaryArchSuffix
|
||
lib:libcairo$secondaryArchSuffix
|
||
lib:libcdr_0.1$secondaryArchSuffix
|
||
lib:libclucene_core$secondaryArchSuffix
|
||
lib:libcmis_0.5$secondaryArchSuffix
|
||
lib:libcrypto$secondaryArchSuffix
|
||
lib:libcurl$secondaryArchSuffix
|
||
lib:libe_book_0.1$secondaryArchSuffix
|
||
lib:libepoxy$secondaryArchSuffix
|
||
lib:libetonyek_0.1$secondaryArchSuffix
|
||
lib:libexpat$secondaryArchSuffix
|
||
lib:libexslt$secondaryArchSuffix
|
||
lib:libfontconfig$secondaryArchSuffix
|
||
lib:libfreehand_0.1$secondaryArchSuffix
|
||
lib:libfreetype$secondaryArchSuffix
|
||
lib:libglib_2.0$secondaryArchSuffix
|
||
lib:libgraphite2$secondaryArchSuffix
|
||
lib:libharfbuzz_icu$secondaryArchSuffix
|
||
lib:libharfbuzz$secondaryArchSuffix
|
||
lib:libhunspell_1.6$secondaryArchSuffix
|
||
lib:libhyphen$secondaryArchSuffix
|
||
lib:libicui18n$secondaryArchSuffix
|
||
lib:libicuuc$secondaryArchSuffix
|
||
lib:libintl$secondaryArchSuffix
|
||
lib:libjpeg$secondaryArchSuffix
|
||
lib:liblangtag$secondaryArchSuffix
|
||
lib:liblber_2.4$secondaryArchSuffix
|
||
lib:liblcms2$secondaryArchSuffix
|
||
lib:libldap_2.4$secondaryArchSuffix
|
||
lib:liblpsolve55$secondaryArchSuffix
|
||
lib:libmspub_0.1$secondaryArchSuffix
|
||
lib:libmwaw_0.3$secondaryArchSuffix
|
||
lib:libneon$secondaryArchSuffix
|
||
lib:libnspr4$secondaryArchSuffix
|
||
lib:libnss3$secondaryArchSuffix
|
||
lib:libnssutil3$secondaryArchSuffix
|
||
lib:libodfgen_0.1$secondaryArchSuffix
|
||
lib:liborcus_0.13$secondaryArchSuffix
|
||
lib:libpagemaker_0.0$secondaryArchSuffix
|
||
lib:libplc4$secondaryArchSuffix
|
||
lib:libplds4$secondaryArchSuffix
|
||
lib:libpng16$secondaryArchSuffix
|
||
lib:libpoppler$secondaryArchSuffix
|
||
lib:libQt5Core$secondaryArchSuffix
|
||
lib:libQt5Gui$secondaryArchSuffix
|
||
lib:libQt5Network$secondaryArchSuffix
|
||
lib:libQt5Widgets$secondaryArchSuffix
|
||
lib:libqxp_0.0$secondaryArchSuffix
|
||
lib:libraptor2$secondaryArchSuffix
|
||
lib:librdf$secondaryArchSuffix
|
||
lib:librevenge_0.0$secondaryArchSuffix
|
||
lib:librevenge_stream_0.0$secondaryArchSuffix
|
||
lib:libsmime3$secondaryArchSuffix
|
||
lib:libssl$secondaryArchSuffix
|
||
lib:libssl3$secondaryArchSuffix
|
||
lib:libssp$secondaryArchSuffix
|
||
lib:libstaroffice_0.0$secondaryArchSuffix
|
||
lib:libvisio_0.1$secondaryArchSuffix
|
||
lib:libwpd_0.10$secondaryArchSuffix
|
||
lib:libwpg_0.3$secondaryArchSuffix
|
||
lib:libwps_0.4$secondaryArchSuffix
|
||
lib:libxml2$secondaryArchSuffix
|
||
lib:libxslt$secondaryArchSuffix
|
||
lib:libz$secondaryArchSuffix
|
||
lib:libzmf_0.0$secondaryArchSuffix
|
||
"
|
||
|
||
BUILD_REQUIRES="
|
||
haiku${secondaryArchSuffix}_devel
|
||
glm${secondaryArchSuffix}_devel
|
||
devel:libabw_0.1$secondaryArchSuffix
|
||
devel:libcdr_0.1$secondaryArchSuffix
|
||
devel:libclucene_contribs_lib$secondaryArchSuffix
|
||
devel:libclucene_core$secondaryArchSuffix
|
||
devel:libcmis_0.5$secondaryArchSuffix
|
||
devel:libcppunit$secondaryArchSuffix
|
||
devel:libcurl$secondaryArchSuffix
|
||
devel:libe_book_0.1$secondaryArchSuffix
|
||
devel:libepoxy$secondaryArchSuffix
|
||
devel:libepubgen_0.0$secondaryArchSuffix
|
||
devel:libetonyek_0.1$secondaryArchSuffix
|
||
devel:libexpat$secondaryArchSuffix
|
||
devel:libfreehand_0.1$secondaryArchSuffix
|
||
devel:libglew$secondaryArchSuffix
|
||
devel:libgraphite2$secondaryArchSuffix
|
||
devel:libharfbuzz_icu$secondaryArchSuffix
|
||
devel:libhunspell_1.6$secondaryArchSuffix
|
||
devel:libhyphen$secondaryArchSuffix
|
||
devel:libicuuc$secondaryArchSuffix
|
||
devel:libjpeg$secondaryArchSuffix
|
||
devel:liblangtag$secondaryArchSuffix
|
||
devel:liblcms2$secondaryArchSuffix
|
||
devel:libldap$secondaryArchSuffix
|
||
devel:liblpsolve55$secondaryArchSuffix
|
||
devel:libmspub_0.1$secondaryArchSuffix
|
||
devel:libmwaw_0.3$secondaryArchSuffix
|
||
devel:libneon$secondaryArchSuffix
|
||
devel:libnss3$secondaryArchSuffix
|
||
devel:libodfgen_0.1$secondaryArchSuffix
|
||
devel:liborcus_0.13$secondaryArchSuffix
|
||
devel:libpagemaker_0.0$secondaryArchSuffix
|
||
devel:libpoppler$secondaryArchSuffix
|
||
devel:libqxp_0.0$secondaryArchSuffix
|
||
devel:libraptor2$secondaryArchSuffix
|
||
devel:librdf$secondaryArchSuffix
|
||
devel:librevenge_0.0$secondaryArchSuffix
|
||
devel:libsane$secondaryArchSuffix
|
||
devel:libssl$secondaryArchSuffix
|
||
devel:libstaroffice_0.0$secondaryArchSuffix
|
||
devel:libvisio_0.1$secondaryArchSuffix
|
||
devel:libwpd_0.10$secondaryArchSuffix
|
||
devel:libwpg_0.3$secondaryArchSuffix
|
||
devel:libwps_0.4$secondaryArchSuffix
|
||
devel:libxslt$secondaryArchSuffix
|
||
devel:libz$secondaryArchSuffix
|
||
devel:libzmf_0.0$secondaryArchSuffix
|
||
devel:mdds$secondaryArchSuffix
|
||
"
|
||
BUILD_PREREQUIRES="
|
||
cmd:aclocal
|
||
cmd:autoconf
|
||
cmd:bison
|
||
cmd:find
|
||
cmd:flex
|
||
cmd:gcc$secondaryArchSuffix
|
||
cmd:genbrk
|
||
cmd:genccode
|
||
cmd:gencmn
|
||
cmd:git
|
||
cmd:gperf
|
||
cmd:grep
|
||
cmd:ld$secondaryArchSuffix
|
||
cmd:make
|
||
cmd:patch
|
||
cmd:perl
|
||
cmd:pkg_config$secondaryArchSuffix
|
||
cmd:python2.7
|
||
cmd:python3.6
|
||
cmd:which
|
||
cmd:xz
|
||
cmd:zip
|
||
"
|
||
BUILD()
|
||
{
|
||
# rename $sourceDir to something shorter, otherwise build fails with
|
||
# execv: Argument too big /sources/core/sw/Library_sw.mk:20
|
||
cd .. ; mv $sourceDir core
|
||
ln -s core core-$COMMIT; cd core
|
||
|
||
runConfigure ./autogen.sh --with-distro=LibreOfficeHaiku --enable-qt5
|
||
# --disable-fetch-external
|
||
|
||
make $jobArgs build-nocheck -k # DESTDIR=$appsDir/LibreOffice
|
||
}
|
||
|
||
INSTALL()
|
||
{
|
||
mkdir -p $appsDir/LibreOffice
|
||
cp -r ../core/instdir/* $appsDir/LibreOffice
|
||
cd $appsDir/LibreOffice/program
|
||
mv soffice.bin LibreOffice
|
||
|
||
# workaround for missing lib
|
||
cd $appsDir/LibreOffice/program
|
||
rm -f libvclplug_kde4lo.so
|
||
ln -s libvclplug_qt5lo.so libvclplug_kde4lo.so
|
||
|
||
local APP_SIGNATURE="application/x-vnd.LibreOffice"
|
||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
||
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
||
local LONG_INFO="$SUMMARY"
|
||
sed \
|
||
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
||
-e "s|@MAJOR@|$MAJOR|" \
|
||
-e "s|@MIDDLE@|$MIDDLE|" \
|
||
-e "s|@MINOR@|$MINOR|" \
|
||
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
||
$portDir/additional-files/libreoffice.rdef.in > libreoffice.rdef
|
||
|
||
addResourcesToBinaries libreoffice.rdef $appsDir/LibreOffice/program/LibreOffice
|
||
addAppDeskbarSymlink $appsDir/LibreOffice/program/LibreOffice
|
||
}
|