git: 14b221f06428 - main - misc/cuttlefish: New port: Texture compression library and tool

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 20 Jun 2022 21:27:22 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=14b221f06428730f59f093119fa65e3dcdc9c487

commit 14b221f06428730f59f093119fa65e3dcdc9c487
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-06-20 21:23:38 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-06-20 21:23:38 +0000

    misc/cuttlefish: New port: Texture compression library and tool
---
 misc/Makefile             |  1 +
 misc/cuttlefish/Makefile  | 36 ++++++++++++++++++++++++++++++++++++
 misc/cuttlefish/distinfo  | 23 +++++++++++++++++++++++
 misc/cuttlefish/pkg-descr |  7 +++++++
 misc/cuttlefish/pkg-plist | 12 ++++++++++++
 5 files changed, 79 insertions(+)

diff --git a/misc/Makefile b/misc/Makefile
index d8c8cad29700..779b502f1758 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -63,6 +63,7 @@
     SUBDIR += cs
     SUBDIR += cstream
     SUBDIR += ctm
+    SUBDIR += cuttlefish
     SUBDIR += cxxmatrix
     SUBDIR += dahdi
     SUBDIR += dahdi-kmod
diff --git a/misc/cuttlefish/Makefile b/misc/cuttlefish/Makefile
new file mode 100644
index 000000000000..e33461e1a6b4
--- /dev/null
+++ b/misc/cuttlefish/Makefile
@@ -0,0 +1,36 @@
+PORTNAME=	cuttlefish
+DISTVERSIONPREFIX=	v
+DISTVERSION=	2.5.5-2
+DISTVERSIONSUFFIX=	-g7e3c57c
+CATEGORIES=	misc
+PKGNAMESUFFIX=	-texture-compressor
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Texture compression library and tool
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+TEST_DEPENDS=	ispc:devel/ispc
+
+USES=		cmake:testing compiler:c++11-lang
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	akb825
+GH_PROJECT=	Cuttlefish
+GH_TUPLE=	akb825:freeimage:dae76e95cd4a9fbb58b0a6d635fd3c3f4b222076:akb825_freeimage/lib/FreeImage \
+		akb825:etc2comp:10ec1fc4987c5a81c48c6bf6319bb77389a5f23a:akb825_etc2comp/lib/etc2comp \
+		ARM-software:astc-encoder:f48cc27b2528286126c116f42f2792ed2fa13755:ARM_software_astc_encoder/lib/astc-encoder \
+		g-truc:glm:bf71a834948186f4097caa076cd2663c69a10e1e:g_truc_glm/lib/glm \
+		akb825:PVRTexToolLib:015a0f7b125394d7628e5d562fb8d3e5cb7cac08:akb825_PVRTexToolLib/lib/PVRTexToolLib \
+		richgel999:bc7enc_rdo:f965c3fd8a39ef91f8bf8cddb7d2eee83a95a1c2:richgel999_bc7enc_rdo/lib/bc7enc_rdo \
+		akb825:compressonator:a4d078359f74053564a9b7a9bd0b5bb2fa0a65a7:akb825_compressonator/lib/compressonator \
+		GameTechDev:ISPCTextureCompressor:14d998c02b71c356ff3a1ec1adc9243a517bbf38:GameTechDev_ISPCTextureCompressor/lib/ISPCTextureCompressor \
+		KonajuGames:libsquish:7543ea155b475f129d3733b98b7f17f1fa274cf1:KonajuGames_libsquish/lib/libsquish \
+		google:googletest:703bd9caab50b139428cea1aaff9974ebee5742e:google_googletest/lib/astc-encoder/Source/GoogleTest
+
+CMAKE_OFF=	CUTTLEFISH_BUILD_DOCS CUTTLEFISH_BUILD_TESTS
+CMAKE_ON=	CUTTLEFISH_SHARED
+CMAKE_TESTING_ON=	CUTTLEFISH_BUILD_TESTS
+
+.include <bsd.port.mk>
diff --git a/misc/cuttlefish/distinfo b/misc/cuttlefish/distinfo
new file mode 100644
index 000000000000..66ab4e4934c0
--- /dev/null
+++ b/misc/cuttlefish/distinfo
@@ -0,0 +1,23 @@
+TIMESTAMP = 1655759044
+SHA256 (akb825-Cuttlefish-v2.5.5-2-g7e3c57c_GH0.tar.gz) = 775bd8a4c8f1a739980c89e67631972133b22e36a62d5a588470492dd3d4d50e
+SIZE (akb825-Cuttlefish-v2.5.5-2-g7e3c57c_GH0.tar.gz) = 110842
+SHA256 (akb825-freeimage-dae76e95cd4a9fbb58b0a6d635fd3c3f4b222076_GH0.tar.gz) = d0648ffca8a71ff988344285f2c7f29c709b6e62c6fcb8edaaad4a189d9de8dc
+SIZE (akb825-freeimage-dae76e95cd4a9fbb58b0a6d635fd3c3f4b222076_GH0.tar.gz) = 7248018
+SHA256 (akb825-etc2comp-10ec1fc4987c5a81c48c6bf6319bb77389a5f23a_GH0.tar.gz) = 8aae8f87e0f1e79c2bde57254e0b85273d0d036f381f549ce148bc3fbd785b02
+SIZE (akb825-etc2comp-10ec1fc4987c5a81c48c6bf6319bb77389a5f23a_GH0.tar.gz) = 152493
+SHA256 (ARM-software-astc-encoder-f48cc27b2528286126c116f42f2792ed2fa13755_GH0.tar.gz) = f77d7b966dbb8b6029ab5b5b152b42f2ace4474a82e551dbcdaa49647b8782d9
+SIZE (ARM-software-astc-encoder-f48cc27b2528286126c116f42f2792ed2fa13755_GH0.tar.gz) = 36637218
+SHA256 (g-truc-glm-bf71a834948186f4097caa076cd2663c69a10e1e_GH0.tar.gz) = 70ad78e872c145f0164d54da833b651914c184edc65958906937b9739fb8fb1b
+SIZE (g-truc-glm-bf71a834948186f4097caa076cd2663c69a10e1e_GH0.tar.gz) = 4369431
+SHA256 (akb825-PVRTexToolLib-015a0f7b125394d7628e5d562fb8d3e5cb7cac08_GH0.tar.gz) = 2198525c3cb3058f68f6cd90121c5b0f3233d937148d197c731c0bd1e3e1a3ba
+SIZE (akb825-PVRTexToolLib-015a0f7b125394d7628e5d562fb8d3e5cb7cac08_GH0.tar.gz) = 19155157
+SHA256 (richgel999-bc7enc_rdo-f965c3fd8a39ef91f8bf8cddb7d2eee83a95a1c2_GH0.tar.gz) = 0a9ee5571ebcc63f1da901dbd6d6d5ec072ae3ff8e074efae166f776d5ddc7fa
+SIZE (richgel999-bc7enc_rdo-f965c3fd8a39ef91f8bf8cddb7d2eee83a95a1c2_GH0.tar.gz) = 15084973
+SHA256 (akb825-compressonator-a4d078359f74053564a9b7a9bd0b5bb2fa0a65a7_GH0.tar.gz) = 5f69f22753f283a9e52afa518f151d222a1d6684150e4c5f028e24e15add7c70
+SIZE (akb825-compressonator-a4d078359f74053564a9b7a9bd0b5bb2fa0a65a7_GH0.tar.gz) = 24367769
+SHA256 (GameTechDev-ISPCTextureCompressor-14d998c02b71c356ff3a1ec1adc9243a517bbf38_GH0.tar.gz) = a0f6f0537650295b0df66fd55dc888e53b9a6cf5aea576e2c99f2f7959a9931f
+SIZE (GameTechDev-ISPCTextureCompressor-14d998c02b71c356ff3a1ec1adc9243a517bbf38_GH0.tar.gz) = 6435886
+SHA256 (KonajuGames-libsquish-7543ea155b475f129d3733b98b7f17f1fa274cf1_GH0.tar.gz) = 5fa333d02ba94d466ce17a4ab33b16b5c518f52ea7a2063db51808d849d35d79
+SIZE (KonajuGames-libsquish-7543ea155b475f129d3733b98b7f17f1fa274cf1_GH0.tar.gz) = 57348
+SHA256 (google-googletest-703bd9caab50b139428cea1aaff9974ebee5742e_GH0.tar.gz) = d17b1b83a57b3933565a6d0616fe261107326d47de20288d0949ed038e1c342d
+SIZE (google-googletest-703bd9caab50b139428cea1aaff9974ebee5742e_GH0.tar.gz) = 905359
diff --git a/misc/cuttlefish/pkg-descr b/misc/cuttlefish/pkg-descr
new file mode 100644
index 000000000000..590be29fd9aa
--- /dev/null
+++ b/misc/cuttlefish/pkg-descr
@@ -0,0 +1,7 @@
+Cuttlefish is a texture conversion library and tool. A command line
+tool is provided for most texture conversion needs, such as running
+manually or part of an asset conversion pipeline. The library may be
+used to integrate more advanced texture generation within other
+software.
+
+WWW: https://github.com/akb825/Cuttlefish
diff --git a/misc/cuttlefish/pkg-plist b/misc/cuttlefish/pkg-plist
new file mode 100644
index 000000000000..a1563abc18f1
--- /dev/null
+++ b/misc/cuttlefish/pkg-plist
@@ -0,0 +1,12 @@
+bin/cuttlefish
+include/cuttlefish/Color.h
+include/cuttlefish/Config.h
+include/cuttlefish/Export.h
+include/cuttlefish/Image.h
+include/cuttlefish/Texture.h
+lib/cmake/Cuttlefish/CuttlefishConfig.cmake
+lib/cmake/Cuttlefish/CuttlefishConfigVersion.cmake
+lib/cmake/Cuttlefish/CuttlefishTargets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/Cuttlefish/CuttlefishTargets.cmake
+lib/libcuttlefish.so
+lib/libcuttlefish.so.2.5.5