diff --git a/graphics/drm-66-kmod/Makefile b/graphics/drm-66-kmod/Makefile index db1e64b0f5ea..17fcea735cd2 100644 --- a/graphics/drm-66-kmod/Makefile +++ b/graphics/drm-66-kmod/Makefile @@ -1,61 +1,67 @@ PORTNAME= drm-66-kmod PORTVERSION= ${DRM_KMOD_DISTVERSION} PORTREVISION= 8 CATEGORIES= graphics kld .include "Makefile.version" MAINTAINER= x11@FreeBSD.org COMMENT= Direct Rendering Manager GPU drivers WWW= https://github.com/freebsd/drm-kmod/ LICENSE= BSD2CLAUSE MIT GPLv2 LICENSE_COMB= multi ONLY_FOR_ARCHS= amd64 ONLY_FOR_ARCHS_REASON= the new KMS components are only supported on amd64 CONFLICTS_INSTALL= drm-510-kmod \ drm-515-kmod \ drm-61-kmod USES= kmod uidfix compiler:c++11-lang USE_GITHUB= yes GH_ACCOUNT= freebsd GH_PROJECT= drm-kmod GH_TAGNAME= ${DRM_KMOD_GH_TAGNAME} .include SUB_FILES= pkg-message SUB_LIST= PORTNAME=${PORTNAME} OPSYS=${OPSYS} OSREL=${OSREL} .if ${OPSYS} == FreeBSD && !( ${OSVERSION} >= 1500031 ) IGNORE= not supported on older than 1500031, no kernel support .endif .if ${OPSYS} != FreeBSD IGNORE= not supported on anything but FreeBSD (missing linuxkpi functionality) .endif .if ${ARCH} == "amd64" PLIST_SUB+= AMDGPU="" PLIST_SUB+= I915="" .elif ${ARCH} == "i386" PLIST_SUB+= AMDGPU="@comment " PLIST_SUB+= I915="" .elif ${ARCH} == "aarch64" || ${ARCH:Mpowerpc*} PLIST_SUB+= AMDGPU="" PLIST_SUB+= I915="@comment " .else PLIST_SUB+= AMDGPU="@comment " PLIST_SUB+= I915="@comment " .endif MAKE_ENV+= MAKEOBJDIRPREFIX=${WRKSRC}/obj +.include + +.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 211 +CFLAGS+= -Wno-default-const-init-var-unsafe +.endif + pre-build: ${MKDIR} ${WRKSRC}/obj (cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} obj) -.include +.include