2011-01-09 18:44:38 +01:00
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
2016-01-02 17:29:56 +01:00
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
2011-01-09 18:44:38 +01:00
#
2013-12-21 21:51:48 +01:00
# OpenELEC is free software: you can redistribute it and/or modify
2011-01-09 18:44:38 +01:00
# it under the terms of the GNU General Public License as published by
2013-12-21 21:51:48 +01:00
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
2011-01-09 18:44:38 +01:00
#
2013-12-21 21:51:48 +01:00
# OpenELEC is distributed in the hope that it will be useful,
2011-01-09 18:44:38 +01:00
# but WITHOUT ANY WARRANTY; without even the implied warranty of
2013-12-21 21:51:48 +01:00
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2011-01-09 18:44:38 +01:00
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
2013-12-21 21:51:48 +01:00
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
2011-01-09 18:44:38 +01:00
################################################################################
2010-11-14 14:42:08 +01:00
PKG_NAME = "pciutils"
2017-05-06 21:16:56 +01:00
PKG_VERSION = "3.5.4"
2017-07-17 20:49:22 +02:00
PKG_SHA256 = "64293c6ab9318c40ef262b76d87bd9097531759752bac556e50979b1e63cfe66"
2015-04-03 12:08:24 +03:00
PKG_ARCH = "x86_64"
2010-11-14 14:42:08 +01:00
PKG_LICENSE = "GPL"
PKG_SITE = "http://mj.ucw.cz/pciutils.shtml"
2012-01-17 10:24:09 +01:00
PKG_URL = " http://www.kernel.org/pub/software/utils/pciutils/ $PKG_NAME - $PKG_VERSION .tar.xz "
2014-11-12 00:34:01 +01:00
PKG_DEPENDS_TARGET = "toolchain kmod systemd"
2010-11-14 14:42:08 +01:00
PKG_SECTION = "system"
PKG_SHORTDESC = "pciutils: Linux PCI Utilities"
PKG_LONGDESC = "This package contains various utilities for inspecting and setting of devices connected to the PCI bus and the PCI vendor/product ID database."
2013-12-25 20:27:06 +01:00
2014-01-20 20:34:40 +02:00
PKG_MAKE_OPTS = "PREFIX=/usr SHARED=no STRIP= IDSDIR=/usr/share"
2013-12-25 20:27:06 +01:00
m a k e _ t a r g e t ( ) {
make OPT = " $CFLAGS " \
CROSS_COMPILE = ${ TARGET_PREFIX } \
HOST = $TARGET_ARCH -linux \
$PKG_MAKE_OPTS \
2014-11-12 00:34:01 +01:00
ZLIB = no DNS = no LIBKMOD = yes HWDB = yes
2013-12-25 20:27:06 +01:00
}
m a k e i n s t a l l _ t a r g e t ( ) {
make $PKG_MAKE_OPTS DESTDIR = $SYSROOT_PREFIX install
make $PKG_MAKE_OPTS DESTDIR = $SYSROOT_PREFIX install-lib
make $PKG_MAKE_OPTS DESTDIR = $INSTALL install-lib
2015-04-03 12:08:24 +03:00
if [ " $TARGET_ARCH " = x86_64 ] ; then
2013-12-25 20:27:06 +01:00
make $PKG_MAKE_OPTS DESTDIR = $INSTALL install
fi
}
p o s t _ m a k e i n s t a l l _ t a r g e t ( ) {
2014-11-12 00:34:01 +01:00
rm -rf $INSTALL /usr/sbin/setpci
2014-02-04 21:37:03 +02:00
rm -rf $INSTALL /usr/sbin/update-pciids
2014-11-12 00:34:01 +01:00
rm -rf $INSTALL /usr/share
2013-12-25 20:27:06 +01:00
}