blob: 2f5488c4186d7ca7a799f76e78861830133bfe7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# $OpenBSD$
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
.PATH: $(TOP)
.PATH: $(TOP)/src
.include <bsd.lib.mk>
.include <bsd.xorg.mk>
|