1d803f71bb
The port will switch to the newer version if hw context is available in the i915kms driver. - Get ride of WITH_NEW_XORG. - Use @comment in plist to ignore unwanted files in the stagedir, instead of trying to remove them in post-install. - Bump portrevision of 9.1.7 due to dependency changes. - Drop :keepla from USES=libtool. - Drop @dirrm[try] from plists - Give dri propper options, with pkg-help for additional information. - Make separate plist for dri for the different versions, the combined plist was headache inducing. - Add "workaround" patches to allow clang to build the dri port on i386 [1]. USE_GCC is now only needed for 8.x. - Add gbm port and USE_GL switch for it. PR: 192286 [1] Submitted by: Carlos Jacobo Puga Medina [1] Approved by: portmgr (bapt@) In collaberation with: dumbbell@ Obtained from: xorg-dev
41 lines
941 B
Makefile
41 lines
941 B
Makefile
# Created by: kwm@FreeBSD.org
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= gbm
|
|
PORTVERSION= ${MESAVERSION}
|
|
PORTREVISION= ${GBM_REVISION}
|
|
CATEGORIES= graphics
|
|
|
|
COMMENT= gbm library
|
|
|
|
LIB_DEPENDS+= libpthread-stubs.so:${PORTSDIR}/devel/libpthread-stubs \
|
|
libexpat.so:${PORTSDIR}/textproc/expat2 \
|
|
libdrm.so:${PORTSDIR}/graphics/libdrm \
|
|
libglapi.so:${PORTSDIR}/graphics/libglapi
|
|
|
|
USE_XORG= x11 xau xcb xdmcp
|
|
|
|
# stuff not needed by gbm but configure wants it
|
|
USE_XORG+= glproto dri2proto xext xdamage xfixes presentproto \
|
|
xshmfence
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/src/gbm
|
|
INSTALL_WRKSRC= ${WRKSRC}/src/gbm
|
|
|
|
.include <bsd.port.options.mk>
|
|
.include "${.CURDIR}/../../graphics/libGL/bsd.mesalib.mk"
|
|
|
|
.if defined(WITH_NEW_MESA)
|
|
GBM_REVISION= 0
|
|
.else
|
|
GBM_REVISION= 0
|
|
.endif
|
|
|
|
pre-build:
|
|
.if defined(WITH_NEW_MESA)
|
|
@cd ${WRKSRC}/src/mapi/ && ${MAKE_CMD} ${_MAKE_JOBS}
|
|
.else
|
|
@cd ${WRKSRC}/src/mapi/shared-glapi && ${MAKE_CMD} ${_MAKE_JOBS}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|