# -*- 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.12.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  876eb3c45da0a059ca5253d13cd45ba8afdb8971 \
                            sha256  827a641d2016a15f0b959804daa5a05f055d0f91d58a70d32ac41ce7ef94164e \
                            size    668358

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
