mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-13 15:20:07 +02:00
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has, is transformed into "all", and then the other entries in ARCHITECTURES either dropped or rearranged appropriately.
75 lines
1.6 KiB
Bash
75 lines
1.6 KiB
Bash
SUMMARY="A C library for manipulating tar files"
|
|
DESCRIPTION="libtar is a library for manipulating tar files from within C \
|
|
programs. Here are some of its features:
|
|
|
|
- Handles both POSIX tar file format and the GNU extensions.
|
|
- API provides functions for easy use, such as tar_extract_all().
|
|
- Also provides functions for more granular use, such as \
|
|
tar_append_regfile()."
|
|
HOMEPAGE="https://repo.or.cz/w/libtar.git/"
|
|
COPYRIGHT="
|
|
1998-2003 University of Illinois Board of Trustees
|
|
1998-2003 Mark D. Roth
|
|
"
|
|
LICENSE="BSD (3-clause)"
|
|
REVISION="4"
|
|
SOURCE_URI="http://pkgbuild.com/~giovanni/libtar/libtar-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="43c5f50e6b4398c8be35d6f3abee26064c3f26174715b60004576792e3283353"
|
|
SOURCE_DIR="libtar"
|
|
|
|
ARCHITECTURES="all"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
libtar${secondaryArchSuffix} = $portVersion
|
|
cmd:libtar
|
|
lib:libtar${secondaryArchSuffix} = 0.0.0 compat >= 0
|
|
"
|
|
REQUIRES="
|
|
haiku${secondaryArchSuffix}
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libtar${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libtar$secondaryArchSuffix = 0.0.0
|
|
"
|
|
REQUIRES_devel="
|
|
libtar$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:autoheader
|
|
cmd:automake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -fi
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm $libDir/libtar.la
|
|
|
|
prepareInstalledDevelLibs libtar
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir \
|
|
$manDir
|
|
}
|