mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
84 lines
2.0 KiB
Bash
84 lines
2.0 KiB
Bash
SUMMARY="A library for common code used by the libimobiledevice project"
|
|
DESCRIPTION="libimobiledevice-glue is a library with common code used by libraries \
|
|
and tools around the libimobileproject."
|
|
HOMEPAGE="https://www.libimobiledevice.org/"
|
|
COPYRIGHT="2013-2014 Nikias Bassen
|
|
2009-2014 Martin Szulecki"
|
|
LICENSE="GNU GPL v2
|
|
GNU LGPL v2.1"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/libimobiledevice/libimobiledevice-glue/archive/$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="4fda9f2624425fc5aa220c5477109eb547018c1c39122ee5ca1794cb4cd0e8b2"
|
|
SOURCE_FILENAME="libimobiledevice-glue-$portVersion.tar.gz"
|
|
SOURCE_DIR="libimobiledevice-glue-$portVersion"
|
|
PATCHES="libimobiledevice_glue-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="0.2.0"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
libimobiledevice_glue$secondaryArchSuffix = $portVersion
|
|
lib:libimobiledevice_glue_1.0$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libplist_2.0$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libimobiledevice_glue${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libimobiledevice_glue_1.0$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
libimobiledevice_glue$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libplist_2.0$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:automake
|
|
cmd:autoreconf
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
defineDebugInfoPackage libimobiledevice_glue$secondaryArchSuffix \
|
|
"$libDir"/libimobiledevice-glue-1.0.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
export RELEASE_VERSION=$portVersion
|
|
autoreconf -fi
|
|
runConfigure ./configure
|
|
make
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
# remove libtool file
|
|
rm $libDir/libimobiledevice*.*a
|
|
|
|
prepareInstalledDevelLib libimobiledevice-glue-1.0
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|