mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
Add recipe for pciutils 3.2.1
This commit is contained in:
77
sys-apps/pciutils/pciutils-3.2.1.recipe
Normal file
77
sys-apps/pciutils/pciutils-3.2.1.recipe
Normal file
@@ -0,0 +1,77 @@
|
||||
SUMMARY="Various utilities dealing with the PCI bus"
|
||||
DESCRIPTION="Various utilities dealing with the PCI bus"
|
||||
HOMEPAGE="http://mj.ucw.cz/sw/pciutils/"
|
||||
SRC_URI="ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/pciutils-3.2.1.tar.gz"
|
||||
CHECKSUM_MD5="fdc92c4665bb169022ffe730b3c08313"
|
||||
REVISION="1"
|
||||
LICENSE="GNU GPL v2"
|
||||
COPYRIGHT="1997-2012 Martin Mares"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 ?x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
PROVIDES="
|
||||
pciutils${secondaryArchSuffix} = $portVersion
|
||||
cmd:lspci${secondaryArchSuffix} = $portVersion
|
||||
cmd:setpci${secondaryArchSuffix} = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku${secondaryArchSuffix} >= $haikuVersion
|
||||
lib:libz${secondaryArchSuffix}
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
devel:libz${secondaryArchSuffix}
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:make
|
||||
cmd:gcc${secondaryArchSuffix}
|
||||
"
|
||||
|
||||
PATCHES="pciutils-3.2.1_git-0001-C89.patch"
|
||||
|
||||
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.*
|
||||
}
|
||||
|
||||
PROVIDES_devel="
|
||||
pciutils${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:pciutils$secondaryArchSuffix = $portVersion
|
||||
devel:libpci$secondaryArchSuffix
|
||||
"
|
||||
|
||||
REQUIRES_devel="
|
||||
pciutils$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user