mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-29 11:38:52 +02:00
117 lines
3.0 KiB
Bash
117 lines
3.0 KiB
Bash
SUMMARY="A library of document-centric objects and utilities"
|
|
DESCRIPTION="GOffice is a library of document-centric objects and utilities building on top of \
|
|
GLib and Gtk+ and used by software such as Gnumeric."
|
|
HOMEPAGE="https://gitlab.gnome.org/GNOME/goffice"
|
|
COPYRIGHT="Jody Goldberg
|
|
Morten Welinder
|
|
Emmanuel Pacaud
|
|
Jean Brefort
|
|
Andreas J. Guelzow"
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="1"
|
|
SOURCE_URI="https://gitlab.gnome.org/GNOME/goffice/-/archive/GOFFICE_${portVersion//./_}/goffice-GOFFICE_${portVersion//./_}.tar.bz2"
|
|
CHECKSUM_SHA256="241e467d74c3eabcaa6d8f61ed4a0821b947ee103a13389bb6e7603e9281a91c"
|
|
SOURCE_DIR="goffice-GOFFICE_${portVersion//./_}"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="10.0.60"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
apiVer="${portVersion%.*}"
|
|
|
|
PROVIDES="
|
|
goffice$secondaryArchSuffix = $portVersion
|
|
lib:libgoffice_$apiVer$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libatk_1.0$secondaryArchSuffix
|
|
lib:libcairo$secondaryArchSuffix
|
|
lib:libcairo_gobject$secondaryArchSuffix
|
|
lib:libgdk_3$secondaryArchSuffix
|
|
lib:libgdk_pixbuf_2.0$secondaryArchSuffix
|
|
lib:libgio_2.0$secondaryArchSuffix
|
|
lib:libglib_2.0$secondaryArchSuffix
|
|
lib:libgmodule_2.0$secondaryArchSuffix
|
|
lib:libgobject_2.0$secondaryArchSuffix
|
|
lib:libgsf_1$secondaryArchSuffix
|
|
lib:libgtk_3$secondaryArchSuffix
|
|
lib:libharfbuzz$secondaryArchSuffix
|
|
lib:libintl$secondaryArchSuffix
|
|
lib:libpango_1.0$secondaryArchSuffix
|
|
lib:libpangocairo_1.0$secondaryArchSuffix
|
|
lib:librsvg_2$secondaryArchSuffix
|
|
lib:libxml2$secondaryArchSuffix
|
|
lib:libxslt$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
goffice${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libgoffice_$apiVer$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
goffice$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libcairo$secondaryArchSuffix
|
|
devel:libgdk_3$secondaryArchSuffix
|
|
devel:libgdk_pixbuf_2.0$secondaryArchSuffix
|
|
devel:libgio_2.0$secondaryArchSuffix
|
|
devel:libglib_2.0$secondaryArchSuffix
|
|
devel:libgmodule_2.0$secondaryArchSuffix
|
|
devel:libgobject_2.0$secondaryArchSuffix
|
|
devel:libgsf_1$secondaryArchSuffix
|
|
devel:libgtk_3$secondaryArchSuffix
|
|
devel:libintl$secondaryArchSuffix
|
|
devel:librsvg_2$secondaryArchSuffix
|
|
devel:libxml2$secondaryArchSuffix
|
|
devel:libxslt$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoreconf
|
|
cmd:autopoint$secondaryArchSuffix
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:gtkdocize
|
|
cmd:intltoolize
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
defineDebugInfoPackage goffice$secondaryArchSuffix \
|
|
"$libDir"/libgoffice-$apiVer.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -fi
|
|
runConfigure ./configure \
|
|
--disable-static \
|
|
--without-long-double
|
|
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
# remove libtool file
|
|
rm -f $libDir/*.la
|
|
|
|
prepareInstalledDevelLib \
|
|
libgoffice-$apiVer
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
"$developDir"
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|