# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem                  1.0
PortGroup                   makefile 1.0

name                        pciutils
version                     3.14.0
revision                    0
categories                  sysutils
license                     GPL-2+
maintainers                 {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
description                 a collection of programs for inspecting and manipulating configuration of PCI devices
long_description            The PCI Utilities are {*}${description}, \
                            all based on a common portable library libpci \
                            which offers access to the PCI configuration space on a variety of operating systems.

homepage                    https://mj.ucw.cz/sw/pciutils
master_sites                https://mj.ucw.cz/download/linux/pci/

checksums                   rmd160  b01acf30061b0d06549b8603aba5ca558c704212 \
                            sha256  e31c79722dbbe9d2906b92996ce295268e54d4342fefe3ff476caa613e51be2a \
                            size    722554

patchfiles-append           patch-shared_library.diff

depends_lib-append          port:zlib

makefile.override-append    PREFIX \
                            CFLAGS

build.args-append           ZLIB=yes \
                            DNS=yes \
                            SHARED=yes

# ls-ecaps.c: error: ‘for’ loop initial declaration used outside C99 mode
configure.cflags-append     -std=c99

destroot.target-append      install-lib
