# -*- 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       legacysupport 1.1
PortGroup       meson 1.0

# O_CLOEXEC
legacysupport.newest_darwin_requires_legacy 10

name            xorg-libpciaccess
version         0.18.1
revision        0
categories      x11 devel
license         MIT
maintainers     nomaintainer
description     Generic PCI access library
long_description \
                {*}${description}
master_sites    https://www.x.org/releases/individual/lib/
distname        libpciaccess-${version}
use_xz          yes
checksums       rmd160  8fe30322f4059df8964cca2fada39b1b7078b878 \
                sha256  4af43444b38adb5545d0ed1c2ce46d9608cc47b31c2387fc5181656765a6fa76 \
                size    64452

# Hack to make it compile, we only need it to satisfy a dependency:
patchfiles      patch-apple.diff

depends_build-append \
                path:bin/pkg-config:pkgconfig \
                port:xorg-util-macros
depends_lib-append \
                port:zlib
