From nobody Fri Jan 06 22:13:07 2023 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 4NpczR50sgz2qsFp; Fri, 6 Jan 2023 22:13:07 +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 4NpczR4TTZz41gK; Fri, 6 Jan 2023 22:13:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673043187; 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=YX6L5b2fBZz7UAZYPXklmtaBWGadKlYjjnLJgKmXNHU=; b=bu8wjjTXjzhOMlinw7n8n6QeD3LYy7HGY3GKNgeTEMeWag6hE1qj6kCUK0lUAHUeE+GAcS Z39xDglkRV3zoUEEIVmbYS0B1/S5GZHxxCbHJKvHJPfnpe2ovSN1BywqCsHhiabOxqUqFs relJ9/yg6vL8Z4OWokl9Lq+hXNZ/bXkeNfyUyH54k4myQpHuwtbZI7MATGKb7G0B7pQ3Xd tiYCVlIOAjDRcbwum37FmrIFd7txRzny50/139SNSezWMN7WE41CLo5wDr5ZuHBsqtHAJM HpaVvAj/b90rFcyZVmEmZ7vo9dnduDTkICmmURHMlLRr8SImJMKxB1PVB+6nkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673043187; 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=YX6L5b2fBZz7UAZYPXklmtaBWGadKlYjjnLJgKmXNHU=; b=okP4UPqr+6jArV740DlC0wYzb0Zt2Iqmz+r0qvX4X1i388uM/Qmdwa3zp+D0qXYWo6mc1b kY80P8yQf97/jT2TBO6Exfu/CJvZZooVE2YTJ0tpGM76jssllIW2t51VFUsyM635391Rj3 mI5g9uLLULCtDETf6ducERTTky/R2uqKZoe2NygRlPrlvpwFB7or2Jr/zW/TWWrJyjYvTc rj5W1ujlFTpffgvak0NxIk+DG3+f5R7zGvAHtrqZ8zFFEbDTIFKank3TOx/EZ09PmsHB52 JCVNMZd/SMb15992BrdRL542y5rNbG7r89FrIV6mMYKCHVRX9rC3gAFX6E+54A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1673043187; a=rsa-sha256; cv=none; b=ydAgx/0AglhXBBn4mO0RUQFEphTC7P9Qb+IUkoj116jKEmvJH7rMWyYc0pLApt9qvxUcvS MU9ycet+9I4WTafDwWy4EuMnNenbrJhxFH0KOrySwVrDi94odmAh375CVoEnGsm1YpbFUQ E+Vj1CIp5VcKRmx5iAM3UhNRztzo53OQhMdyraVZ6+WvJg/4gYpw9wUneQqer5kgzs50wE r1Xe2OinPxpZHASVSj62XIZchF9+C2gaANFC0AaKOeEYY0FihqR7X6LcTvc0GfJ4rPLmXm NZztj4OlDiBY44YD0hhnvg1DtOCmf4/iTfOVQix8lnHVFg1NRlwUHjpEu3MpMg== 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 4NpczR3WvKzm8q; Fri, 6 Jan 2023 22:13:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 306MD7Fc067887; Fri, 6 Jan 2023 22:13:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 306MD7XO067886; Fri, 6 Jan 2023 22:13:07 GMT (envelope-from git) Date: Fri, 6 Jan 2023 22:13:07 GMT Message-Id: <202301062213.306MD7XO067886@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: c7ae8f5fe345 - main - graphics/bgfx: New port: Cross-platform, graphics API agnostic rendering library 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: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c7ae8f5fe345c635b298b1aebc6ace0834c1a0ae Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=c7ae8f5fe345c635b298b1aebc6ace0834c1a0ae commit c7ae8f5fe345c635b298b1aebc6ace0834c1a0ae Author: Yuri Victorovich AuthorDate: 2023-01-06 15:31:22 +0000 Commit: Yuri Victorovich CommitDate: 2023-01-06 15:31:22 +0000 graphics/bgfx: New port: Cross-platform, graphics API agnostic rendering library --- graphics/Makefile | 1 + graphics/bgfx/Makefile | 31 ++++++ graphics/bgfx/distinfo | 9 ++ .../bgfx/files/patch-bgfx_tools_shaderc_shaderc.h | 11 ++ graphics/bgfx/files/patch-bx_include_bx_bx.h | 11 ++ graphics/bgfx/pkg-descr | 2 + graphics/bgfx/pkg-plist | 122 +++++++++++++++++++++ 7 files changed, 187 insertions(+) diff --git a/graphics/Makefile b/graphics/Makefile index 95f7d04c4a1b..a61660e7b784 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -74,6 +74,7 @@ SUBDIR += azpainterb SUBDIR += barcode SUBDIR += batik + SUBDIR += bgfx SUBDIR += birdfont SUBDIR += bitmap SUBDIR += blend2d diff --git a/graphics/bgfx/Makefile b/graphics/bgfx/Makefile new file mode 100644 index 000000000000..8d9d7232922c --- /dev/null +++ b/graphics/bgfx/Makefile @@ -0,0 +1,31 @@ +PORTNAME= bgfx +DISTVERSIONPREFIX= v +DISTVERSION= 1.118.8398-366 +CATEGORIES= graphics + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Cross-platform, graphics API agnostic rendering library +WWW= https://bkaradzic.github.io/bgfx/overview.html + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= cmake compiler:c++14-lang gl localbase:ldflags xorg +USE_GL= glu opengl +USE_XORG= ice x11 xext sm + +USE_GITHUB= yes +GH_ACCOUNT= bkaradzic +GH_PROJECT= bgfx.cmake +GH_TUPLE= bkaradzic:bgfx:5f435ea:bgfx/bgfx \ + bkaradzic:bimg:1af9054:bimg/bimg \ + bkaradzic:bx:aed1086:bx/bx + +CMAKE_OFF= BGFX_BUILD_EXAMPLES BGFX_INSTALL_EXAMPLES \ + BGFX_CUSTOM_TARGETS +CMAKE_ARGS= -DBGFX_LIBRARY_TYPE=SHARED + +post-install: + @${RM} -r ${STAGEDIR}${PREFIX}/share/licences + +.include diff --git a/graphics/bgfx/distinfo b/graphics/bgfx/distinfo new file mode 100644 index 000000000000..2e0fd0dbc95c --- /dev/null +++ b/graphics/bgfx/distinfo @@ -0,0 +1,9 @@ +TIMESTAMP = 1673038283 +SHA256 (bkaradzic-bgfx.cmake-v1.118.8398-366_GH0.tar.gz) = d4a4312d6b067ced484dc2e38c3cd51c30a61cd7297ba4ef45144ad718c079d8 +SIZE (bkaradzic-bgfx.cmake-v1.118.8398-366_GH0.tar.gz) = 22292 +SHA256 (bkaradzic-bgfx-5f435ea_GH0.tar.gz) = 8e8d13a2f91414ab02b10b6d76916e93534d2a39cce70cdf54e63ae6f775bde5 +SIZE (bkaradzic-bgfx-5f435ea_GH0.tar.gz) = 102901169 +SHA256 (bkaradzic-bimg-1af9054_GH0.tar.gz) = af59935d28d4ea590453419d4c7a4225ba72effb882c74f59c50a6f8cf98a466 +SIZE (bkaradzic-bimg-1af9054_GH0.tar.gz) = 756042 +SHA256 (bkaradzic-bx-aed1086_GH0.tar.gz) = beea4a3f11b799dd4b1edcbb19e141e8ef6ba0822becd9c55b559ed19fc1362a +SIZE (bkaradzic-bx-aed1086_GH0.tar.gz) = 1588995 diff --git a/graphics/bgfx/files/patch-bgfx_tools_shaderc_shaderc.h b/graphics/bgfx/files/patch-bgfx_tools_shaderc_shaderc.h new file mode 100644 index 000000000000..01ab9a7806f7 --- /dev/null +++ b/graphics/bgfx/files/patch-bgfx_tools_shaderc_shaderc.h @@ -0,0 +1,11 @@ +--- bgfx/tools/shaderc/shaderc.h.orig 2023-01-06 21:05:59 UTC ++++ bgfx/tools/shaderc/shaderc.h +@@ -15,7 +15,7 @@ namespace bgfx + # define SHADERC_CONFIG_HLSL BX_PLATFORM_WINDOWS + #endif // SHADERC_CONFIG_HLSL + +-#include ++//#include + #include + #include + #include diff --git a/graphics/bgfx/files/patch-bx_include_bx_bx.h b/graphics/bgfx/files/patch-bx_include_bx_bx.h new file mode 100644 index 000000000000..dbb636dd5587 --- /dev/null +++ b/graphics/bgfx/files/patch-bx_include_bx_bx.h @@ -0,0 +1,11 @@ +--- bx/include/bx/bx.h.orig 2023-01-06 20:55:11 UTC ++++ bx/include/bx/bx.h +@@ -6,7 +6,7 @@ + #ifndef BX_H_HEADER_GUARD + #define BX_H_HEADER_GUARD + +-#include // alloca ++//#include // alloca + #include // va_list + #include // uint32_t + #include // size_t diff --git a/graphics/bgfx/pkg-descr b/graphics/bgfx/pkg-descr new file mode 100644 index 000000000000..2e23d5dcb9e4 --- /dev/null +++ b/graphics/bgfx/pkg-descr @@ -0,0 +1,2 @@ +Cross-platform, graphics API agnostic, "Bring Your Own Engine/Framework" style +rendering library. diff --git a/graphics/bgfx/pkg-plist b/graphics/bgfx/pkg-plist new file mode 100644 index 000000000000..7b5f312f72bf --- /dev/null +++ b/graphics/bgfx/pkg-plist @@ -0,0 +1,122 @@ +bin/geometryc +bin/geometryv +bin/shaderc +bin/texturec +bin/texturev +include/bgfx/bgfx.h +include/bgfx/bgfx_compute.sh +include/bgfx/bgfx_shader.sh +include/bgfx/c99/bgfx.h +include/bgfx/defines.h +include/bgfx/embedded_shader.h +include/bgfx/platform.h +include/bimg/bimg.h +include/bimg/decode.h +include/bimg/encode.h +include/bx/allocator.h +include/bx/bounds.h +include/bx/bx.h +include/bx/bx.h.orig +include/bx/commandline.h +include/bx/config.h +include/bx/constants.h +include/bx/cpu.h +include/bx/debug.h +include/bx/easing.h +include/bx/endian.h +include/bx/error.h +include/bx/file.h +include/bx/filepath.h +include/bx/float4x4_t.h +include/bx/handlealloc.h +include/bx/hash.h +include/bx/inline/allocator.inl +include/bx/inline/bounds.inl +include/bx/inline/bx.inl +include/bx/inline/cpu.inl +include/bx/inline/easing.inl +include/bx/inline/endian.inl +include/bx/inline/error.inl +include/bx/inline/float4x4_t.inl +include/bx/inline/handlealloc.inl +include/bx/inline/hash.inl +include/bx/inline/math.inl +include/bx/inline/mpscqueue.inl +include/bx/inline/mutex.inl +include/bx/inline/os.inl +include/bx/inline/pixelformat.inl +include/bx/inline/readerwriter.inl +include/bx/inline/ringbuffer.inl +include/bx/inline/rng.inl +include/bx/inline/simd128_langext.inl +include/bx/inline/simd128_neon.inl +include/bx/inline/simd128_ref.inl +include/bx/inline/simd128_sse.inl +include/bx/inline/simd128_swizzle.inl +include/bx/inline/simd256_avx.inl +include/bx/inline/simd256_ref.inl +include/bx/inline/simd_ni.inl +include/bx/inline/sort.inl +include/bx/inline/spscqueue.inl +include/bx/inline/string.inl +include/bx/inline/typetraits.inl +include/bx/inline/uint32_t.inl +include/bx/macros.h +include/bx/maputil.h +include/bx/math.h +include/bx/mpscqueue.h +include/bx/mutex.h +include/bx/os.h +include/bx/pixelformat.h +include/bx/platform.h +include/bx/process.h +include/bx/readerwriter.h +include/bx/ringbuffer.h +include/bx/rng.h +include/bx/semaphore.h +include/bx/settings.h +include/bx/simd_t.h +include/bx/sort.h +include/bx/spscqueue.h +include/bx/string.h +include/bx/thread.h +include/bx/timer.h +include/bx/typetraits.h +include/bx/uint32_t.h +include/bx/url.h +include/compat/freebsd/alloca.h +include/compat/freebsd/dirent.h +include/compat/freebsd/malloc.h +include/compat/freebsd/signal.h +include/compat/ios/malloc.h +include/compat/linux/sal.h +include/compat/mingw/alloca.h +include/compat/mingw/dirent.h +include/compat/mingw/sal.h +include/compat/mingw/salieri.h +include/compat/mingw/specstrings_strict.h +include/compat/mingw/specstrings_undef.h +include/compat/msvc/alloca.h +include/compat/msvc/dirent.h +include/compat/msvc/inttypes.h +include/compat/msvc/pre1600/stdint.h +include/compat/msvc/stdbool.h +include/compat/osx/malloc.h +include/tinystl/LICENSE +include/tinystl/allocator.h +include/tinystl/buffer.h +include/tinystl/hash.h +include/tinystl/hash_base.h +include/tinystl/new.h +include/tinystl/stddef.h +include/tinystl/string.h +include/tinystl/traits.h +include/tinystl/unordered_map.h +include/tinystl/unordered_set.h +include/tinystl/vector.h +lib/cmake/bgfx/bgfxConfig.cmake +lib/cmake/bgfx/bgfxConfigVersion.cmake +lib/cmake/bgfx/bgfxTargets-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/bgfx/bgfxTargets.cmake +lib/cmake/bgfx/bgfxToolUtils.cmake +lib/libbgfx.so