update to libpciacces 0.18.1 removes the autotools build system and add a simple make based one. The existing xenocara obj dir needs to be wiped before a make obj / make buildx

This commit is contained in:
purplerain 2024-05-18 01:06:01 +00:00
parent f60577aa63
commit 0c289f288c
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
43 changed files with 1418 additions and 10157 deletions

2
lib/libpciaccess/mk/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
!Makefile
!config.h

View file

@ -0,0 +1,47 @@
# $OpenBSD: Makefile,v 1.1 2024/05/13 19:16:27 matthieu Exp $
PACKAGE_VERSION = 0.18.1
LIB = pciaccess
TOP = ${.CURDIR}/..
NOPROFILE =
SRCS= \
common_bridge.c \
common_iterator.c \
common_init.c \
common_interface.c \
common_io.c \
common_capability.c \
common_device_name.c \
common_map.c \
openbsd_pci.c
CPPFLAGS += \
-DHAVE_CONFIG_H \
-DPCIIDS_PATH=\"${X11BASE}/share\" \
-I$(TOP)/mk \
-I$(TOP)/src \
-I$(TOP)/include
CFLAGS += -std=c99
EXTRA_PKGCONFIG_SUBST= "-e s/@PCIACCESS_LIBS@//"
PKGCONFIG = pciaccess.pc
beforeinstall:
@cmp -s ${DESTDIR}${X11BASE}/include/pciaccess.h \
$(TOP)/include/pciaccess.h || \
echo "${INSTALL_DATA} $(TOP)/include/pciaccess.h \
${DESTDIR}${X11BASE}/include/pciaccess.h" && \
${INSTALL_DATA} $(TOP)/include/pciaccess.h \
${DESTDIR}${X11BASE}/include/pciaccess.h
obj: _xenocara_obj
.PATH: $(TOP)
.PATH: $(TOP)/src
.include <bsd.lib.mk>
.include <bsd.xorg.mk>

View file

@ -0,0 +1,10 @@
/* $OpenBSD: config.h,v 1.1 2024/05/13 19:16:27 matthieu Exp $ */
#pragma once
#define HAVE_ERR_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_STRINGS_H 1
#define HAVE_STRING_H 1
/* undef HAVE_ZLIB */

View file

@ -0,0 +1,3 @@
major=2
minor=1