mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-10 13:50:08 +02:00
104 lines
2.3 KiB
Bash
104 lines
2.3 KiB
Bash
SUMMARY="A random collection of Linux utilities"
|
|
DESCRIPTION="Various useful Linux utilities."
|
|
HOMEPAGE="https://www.kernel.org/pub/linux/utils/util-linux/"
|
|
COPYRIGHT="Various Authors"
|
|
LICENSE="GNU GPL v2
|
|
GNU LGPL v2
|
|
BSD (4-clause)
|
|
Public Domain"
|
|
REVISION="1"
|
|
SOURCE_URI="https://www.kernel.org/pub/linux/utils/util-linux/v2.31/util-linux-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="d5950e4b2839d00aa3781f439bfada8091bc6ed8180d8262c53b4e4304e2d299"
|
|
SOURCE_DIR="util-linux-$portVersion"
|
|
PATCHES="util_linux-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="?x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
# On x86_gcc2 we don't want to install the commands in bin/<arch>/, but in bin/.
|
|
commandSuffix=$secondaryArchSuffix
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
fi
|
|
|
|
PROVIDES="
|
|
util_linux$secondaryArchSuffix = $portVersion compat >= 2
|
|
cmd:cal$commandSuffix = $portVersion
|
|
cmd:nologin$commandSuffix = $portVersion
|
|
cmd:rename$commandSuffix = $portVersion
|
|
cmd:ul$commandSuffix = $portVersion
|
|
lib:libsmartcols$secondaryArchSuffix = 1.1.0 compat >= 1
|
|
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libintl$secondaryArchSuffix
|
|
lib:libncurses$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
util_linux${secondaryArchSuffix}_devel = $portVersion compat >= 2
|
|
devel:libsmartcols$secondaryArchSuffix = 1.1.0 compat >= 1
|
|
"
|
|
REQUIRES_devel="
|
|
util_linux$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libintl$secondaryArchSuffix
|
|
devel:libncurses$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:autom4te
|
|
cmd:automake
|
|
cmd:bison
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:gettext$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
export CFLAGS="-D_BSD_SOURCE -DB_USE_POSITIVE_POSIX_ERRORS"
|
|
export LDFLAGS="-lnetwork -lbsd -lposix_error_mapper"
|
|
|
|
autogen.sh
|
|
runConfigure ./configure \
|
|
--disable-all-programs \
|
|
--enable-cal \
|
|
--enable-libsmartcols \
|
|
--enable-rename \
|
|
--enable-nologin \
|
|
--enable-ul
|
|
make
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
# Cleanup
|
|
rm -rf $prefix/sbin
|
|
|
|
# Remove libtool file
|
|
rm -f $libDir/libsmartcols.la
|
|
|
|
prepareInstalledDevelLib libsmartcols
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|