From nobody Fri Mar 01 16:48:13 2024 X-Original-To: dev-commits-ports-main@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 4TmYtj5RFmz5Ch4r; Fri, 1 Mar 2024 16:48:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TmYtj4y5zz4P09; Fri, 1 Mar 2024 16:48:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709311693; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=z5/hT135pkwD41jgN/k7ZozPJazRq/r4iErRIL1TYnI=; b=u9OGotieiDM8+ndyLrQ+UNey+7h6ALAKvVfF32GHtj0E79raMUgrv/nnPmJsmKoVa6ug84 26NQw+nPsY45+paHBJEyDXXaV7piF18zrCU/ITnPVUxkBZ6r+lu4VjFakCp8DTQqO8G0gH h2mi3xic5hsKaWO8Kv874n/gR+jzfhgI7eWVJJfj2SD3ILQ2wFv3T587LhFkDwX8ozYU3r eJ1xItQCchVeSfxyWRgsMC5ZpoM/j8r4OkYYtYzbx7TLT/rjqWKioUX2vzJKLSbPN6eLPU nW1fSTiPgWMTUijJNxl1CupHv9tALwEJstB0pmTqd9PJf/noeVytPem5wVYL9A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709311693; a=rsa-sha256; cv=none; b=dVlfMgZrz/maLjE9Q72cJLfLbA1pelXQ4i1dft8lCHDhqAcOZxrBrTA7ZUDtprq7jLf2X4 Jszk7tWgcfBmgBwICQocWkumpA87CEfjMKvkQtSlpiFjzzJv/cd3qmzy7P6gqrF2VJj7Qz D92Oi1drJ4/fShryq1m2BWxDKOt3JaGmI+v5Ak00qlpalxeb7f9sC9Rp+YyIqytINVCjUn l2lnYMwpp6CF+50UppN1YEzYhvwP+awRkIzeSzEBYU2vXs3Z1COqCX3p1n9Rhtb58c2psj 5V6mYkzmOXOWE9a/rYhc08zundQY2E7sHgDJRj94/DOsTFSqYNRuyIISIJyAsQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709311693; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=z5/hT135pkwD41jgN/k7ZozPJazRq/r4iErRIL1TYnI=; b=DLDISzSjqmECiSvrmHL1Uei05PjgfFGL+hzdPoEugr14dwRd+znHKOKoCtRfU2hHaZgPc9 JM5zKvaJoB0U/7WGnvxCYr6QC87VbxjAmzd/H1R1h+LD9tdatWLtPsyf7f/Rt5q0zhw1Ie vZyofYe1db2ubBxJT513kWMvCSYMWTeZloASMjkPURb+OOv/zU6uqaJt6ISsKupEuAW7Pa Qcy+glSlEb8/rRYVRoHW/GZOMO4butsNkxCQ/3MbEk9gds2FSVvUBrUSDj9Bl4yFMyQty7 b0/rMTgk1QqXXZRagFCqrKstyrgopvK6ScUYcN65QEN4ScWZBxanyxwAWI7BUg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TmYtj4QMzzYnF; Fri, 1 Mar 2024 16:48:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 421GmDgq094385; Fri, 1 Mar 2024 16:48:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 421GmDGu094382; Fri, 1 Mar 2024 16:48:13 GMT (envelope-from git) Date: Fri, 1 Mar 2024 16:48:13 GMT Message-Id: <202403011648.421GmDGu094382@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Vladimir Druzenko Subject: git: f892ca876965 - main - graphics/khronos-texture: new port - required for games/lwjgl3 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: vvd X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f892ca876965b22946bfdae27ad875eecce9a3b8 Auto-Submitted: auto-generated The branch main has been updated by vvd: URL: https://cgit.FreeBSD.org/ports/commit/?id=f892ca876965b22946bfdae27ad875eecce9a3b8 commit f892ca876965b22946bfdae27ad875eecce9a3b8 Author: Vladimir Druzenko AuthorDate: 2024-03-01 16:45:23 +0000 Commit: Vladimir Druzenko CommitDate: 2024-03-01 16:48:00 +0000 graphics/khronos-texture: new port - required for games/lwjgl3 This port required for build lwjgl 3, and lwjgl 3 required for run Java Minecraft Client 1.20.x on FreeBSD without linux compatibility layer. PR: 275279 269879 269900 Approved by: arrowd (mentor) Differential Revision: https://reviews.freebsd.org/D44120 --- graphics/khronos-texture/Makefile | 45 ++++++++++++++++++++++++++++++++++++++ graphics/khronos-texture/distinfo | 3 +++ graphics/khronos-texture/pkg-descr | 11 ++++++++++ graphics/khronos-texture/pkg-plist | 16 ++++++++++++++ 4 files changed, 75 insertions(+) diff --git a/graphics/khronos-texture/Makefile b/graphics/khronos-texture/Makefile new file mode 100644 index 000000000000..7661a24beae3 --- /dev/null +++ b/graphics/khronos-texture/Makefile @@ -0,0 +1,45 @@ +PORTNAME= khronos-texture +DISTVERSION= 4.3.1 +CATEGORIES= graphics +DISTVERSIONPREFIX= v + +MAINTAINER= vvd@FreeBSD.org +COMMENT= Khronos Texture is a container for textures for OpenGL/Vulkan/etc +WWW= https://github.com/KhronosGroup/KTX-Software + +LICENSE= APACHE20 + +BUILD_DEPENDS= bash:shells/bash + +USES= cmake compiler:c++11-lib python:build + +CMAKE_OFF= FMT_INSTALL + +USE_GITHUB= yes +GH_ACCOUNT= KhronosGroup +GH_PROJECT= KTX-Software + +OPTIONS_SINGLE= SIMD +OPTIONS_SINGLE_SIMD= AVX2 NEON NONE SSE2 SSE41 +OPTIONS_EXCLUDE= ${${ARCH} != amd64 && ${ARCH} != i386:?AVX2 SSE2 SSE41:} +OPTIONS_EXCLUDE+= ${${ARCH} != armv6 && ${ARCH} != armv7 && ${ARCH} != aarch64:?NEON:} +OPTIONS_DEFAULT_aarch64= NEON +OPTIONS_DEFAULT_amd64= SSE2 +OPTIONS_DEFAULT_armv7= NEON + +AVX2_DESC= Use the AVX2 instruction set +AVX2_CMAKE_ON= -DASTCENC_ISA_AVX2:BOOL=ON -DBASISU_SUPPORT_SSE:BOOL=ON + +NEON_DESC= Use the NEON instruction set +NEON_CMAKE_ON= -DASTCENC_ISA_NEON:BOOL=ON + +NONE_DESC= Don't use any SIMD instructions +NONE_CMAKE_ON= -DASTCENC_ISA_NONE:BOOL=ON -DBASISU_SUPPORT_SSE:BOOL=OFF + +SSE2_DESC= Use the SSE2 instruction set +SSE2_CMAKE_ON= -DASTCENC_ISA_SSE2:BOOL=ON -DBASISU_SUPPORT_SSE:BOOL=OFF + +SSE41_DESC= Use the SSE4.1 instruction set +SSE41_CMAKE_ON= -DASTCENC_ISA_SSE41:BOOL=ON -DBASISU_SUPPORT_SSE:BOOL=ON + +.include diff --git a/graphics/khronos-texture/distinfo b/graphics/khronos-texture/distinfo new file mode 100644 index 000000000000..01d97fded529 --- /dev/null +++ b/graphics/khronos-texture/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1709307214 +SHA256 (KhronosGroup-KTX-Software-v4.3.1_GH0.tar.gz) = 98f051c91e723f85f3a5136a75dfa0ee186d72cc93223fd0daa1b3c8077ccb69 +SIZE (KhronosGroup-KTX-Software-v4.3.1_GH0.tar.gz) = 252417872 diff --git a/graphics/khronos-texture/pkg-descr b/graphics/khronos-texture/pkg-descr new file mode 100644 index 000000000000..a0ed424eb75b --- /dev/null +++ b/graphics/khronos-texture/pkg-descr @@ -0,0 +1,11 @@ +KTX (Khronos Texture) is a lightweight container for textures for OpenGL(R), +Vulkan(R) and other GPU APIs. KTX files contain all the parameters needed +for texture loading. A single file can contain anything from a simple +base-level 2D texture through to a cubemap array texture with mipmaps. +Contained textures can be in a Basis Universal format, in any of the +block-compressed formats supported by OpenGL family and Vulkan APIs and +extensions or in an uncompressed single-plane format. Basis Universal +currently encompasses two formats that can be quickly transcoded to any +GPU-supported format: LZ/ETC1S, which combines block-compression and +supercompression, and UASTC, a block-compressed format. Formats other than +LZ/ETC1S can be supercompressed with Zstd and ZLIB. diff --git a/graphics/khronos-texture/pkg-plist b/graphics/khronos-texture/pkg-plist new file mode 100644 index 000000000000..fff210b157c0 --- /dev/null +++ b/graphics/khronos-texture/pkg-plist @@ -0,0 +1,16 @@ +bin/ktx +bin/ktx2check +bin/ktx2ktx2 +bin/ktxinfo +bin/ktxsc +bin/toktx +include/KHR/khr_df.h +include/ktx.h +include/ktxvulkan.h +lib/cmake/ktx/KtxConfig.cmake +lib/cmake/ktx/KtxConfigVersion.cmake +lib/cmake/ktx/KtxTargets-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/ktx/KtxTargets.cmake +lib/libktx.so +lib/libktx.so.0 +lib/libktx.so.0.0.0