From nobody Sun Aug 20 17:57:16 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RTNc84GV9z4qWbf; Sun, 20 Aug 2023 17:57:28 +0000 (UTC) (envelope-from carlavilla@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RTNc83mxWz4fMw; Sun, 20 Aug 2023 17:57:28 +0000 (UTC) (envelope-from carlavilla@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692554248; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=bkdQsgZwNNl/kQE37jPCIfPmjO5bTRG/HHCDznXO1Xc=; b=hLk2TpcHhIcvvf8qCLHJ25PU0t4ddu8kBDYMIKLK8lJQcZ/s0j8NTERwcCrP6w2h4BOiRE OltFMlZ1VzUE6IYXgOKIi5uhp7iw42rdFx1IXarBS1MpyjD/btY5usfoax14U2RqGiOAaG FMDXLx7/Gl7t9wG0DZrDuOTwMDqCJu2UR6UtVdFQFdQRuDZ+wm6tM/xPin1ITLtBMNe1dk xFlK1gmd/yKC0IT3lSsgnZayCCsmZwWHvOSbKMEWENQTqX0z7onXRLg1L7XzUP3ful+zV2 xSrz5wmHzl1fpPconQGfGOiHpCfEX3qICVaS+oLEPJtF6CeIOFx/ITz/UWkFxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692554248; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=bkdQsgZwNNl/kQE37jPCIfPmjO5bTRG/HHCDznXO1Xc=; b=WvgdHK5vhnz6RiPsmBNfEOmULzQ4CjtRF1QJwInMieJpDKxuTEp4iLGxjzgwByFhfJIH1J od24MSpfp7JwGTlUj43jkpT5O9OgdRtWmHNntk+dypkj5MrJxWGv+M9X7G8RkYGQz6WzGG 0DJQu0EGFu86rjEuPPwrYSJxGpKs/sUVvNCHUPfJRwqkdxO9YYKD/yOcshFj5aIGsPrCze ZV9EzQuFoGv6/smtXO0gkBnWmci3ASiE8zRHnxw2dU4IsY8yuG9zFpgqQzgyX7yhd2r7ca tcAuchUCSBzKk8IK+VXjjNsyvz0o7sdGFOnqxM77mf00LoomgwXwnOWJmQoGQw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1692554248; a=rsa-sha256; cv=none; b=XxwWkdAPIhf1lHV10tdS5WqVfAyHUg6uDipZs8BpW2tXXTMM3i1hI+ZZCNhUQtL+2Q/5Ki NQjNdttKOe/ciHO5K/xH9c8BMJkWI74MOYsRhSrTv1SSEajVFmaDf+MSSfRVdwimQ3O2pY JnDfOmEYSZ/LUKzidnJfVlvAWZRLtHzVt4nRIvpItoyeeb8SEhptyFAbKOScE09m/+oBMH 9Du5E2uehRrr1/ROxAKoTbtM2ySsMKm9WQVgskL6BVkvd0OhVxb3zdbBqt9/baHWfC9V6p gnHgT8x2fsWP/QXMuEvICZrQdtZ3eWYVDryxqm2k0UK+YDzE2Zr4jnpU7OFUtA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from mail-oa1-f44.google.com (mail-oa1-f44.google.com [209.85.160.44]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: carlavilla) by smtp.freebsd.org (Postfix) with ESMTPSA id 4RTNc82Wmrz1DS5; Sun, 20 Aug 2023 17:57:28 +0000 (UTC) (envelope-from carlavilla@freebsd.org) Received: by mail-oa1-f44.google.com with SMTP id 586e51a60fabf-1c4cf775a14so1619971fac.3; Sun, 20 Aug 2023 10:57:28 -0700 (PDT) X-Gm-Message-State: AOJu0YzcPfjpCkOoAV1/1dYJKZ2VZLPNuWukm927+2aJ29xdOv67mRC4 6M2KH17wn190huWyzjgXwVZpeAv4VGNZJb36K1I= X-Google-Smtp-Source: AGHT+IFkl0DBec2ePqajtU4q+K8YW2tssZlspcqeuocbYCe0ou6q4eFyUKpjTvixOgi2CKbybrrewAfWhRst9CAutpc= X-Received: by 2002:a05:6870:702a:b0:1b3:54b5:ac6e with SMTP id u42-20020a056870702a00b001b354b5ac6emr6889177oae.50.1692554247089; Sun, 20 Aug 2023 10:57:27 -0700 (PDT) List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 References: <202308201754.37KHsQnL076373@gitrepo.freebsd.org> In-Reply-To: <202308201754.37KHsQnL076373@gitrepo.freebsd.org> From: Sergio Carlavilla Date: Sun, 20 Aug 2023 19:57:16 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: git: 4754e9fd33c4 - main - graphics/nvidia-drm-[510,515]-kmod: Add the port. To: Gleb Popov Cc: dev-commits-ports-all@freebsd.org, dev-commits-ports-main@freebsd.org, ports-committers@freebsd.org Content-Type: multipart/alternative; boundary="000000000000a932c006035e7e25" --000000000000a932c006035e7e25 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, 20 Aug 2023 at 19:54, Gleb Popov wrote: > The branch main has been updated by arrowd: > > URL: > https://cgit.FreeBSD.org/ports/commit/?id=3D4754e9fd33c4fae0359a272d72d9a= a7fe75c7a82 > > commit 4754e9fd33c4fae0359a272d72d9aa7fe75c7a82 > Author: Austin Shafer > AuthorDate: 2023-08-18 14:31:22 +0000 > Commit: Gleb Popov > CommitDate: 2023-08-20 17:54:07 +0000 > > graphics/nvidia-drm-[510,515]-kmod: Add the port. > > This port provides the nvidia-drm.ko kernel module, as ported here: > https://github.com/amshafer/nvidia-driver > > This module implements the DRM API, which is commonly used for PRIME > and > Wayland setups. > > Differential Revision: https://reviews.freebsd.org/D41497 > > Reviewed by: arrowd > --- > graphics/Makefile | 3 ++ > graphics/nvidia-drm-510-kmod/Makefile | 10 +++++++ > graphics/nvidia-drm-510-kmod/distinfo | 5 ++++ > .../files/20-nvidia-drm-outputclass.conf.in | 8 ++++++ > graphics/nvidia-drm-510-kmod/pkg-descr | 3 ++ > graphics/nvidia-drm-515-kmod/Makefile | 10 +++++++ > graphics/nvidia-drm-515-kmod/distinfo | 5 ++++ > .../files/20-nvidia-drm-outputclass.conf.in | 8 ++++++ > graphics/nvidia-drm-515-kmod/pkg-descr | 3 ++ > graphics/nvidia-drm-kmod/Makefile | 25 ++++++++++++++++= + > graphics/nvidia-drm-kmod/Makefile.common | 32 > ++++++++++++++++++++++ > graphics/nvidia-drm-kmod/pkg-descr | 1 + > 12 files changed, 113 insertions(+) > > diff --git a/graphics/Makefile b/graphics/Makefile > index 8a01b3895276..c1910b63b806 100644 > --- a/graphics/Makefile > +++ b/graphics/Makefile > @@ -593,6 +593,9 @@ > SUBDIR +=3D npretty > SUBDIR +=3D nsxiv > SUBDIR +=3D nurbs++ > + SUBDIR +=3D nvidia-drm-510-kmod > + SUBDIR +=3D nvidia-drm-515-kmod > + SUBDIR +=3D nvidia-drm-kmod > SUBDIR +=3D nvidia-texture-tools > SUBDIR +=3D ocaml-cairo > SUBDIR +=3D ocaml-images > diff --git a/graphics/nvidia-drm-510-kmod/Makefile > b/graphics/nvidia-drm-510-kmod/Makefile > new file mode 100644 > index 000000000000..13b2c26c6c3f > --- /dev/null > +++ b/graphics/nvidia-drm-510-kmod/Makefile > @@ -0,0 +1,10 @@ > +PORTNAME=3D nvidia-drm-510-kmod > +PORTVERSION=3D ${NVIDIA_DISTVERSION} > +CATEGORIES=3D graphics > + > +RUN_DEPENDS+=3D ${KMODDIR}/drm.ko:graphics/drm-510-kmod > + > +.include "${.CURDIR}/../drm-510-kmod/Makefile.version" > +.include "${.CURDIR}/../nvidia-drm-kmod/Makefile.common" > + > +.include > diff --git a/graphics/nvidia-drm-510-kmod/distinfo > b/graphics/nvidia-drm-510-kmod/distinfo > new file mode 100644 > index 000000000000..3b60248b1ff9 > --- /dev/null > +++ b/graphics/nvidia-drm-510-kmod/distinfo > @@ -0,0 +1,5 @@ > +TIMESTAMP =3D 1692304583 > +SHA256 > (amshafer-nvidia-driver-535.98-nvidia-drm-510-kmod-535.98_GH0.tar.gz) =3D > c11fb17f9f8cddc11ec699c63bbc288bd1124537dd7ae698538ebd8bb399e225 > +SIZE > (amshafer-nvidia-driver-535.98-nvidia-drm-510-kmod-535.98_GH0.tar.gz) =3D > 185499361 > +SHA256 (freebsd-drm-kmod-drm_v5.10.163_6_GH0.tar.gz) =3D > 342eb5073f318d18667c605e639bd85e48de3be25861d8a730d0ca3dd7ba7726 > +SIZE (freebsd-drm-kmod-drm_v5.10.163_6_GH0.tar.gz) =3D 20096515 > diff --git a/graphics/nvidia-drm-510-kmod/files/ > 20-nvidia-drm-outputclass.conf.in b/graphics/nvidia-drm-510-kmod/files/ > 20-nvidia-drm-outputclass.conf.in > new file mode 100644 > index 000000000000..15496138f63a > --- /dev/null > +++ b/graphics/nvidia-drm-510-kmod/files/20-nvidia-drm-outputclass.conf.i= n > @@ -0,0 +1,8 @@ > +Section "OutputClass" > + Identifier "nvidia" > + MatchDriver "nvidia-drm" > + Driver "nvidia" > + Option "PrimaryGPU" "yes" > + ModulePath "%%LOCALBASE%%/lib/nvidia/xorg" > + ModulePath "%%LOCALBASE%%/lib/xorg/modules" > +EndSection > diff --git a/graphics/nvidia-drm-510-kmod/pkg-descr > b/graphics/nvidia-drm-510-kmod/pkg-descr > new file mode 100644 > index 000000000000..64ec67472ed7 > --- /dev/null > +++ b/graphics/nvidia-drm-510-kmod/pkg-descr > @@ -0,0 +1,3 @@ > +FreeBSD port of Linux's nvidia-drm.ko Kernel module. > + > +This version is compatible with drm.ko 5.10. > diff --git a/graphics/nvidia-drm-515-kmod/Makefile > b/graphics/nvidia-drm-515-kmod/Makefile > new file mode 100644 > index 000000000000..c20e7d25f126 > --- /dev/null > +++ b/graphics/nvidia-drm-515-kmod/Makefile > @@ -0,0 +1,10 @@ > +PORTNAME=3D nvidia-drm-515-kmod > +PORTVERSION=3D ${NVIDIA_DISTVERSION} > +CATEGORIES=3D graphics > + > +RUN_DEPENDS+=3D ${KMODDIR}/drm.ko:graphics/drm-515-kmod > + > +.include "${.CURDIR}/../drm-515-kmod/Makefile.version" > +.include "${.CURDIR}/../nvidia-drm-kmod/Makefile.common" > + > +.include > diff --git a/graphics/nvidia-drm-515-kmod/distinfo > b/graphics/nvidia-drm-515-kmod/distinfo > new file mode 100644 > index 000000000000..ea026477bc17 > --- /dev/null > +++ b/graphics/nvidia-drm-515-kmod/distinfo > @@ -0,0 +1,5 @@ > +TIMESTAMP =3D 1692308433 > +SHA256 > (amshafer-nvidia-driver-535.98-nvidia-drm-515-kmod-535.98_GH0.tar.gz) =3D > 973bb7d81e894767f1e9e5cbe394be15289084098d782fb4adb3758a8face51c > +SIZE > (amshafer-nvidia-driver-535.98-nvidia-drm-515-kmod-535.98_GH0.tar.gz) =3D > 185499765 > +SHA256 (freebsd-drm-kmod-drm_v5.15.25_5_GH0.tar.gz) =3D > bd5eb5a39cd46f532d0310958bfc2870da1c1a003e92874f18f7f88c8baac6a5 > +SIZE (freebsd-drm-kmod-drm_v5.15.25_5_GH0.tar.gz) =3D 26084713 > diff --git a/graphics/nvidia-drm-515-kmod/files/ > 20-nvidia-drm-outputclass.conf.in b/graphics/nvidia-drm-515-kmod/files/ > 20-nvidia-drm-outputclass.conf.in > new file mode 100644 > index 000000000000..15496138f63a > --- /dev/null > +++ b/graphics/nvidia-drm-515-kmod/files/20-nvidia-drm-outputclass.conf.i= n > @@ -0,0 +1,8 @@ > +Section "OutputClass" > + Identifier "nvidia" > + MatchDriver "nvidia-drm" > + Driver "nvidia" > + Option "PrimaryGPU" "yes" > + ModulePath "%%LOCALBASE%%/lib/nvidia/xorg" > + ModulePath "%%LOCALBASE%%/lib/xorg/modules" > +EndSection > diff --git a/graphics/nvidia-drm-515-kmod/pkg-descr > b/graphics/nvidia-drm-515-kmod/pkg-descr > new file mode 100644 > index 000000000000..598cb9411e54 > --- /dev/null > +++ b/graphics/nvidia-drm-515-kmod/pkg-descr > @@ -0,0 +1,3 @@ > +FreeBSD port of Linux's nvidia-drm.ko Kernel module. > + > +This version is compatible with drm.ko 5.15. > diff --git a/graphics/nvidia-drm-kmod/Makefile > b/graphics/nvidia-drm-kmod/Makefile > new file mode 100644 > index 000000000000..cc226f22dbf2 > --- /dev/null > +++ b/graphics/nvidia-drm-kmod/Makefile > @@ -0,0 +1,25 @@ > +PORTNAME=3D nvidia-drm-kmod > +PORTVERSION=3D ${NVIDIA_DISTVERSION} > +CATEGORIES=3D graphics kld > + > +MAINTAINER=3D ashafer@badland.io > +COMMENT=3D NVIDIA DRM Kernel Module > +WWW=3D https://github.com/amshafer/nvidia-driver > + > +USES=3D metaport > + > +.include "${.CURDIR}/../../x11/nvidia-driver/Makefile.version" > +.include > + > +# Only supported on FreeBSD 13.1+ > +.if ${OPSYS} !=3D FreeBSD > +IGNORE=3D not supported on anything but FreeBSD (missing > linuxkpi functionality) > +.else > +. if ${OSVERSION} >=3D 1301000 > +RUN_DEPENDS+=3D ${KMODDIR}/nvidia-drm.ko:graphics/nvidia-drm-510-kmod > +. else > +IGNORE=3D not supported for this FreeBSD version > +. endif > +.endif > + > +.include > diff --git a/graphics/nvidia-drm-kmod/Makefile.common > b/graphics/nvidia-drm-kmod/Makefile.common > new file mode 100644 > index 000000000000..f97266bc03e1 > --- /dev/null > +++ b/graphics/nvidia-drm-kmod/Makefile.common > @@ -0,0 +1,32 @@ > +# Common rules for nvidia-drm-*-kmod ports > + > +MAINTAINER=3D ashafer@badland.io > +COMMENT=3D NVIDIA DRM Kernel Module > +WWW=3D https://github.com/amshafer/nvidia-driver > + > +ONLY_FOR_ARCHS=3D amd64 > +USES=3D kmod uidfix > + > +SUB_FILES=3D 20-nvidia-drm-outputclass.conf > + > +RUN_DEPENDS+=3D ${KMODDIR}/nvidia.ko:x11/nvidia-driver > + > +.include "${.CURDIR}/../../x11/nvidia-driver/Makefile.version" > + > +LICENSE_FILE=3D ${WRKSRC}/nvidia/doc/license.txt > + > +NVIDIA_GH_TAGNAME=3D ${PORTNAME}-${PORTVERSION} > +USE_GITHUB=3D yes > +GH_ACCOUNT=3D amshafer freebsd:drm > +GH_PROJECT=3D nvidia-driver drm-kmod:drm > +GH_TAGNAME:=3D ${NVIDIA_GH_TAGNAME} ${DRM_KMOD_GH_TAGNAME}:drm > + > +PLIST_FILES=3D ${KMODDIR}/nvidia-drm.ko \ > + share/X11/xorg.conf.d/20-nvidia-drm-outputclass.conf > + > +MAKE_ENV+=3D DRMKMODDIR=3D${WRKDIR}/drm-kmod-${DRM_KMOD_GH_TAGNAME}/ > +WRKSRC_SUBDIR=3D nvidia/src/nvidia-drm/ > + > +post-install: > + ${MKDIR} ${STAGEDIR}${PREFIX}/share/X11/xorg.conf.d/ > + ${INSTALL_DATA} ${WRKDIR}/20-nvidia-drm-outputclass.conf > ${STAGEDIR}${PREFIX}/share/X11/xorg.conf.d/ > diff --git a/graphics/nvidia-drm-kmod/pkg-descr > b/graphics/nvidia-drm-kmod/pkg-descr > new file mode 100644 > index 000000000000..9fea5fd244d8 > --- /dev/null > +++ b/graphics/nvidia-drm-kmod/pkg-descr > @@ -0,0 +1 @@ > +FreeBSD port of Linux's nvidia-drm.ko Kernel module. > Nice to have this port! I=E2=80=99ll document it in the handbook :) --000000000000a932c006035e7e25 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sun, 20 Aug 2023 at 19:54, Gleb Popov <arrowd@freebsd.org> wrote:
The branch main has been updated by arrowd:
URL: https://cgi= t.FreeBSD.org/ports/commit/?id=3D4754e9fd33c4fae0359a272d72d9aa7fe75c7a82

commit 4754e9fd33c4fae0359a272d72d9aa7fe75c7a82
Author:=C2=A0 =C2=A0 =C2=A0Austin Shafer <
ashafer@badland.io>
AuthorDate: 2023-08-18 14:31:22 +0000
Commit:=C2=A0 =C2=A0 =C2=A0Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2023-08-20 17:54:07 +0000

=C2=A0 =C2=A0 graphics/nvidia-drm-[510,515]-kmod: Add the port.

=C2=A0 =C2=A0 This port provides the nvidia-drm.ko kernel module, as ported= here:
=C2=A0 =C2=A0 https://github.com/amshafer/nvidia-driver=

=C2=A0 =C2=A0 This module implements the DRM API, which is commonly used fo= r PRIME and
=C2=A0 =C2=A0 Wayland setups.

=C2=A0 =C2=A0 Differential Revision: https://reviews.freebsd.org/D= 41497

=C2=A0 =C2=A0 Reviewed by:=C2=A0 =C2=A0 arrowd
---
=C2=A0graphics/Makefile=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |=C2=A0 = 3 ++
=C2=A0graphics/nvidia-drm-510-kmod/Makefile=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 | 10 +++++++
=C2=A0graphics/nvidia-drm-510-kmod/distinfo=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 |=C2=A0 5 ++++
=C2=A0.../files/20-nvidia-drm-outputclass.conf.in=C2=A0 = =C2=A0 =C2=A0 =C2=A0 |=C2=A0 8 ++++++
=C2=A0graphics/nvidia-drm-510-kmod/pkg-descr=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0|=C2=A0 3 ++
=C2=A0graphics/nvidia-drm-515-kmod/Makefile=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 | 10 +++++++
=C2=A0graphics/nvidia-drm-515-kmod/distinfo=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 |=C2=A0 5 ++++
=C2=A0.../files/20-nvidia-drm-outputclass.conf.in=C2=A0 = =C2=A0 =C2=A0 =C2=A0 |=C2=A0 8 ++++++
=C2=A0graphics/nvidia-drm-515-kmod/pkg-descr=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0|=C2=A0 3 ++
=C2=A0graphics/nvidia-drm-kmod/Makefile=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 | 25 +++++++++++++++++
=C2=A0graphics/nvidia-drm-kmod/Makefile.common=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0| 32 ++++++++++++++++++++++
=C2=A0graphics/nvidia-drm-kmod/pkg-descr=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0|=C2=A0 1 +
=C2=A012 files changed, 113 insertions(+)

diff --git a/graphics/Makefile b/graphics/Makefile
index 8a01b3895276..c1910b63b806 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -593,6 +593,9 @@
=C2=A0 =C2=A0 =C2=A0SUBDIR +=3D npretty
=C2=A0 =C2=A0 =C2=A0SUBDIR +=3D nsxiv
=C2=A0 =C2=A0 =C2=A0SUBDIR +=3D nurbs++
+=C2=A0 =C2=A0 SUBDIR +=3D nvidia-drm-510-kmod
+=C2=A0 =C2=A0 SUBDIR +=3D nvidia-drm-515-kmod
+=C2=A0 =C2=A0 SUBDIR +=3D nvidia-drm-kmod
=C2=A0 =C2=A0 =C2=A0SUBDIR +=3D nvidia-texture-tools
=C2=A0 =C2=A0 =C2=A0SUBDIR +=3D ocaml-cairo
=C2=A0 =C2=A0 =C2=A0SUBDIR +=3D ocaml-images
diff --git a/graphics/nvidia-drm-510-kmod/Makefile b/graphics/nvidia-drm-51= 0-kmod/Makefile
new file mode 100644
index 000000000000..13b2c26c6c3f
--- /dev/null
+++ b/graphics/nvidia-drm-510-kmod/Makefile
@@ -0,0 +1,10 @@
+PORTNAME=3D=C2=A0 =C2=A0 =C2=A0 nvidia-drm-510-kmod
+PORTVERSION=3D=C2=A0 =C2=A0${NVIDIA_DISTVERSION}
+CATEGORIES=3D=C2=A0 =C2=A0 graphics
+
+RUN_DEPENDS+=3D=C2=A0 ${KMODDIR}/drm.ko:graphics/drm-510-kmod
+
+.include "${.CURDIR}/../drm-510-kmod/Makefile.version"
+.include "${.CURDIR}/../nvidia-drm-kmod/Makefile.common"
+
+.include <bsd.port.mk>
diff --git a/graphics/nvidia-drm-510-kmod/distinfo b/graphics/nvidia-drm-51= 0-kmod/distinfo
new file mode 100644
index 000000000000..3b60248b1ff9
--- /dev/null
+++ b/graphics/nvidia-drm-510-kmod/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP =3D 1692304583
+SHA256 (amshafer-nvidia-driver-535.98-nvidia-drm-510-kmod-535.98_GH0.tar.g= z) =3D c11fb17f9f8cddc11ec699c63bbc288bd1124537dd7ae698538ebd8bb399e225
+SIZE (amshafer-nvidia-driver-535.98-nvidia-drm-510-kmod-535.98_GH0.tar.gz)= =3D 185499361
+SHA256 (freebsd-drm-kmod-drm_v5.10.163_6_GH0.tar.gz) =3D 342eb5073f318d186= 67c605e639bd85e48de3be25861d8a730d0ca3dd7ba7726
+SIZE (freebsd-drm-kmod-drm_v5.10.163_6_GH0.tar.gz) =3D 20096515
diff --git a/graphics/nvidia-drm-510-kmod/files/20-nvidia-dr= m-outputclass.conf.in b/graphics/nvidia-drm-510-kmod/files/20-nvidia-drm-outputclass.conf.in
new file mode 100644
index 000000000000..15496138f63a
--- /dev/null
+++ b/graphics/nvidia-drm-510-kmod/files/20-nvidia-drm-outpu= tclass.conf.in
@@ -0,0 +1,8 @@
+Section "OutputClass"
+=C2=A0 =C2=A0 Identifier "nvidia"
+=C2=A0 =C2=A0 MatchDriver "nvidia-drm"
+=C2=A0 =C2=A0 Driver "nvidia"
+=C2=A0 =C2=A0 Option "PrimaryGPU" "yes"
+=C2=A0 =C2=A0 ModulePath "%%LOCALBASE%%/lib/nvidia/xorg"
+=C2=A0 =C2=A0 ModulePath "%%LOCALBASE%%/lib/xorg/modules"
+EndSection
diff --git a/graphics/nvidia-drm-510-kmod/pkg-descr b/graphics/nvidia-drm-5= 10-kmod/pkg-descr
new file mode 100644
index 000000000000..64ec67472ed7
--- /dev/null
+++ b/graphics/nvidia-drm-510-kmod/pkg-descr
@@ -0,0 +1,3 @@
+FreeBSD port of Linux's nvidia-drm.ko Kernel module.
+
+This version is compatible with drm.ko 5.10.
diff --git a/graphics/nvidia-drm-515-kmod/Makefile b/graphics/nvidia-drm-51= 5-kmod/Makefile
new file mode 100644
index 000000000000..c20e7d25f126
--- /dev/null
+++ b/graphics/nvidia-drm-515-kmod/Makefile
@@ -0,0 +1,10 @@
+PORTNAME=3D=C2=A0 =C2=A0 =C2=A0 nvidia-drm-515-kmod
+PORTVERSION=3D=C2=A0 =C2=A0${NVIDIA_DISTVERSION}
+CATEGORIES=3D=C2=A0 =C2=A0 graphics
+
+RUN_DEPENDS+=3D=C2=A0 ${KMODDIR}/drm.ko:graphics/drm-515-kmod
+
+.include "${.CURDIR}/../drm-515-kmod/Makefile.version"
+.include "${.CURDIR}/../nvidia-drm-kmod/Makefile.common"
+
+.include <bsd.port.mk>
diff --git a/graphics/nvidia-drm-515-kmod/distinfo b/graphics/nvidia-drm-51= 5-kmod/distinfo
new file mode 100644
index 000000000000..ea026477bc17
--- /dev/null
+++ b/graphics/nvidia-drm-515-kmod/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP =3D 1692308433
+SHA256 (amshafer-nvidia-driver-535.98-nvidia-drm-515-kmod-535.98_GH0.tar.g= z) =3D 973bb7d81e894767f1e9e5cbe394be15289084098d782fb4adb3758a8face51c
+SIZE (amshafer-nvidia-driver-535.98-nvidia-drm-515-kmod-535.98_GH0.tar.gz)= =3D 185499765
+SHA256 (freebsd-drm-kmod-drm_v5.15.25_5_GH0.tar.gz) =3D bd5eb5a39cd46f532d= 0310958bfc2870da1c1a003e92874f18f7f88c8baac6a5
+SIZE (freebsd-drm-kmod-drm_v5.15.25_5_GH0.tar.gz) =3D 26084713
diff --git a/graphics/nvidia-drm-515-kmod/files/20-nvidia-dr= m-outputclass.conf.in b/graphics/nvidia-drm-515-kmod/files/20-nvidia-drm-outputclass.conf.in
new file mode 100644
index 000000000000..15496138f63a
--- /dev/null
+++ b/graphics/nvidia-drm-515-kmod/files/20-nvidia-drm-outpu= tclass.conf.in
@@ -0,0 +1,8 @@
+Section "OutputClass"
+=C2=A0 =C2=A0 Identifier "nvidia"
+=C2=A0 =C2=A0 MatchDriver "nvidia-drm"
+=C2=A0 =C2=A0 Driver "nvidia"
+=C2=A0 =C2=A0 Option "PrimaryGPU" "yes"
+=C2=A0 =C2=A0 ModulePath "%%LOCALBASE%%/lib/nvidia/xorg"
+=C2=A0 =C2=A0 ModulePath "%%LOCALBASE%%/lib/xorg/modules"
+EndSection
diff --git a/graphics/nvidia-drm-515-kmod/pkg-descr b/graphics/nvidia-drm-5= 15-kmod/pkg-descr
new file mode 100644
index 000000000000..598cb9411e54
--- /dev/null
+++ b/graphics/nvidia-drm-515-kmod/pkg-descr
@@ -0,0 +1,3 @@
+FreeBSD port of Linux's nvidia-drm.ko Kernel module.
+
+This version is compatible with drm.ko 5.15.
diff --git a/graphics/nvidia-drm-kmod/Makefile b/graphics/nvidia-drm-kmod/M= akefile
new file mode 100644
index 000000000000..cc226f22dbf2
--- /dev/null
+++ b/graphics/nvidia-drm-kmod/Makefile
@@ -0,0 +1,25 @@
+PORTNAME=3D=C2=A0 =C2=A0 =C2=A0 nvidia-drm-kmod
+PORTVERSION=3D=C2=A0 =C2=A0${NVIDIA_DISTVERSION}
+CATEGORIES=3D=C2=A0 =C2=A0 graphics kld
+
+MAINTAINER=3D=C2=A0 =C2=A0 ashafer@badland.io
+COMMENT=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0NVIDIA DRM Kernel Module
+WWW=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0https://git= hub.com/amshafer/nvidia-driver
+
+USES=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 metaport
+
+.include "${.CURDIR}/../../x11/nvidia-driver/Makefile.version" +.include <bsd.port.pre.mk>
+
+# Only supported on FreeBSD 13.1+
+.if ${OPSYS} !=3D FreeBSD
+IGNORE=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 not suppo= rted on anything but FreeBSD (missing linuxkpi functionality)
+.else
+.=C2=A0 if ${OSVERSION} >=3D 1301000
+RUN_DEPENDS+=3D=C2=A0 ${KMODDIR}/nvidia-drm.ko:graphics/nvidia-drm-510-kmo= d
+.=C2=A0 else
+IGNORE=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 not suppo= rted for this FreeBSD version
+.=C2=A0 endif
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/graphics/nvidia-drm-kmod/Makefile.common b/graphics/nvidia-drm= -kmod/Makefile.common
new file mode 100644
index 000000000000..f97266bc03e1
--- /dev/null
+++ b/graphics/nvidia-drm-kmod/Makefile.common
@@ -0,0 +1,32 @@
+# Common rules for nvidia-drm-*-kmod ports
+
+MAINTAINER=3D=C2=A0 =C2=A0 ashafer@badland.io
+COMMENT=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0NVIDIA DRM Kernel Module
+WWW=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0https://git= hub.com/amshafer/nvidia-driver
+
+ONLY_FOR_ARCHS=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0 amd64
+USES=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 kmod uidfix
+
+SUB_FILES=3D=C2=A0 =C2=A0 =C2=A020-nvidia-drm-outputclass.conf
+
+RUN_DEPENDS+=3D=C2=A0 ${KMODDIR}/nvidia.ko:x11/nvidia-driver
+
+.include "${.CURDIR}/../../x11/nvidia-driver/Makefile.version" +
+LICENSE_FILE=3D=C2=A0 ${WRKSRC}/nvidia/doc/license.txt
+
+NVIDIA_GH_TAGNAME=3D=C2=A0 =C2=A0 =C2=A0${PORTNAME}-${PORTVERSION}
+USE_GITHUB=3D=C2=A0 =C2=A0 yes
+GH_ACCOUNT=3D=C2=A0 =C2=A0 amshafer freebsd:drm
+GH_PROJECT=3D=C2=A0 =C2=A0 nvidia-driver drm-kmod:drm
+GH_TAGNAME:=3D=C2=A0 =C2=A0${NVIDIA_GH_TAGNAME} ${DRM_KMOD_GH_TAGNAME}:drm=
+
+PLIST_FILES=3D=C2=A0 =C2=A0${KMODDIR}/nvidia-drm.ko \
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0share/X11/xorg.conf= .d/20-nvidia-drm-outputclass.conf
+
+MAKE_ENV+=3D=C2=A0 =C2=A0 =C2=A0DRMKMODDIR=3D${WRKDIR}/drm-kmod-${DRM_KMOD= _GH_TAGNAME}/
+WRKSRC_SUBDIR=3D nvidia/src/nvidia-drm/
+
+post-install:
+=C2=A0 =C2=A0 =C2=A0 =C2=A0${MKDIR} ${STAGEDIR}${PREFIX}/share/X11/xorg.co= nf.d/
+=C2=A0 =C2=A0 =C2=A0 =C2=A0${INSTALL_DATA} ${WRKDIR}/20-nvidia-drm-outputc= lass.conf ${STAGEDIR}${PREFIX}/share/X11/xorg.conf.d/
diff --git a/graphics/nvidia-drm-kmod/pkg-descr b/graphics/nvidia-drm-kmod/= pkg-descr
new file mode 100644
index 000000000000..9fea5fd244d8
--- /dev/null
+++ b/graphics/nvidia-drm-kmod/pkg-descr
@@ -0,0 +1 @@
+FreeBSD port of Linux's nvidia-drm.ko Kernel module.

Nice to have this port!

I=E2=80=99ll document it in the = handbook :)
--000000000000a932c006035e7e25--