0
0
Fork 0
haikuports/sys-apps/pciutils/pciutils-3.2.1.recipe

85 lines
2.1 KiB
Bash

SUMMARY="Utilities for inspecting and manipulating PCI devices"
DESCRIPTION="The PCI Utilities are a collection of programs for inspecting \
and manipulating configuration of PCI devices, all based on a common \
portable library libpci which offers access to the PCI configuration space \
on a variety of operating systems.
The utilities include:
- lspci - displays detailed information about all PCI buses and devices in \
the system
- setpci - allows reading from and writing to PCI device configuration \
registers. For example, you can adjust the latency timers with it."
HOMEPAGE="http://mj.ucw.cz/sw/pciutils/"
COPYRIGHT="1997-2012 Martin Mares"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/pciutils-3.2.1.tar.gz"
CHECKSUM_SHA256="b31131b721fa26378b4af61b1c49986ff40fe590bc210545b210b6b774337858"
PATCHES="pciutils-3.2.1_git-0001-C89.patch"
ARCHITECTURES="?all x86_gcc2 x86"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
pciutils${secondaryArchSuffix} = $portVersion
cmd:lspci${secondaryArchSuffix} = $portVersion
cmd:setpci${secondaryArchSuffix} = $portVersion
"
REQUIRES="
haiku${secondaryArchSuffix}
lib:libz${secondaryArchSuffix}
"
PROVIDES_devel="
pciutils${secondaryArchSuffix}_devel = $portVersion
devel:pciutils$secondaryArchSuffix = $portVersion
devel:libpci$secondaryArchSuffix
"
REQUIRES_devel="
pciutils$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libz${secondaryArchSuffix}
"
BUILD_PREREQUIRES="
cmd:make
cmd:gcc${secondaryArchSuffix}
"
BUILD()
{
make \
ZLIB=yes \
PREFIX=$prefix \
SHAREDIR=$dataDir \
SBINDIR=$binDir \
MANDIR=$manDir \
INCDIR=$headersDir \
LIBDIR=$developLibDir
}
#TODO: SHARED=yes?
# XXX: remove update-pciids (packages are read-only anyway)
INSTALL()
{
make \
ZLIB=yes \
PREFIX=$prefix \
SHAREDIR=$dataDir \
SBINDIR=$binDir \
MANDIR=$manDir \
INCDIR=$includeDir \
LIBDIR=$developLibDir \
install install-lib
rm -f $binDir/update-pciids
rm -f $manDir/man*/update-pciids.*
# devel package
packageEntries devel \
$developDir \
$manDir/man*/pcilib.*
}