distribution/packages/sysutils/pciutils/package.mk
fewtarius a837478baf
* Distribution updates - kernel 6.1.10, Python, systemd, busybox, SDL2, etc.
* Update emulators, cores, and art book next theme.
* Drop -Ofast, --disable-shared --enable-static as defaults.
* Misc build fixes.
2023-02-08 12:26:54 -05:00

42 lines
1.3 KiB
Makefile

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="pciutils"
PKG_VERSION="3.9.0"
PKG_ARCH="x86_64"
PKG_LICENSE="GPL"
PKG_SITE="http://mj.ucw.cz/pciutils.shtml"
PKG_URL="http://www.kernel.org/pub/software/utils/pciutils/${PKG_NAME}-${PKG_VERSION}.tar.xz"
PKG_DEPENDS_TARGET="toolchain kmod systemd"
PKG_LONGDESC="Utilities for inspecting devices connected to the PCI bus and the PCI vendor/product ID database."
PKG_BUILD_FLAGS="+pic"
PKG_MAKE_OPTS="PREFIX=/usr SHARED=no STRIP= IDSDIR=/usr/share"
pre_configure_target() {
export LDFLAGS="${LDFLAGS} -ludev"
}
make_target() {
make OPT="${CFLAGS}" \
CROSS_COMPILE=${TARGET_PREFIX} \
HOST=${TARGET_ARCH}-linux \
${PKG_MAKE_OPTS} \
ZLIB=no DNS=no LIBKMOD=yes HWDB=yes
}
makeinstall_target() {
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
if [ "${TARGET_ARCH}" = x86_64 ]; then
make ${PKG_MAKE_OPTS} DESTDIR=${INSTALL} install
fi
}
post_makeinstall_target() {
rm -rf ${INSTALL}/usr/sbin/setpci
rm -rf ${INSTALL}/usr/sbin/update-pciids
rm -rf ${INSTALL}/usr/share
}