blob: e99caf72efecaaca3d5066b37cb61fbc9f135893 (
plain) (
blame)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# Created by: lesi@FreeBSD.org
# $FreeBSD$
PORTNAME= libdrm
PORTVERSION= ${LIBDRM_VERSION}
PORTREVISION= ${LIBDRM_REVISION}
CATEGORIES= graphics x11
MASTER_SITES= http://dri.freedesktop.org/libdrm/
MAINTAINER= x11@FreeBSD.org
COMMENT= Userspace interface to kernel Direct Rendering Module services
LIB_DEPENDS= pciaccess:${PORTSDIR}/devel/libpciaccess \
pthread-stubs:${PORTSDIR}/devel/libpthread-stubs
USE_BZIP2= yes
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
MAKE_JOBS_SAFE= yes
OPTIONS_DEFINE= MANPAGES
.if defined(PACKAGE_BUILDING)
OPTIONS_DEFAULT+= MANPAGES
.endif
.include <bsd.port.options.mk>
.if defined(WITH_NEW_XORG)
USES+= gmake
CONFIGURE_ARGS+=--enable-libkms
EXTRA_PATCHES+= ${FILESDIR}/extra-xf86drmMode.c
.if ${PORT_OPTIONS:MMANPAGES}
BUILD_DEPENDS+= ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl \
xsltproc:${PORTSDIR}/textproc/libxslt
MAN3= drmAvailable.3 \
drmHandleEvent.3 \
drmModeGetResources.3
MAN7= drm-gem.7 \
drm-kms.7 \
drm-memory.7 \
drm-mm.7 \
drm-ttm.7 \
drm.7
.else
CONFIGURE_ARGS+=--disable-manpages
.endif
LIBDRM_VERSION= 2.4.46
LIBDRM_REVISION=0
PLIST_SUB+= OLD="@comment " NEW=""
EXTRA_PATCHES+= ${FILESDIR}/extra-configure \
${FILESDIR}/extra-tests_modetest_Makefile.in \
${FILESDIR}/extra-tests_modetest_modetest.c \
${FILESDIR}/extra-tests_modetest_strchrnul.c
CONFIGURE_ARGS+=--disable-vmwgfx
.else
CONFIGURE_ARGS= --enable-nouveau-experimental-api
LIBDRM_VERSION= 2.4.17
LIBDRM_REVISION=1
PLIST_SUB+= OLD="" NEW="@comment "
.endif
.if ${ARCH} == "amd64" || ${ARCH} == "i386" || ${ARCH} == "ia64" || ${ARCH} == "powerpc"
PLIST_SUB+= INTEL_DRIVER=""
PLIST_SUB+= RADEON_DRIVERS=""
.else
PLIST_SUB+= INTEL_DRIVER="@comment "
PLIST_SUB+= RADEON_DRIVERS="@comment "
.endif
pre-patch:
@${REINPLACE_CMD} 's|{libdir}/pkgconfig|{prefix}/libdata/pkgconfig|g; \
s,i?86|x86_64),i?86|amd64|x86_64),g' \
${WRKSRC}/configure
.include <bsd.port.mk>
|