mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 14:08:51 +02:00
108 lines
2.8 KiB
Bash
108 lines
2.8 KiB
Bash
SUMMARY="Library and tool for working with Microsoft cabinet archives"
|
|
DESCRIPTION="gcab is command line tool that can list, extract and create \
|
|
cabinet (.cab) archives. The Cabinet format is often used on Microsoft Windows \
|
|
but it can also be used on other systems with open source software such as \
|
|
cabextract, lcab and gcab. Unlike cabextract and lcab, which can only list \
|
|
and extract cabinet archives, gcab can also create them.
|
|
gcab also includes a GObject shared library, libgcab, which provides all the \
|
|
functionality available to the command line tool."
|
|
HOMEPAGE="https://wiki.gnome.org/msitools"
|
|
COPYRIGHT="2000-2002 Stuart Caie
|
|
2002 Patrik Stridvall
|
|
2003 Greg Turner
|
|
2012 Marc-André Lureau
|
|
2017 Richard Hughes"
|
|
LICENSE="GNU LGPL v2.1"
|
|
REVISION="1"
|
|
SOURCE_URI="https://download.gnome.org/sources/gcab/$portVersion/gcab-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="0c5f602ca4a89904e045b97762b470726383e399d34a161d0ba26cc6023c7086"
|
|
PATCHES="gcab-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="0.0.0"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
# On x86_gcc2 we don't want to install the commands in bin/<arch>/, but in bin/.
|
|
commandSuffix=$secondaryArchSuffix
|
|
commandBinDir=$binDir
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
PROVIDES="
|
|
gcab$secondaryArchSuffix = $portVersion
|
|
cmd:gcab$commandSuffix = $portVersion
|
|
lib:libgcab_1.0$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libglib_2.0$secondaryArchSuffix >= 0.4600.2
|
|
lib:libintl$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
gcab${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libgcab_1.0$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
gcab$secondaryArchSuffix == $portVersion base
|
|
devel:libglib_2.0$secondaryArchSuffix >= 0.4600.2
|
|
devel:libintl$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libintl$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
devel:libglib_2.0$secondaryArchSuffix >= 0.4600.2
|
|
devel:libgettextlib$secondaryArchSuffix >= 0.14.1
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:autoreconf
|
|
cmd:autom4te
|
|
cmd:automake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:intltool_update
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
defineDebugInfoPackage gcab$secondaryArchSuffix \
|
|
"$libDir"/libgcab-1.0.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf
|
|
runConfigure --omit-dirs binDir ./configure --bindir=$commandBinDir \
|
|
--enable-introspection=no
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm -f "$libDir"/libgcab*.la
|
|
|
|
prepareInstalledDevelLibs \
|
|
libgcab-1.0
|
|
|
|
packageEntries devel \
|
|
$developDir \
|
|
$dataDir/gtk-doc
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|