ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/graphics/mesa-libs/Makefile
Revision: 24064
Committed: Sun Sep 2 19:54:13 2018 UTC (5 years, 7 months ago) by laffer1
Content type: text/plain
File size: 1676 byte(s)
Log Message:
 update mesa to 17.1.4

File Contents

# Content
1 # $MidnightBSD$
2
3 PORTNAME= mesa-libs
4 PORTVERSION= ${MESAVERSION}
5 CATEGORIES= graphics
6
7 COMMENT= OpenGL libraries that support GLX and EGL clients
8
9 LICENSE= mit
10
11 USE_XORG= dri2proto dri3proto glproto presentproto x11 xcb xdamage xext \
12 xfixes xshmfence xxf86vm
13
14 OPTIONS_DEFINE= WAYLAND
15 OPTIONS_SUB= yes
16
17 WAYLAND_DESC= Enable support for the Wayland platform in EGL
18 WAYLAND_LIB_DEPENDS= libwayland-client.so:graphics/wayland \
19 libwayland-server.so:graphics/wayland
20
21 .include <bsd.mport.options.mk>
22 .include "${.CURDIR:H:H}/graphics/mesa-dri/Makefile.common"
23
24 CONFIGURE_ARGS+= --with-dri-drivers="" --with-gallium-drivers=""
25
26 # libEGL needs gallium enabled which depends on llvm
27 .if "${MESA_LLVM_VER}" != ""
28 .if ${PORT_OPTIONS:MWAYLAND}
29 CONFIGURE_ARGS+= --with-platforms=x11,drm,wayland
30 .else
31 CONFIGURE_ARGS+= --with-platforms=x11,drm
32 .endif
33 PLIST_SUB+= EGL=""
34 .else
35 CONFIGURE_ARGS+= --disable-egl
36 PLIST_SUB+= EGL="@comment "
37 .if ${PORT_OPTIONS:MWAYLAND}
38 IGNORE= option WAYLAND is only valid on platforms with LLVM
39 .endif
40 .endif
41
42 MESA_BUILD_WRKSRC= src/mapi
43 MESA_INSTALL_WRKSRC= src/mapi
44
45 .if ${PORT_OPTIONS:MWAYLAND}
46 MESA_BUILD_WRKSRC+= src/egl/wayland/wayland-drm src/egl/wayland/wayland-egl
47 MESA_INSTALL_WRKSRC+= src/egl/wayland/wayland-egl
48 .endif
49
50 MESA_BUILD_WRKSRC+= src/gbm src/glx
51 MESA_INSTALL_WRKSRC+= src/gbm src/glx
52
53 .if "${MESA_LLVM_VER}" != ""
54 MESA_BUILD_WRKSRC+= src/egl
55 MESA_INSTALL_WRKSRC+= src/egl
56 .endif
57
58 .include "${MASTERDIR}/Makefile.targets"
59
60 post-install:
61 @cd ${WRKSRC}/src && ${SETENV} DESTDIR=${FAKE_DESTDIR} ${FAKE_MAKEENV} \
62 ${MAKE_CMD} ${FAKE_MAKEARGS} install-pkgconfigDATA install-glHEADERS install-glxHEADERS
63
64 .include <bsd.port.post.mk>

Properties

Name Value
svn:eol-style native
svn:keywords MidnightBSD=%H
svn:mime-type text/plain