git: 405f41b18265 - main - misc/astc-encoder: New port: Texture compressor for Adaptive Scalable Texture Compression format
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 20 Jun 2022 03:59:05 UTC
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=405f41b182655cf3422c489988a22b5a1f401fd8 commit 405f41b182655cf3422c489988a22b5a1f401fd8 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2022-06-20 03:58:38 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2022-06-20 03:58:38 +0000 misc/astc-encoder: New port: Texture compressor for Adaptive Scalable Texture Compression format --- misc/Makefile | 1 + misc/astc-encoder/Makefile | 33 ++++++++++++++++++++++++++++ misc/astc-encoder/distinfo | 5 +++++ misc/astc-encoder/files/patch-CMakeLists.txt | 13 +++++++++++ misc/astc-encoder/pkg-descr | 5 +++++ 5 files changed, 57 insertions(+) diff --git a/misc/Makefile b/misc/Makefile index cf04b78ec664..91d6d72d2a04 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -13,6 +13,7 @@ SUBDIR += artikulate SUBDIR += asbutton SUBDIR += asr-manpages + SUBDIR += astc-encoder SUBDIR += bb SUBDIR += bbjd SUBDIR += bdelta diff --git a/misc/astc-encoder/Makefile b/misc/astc-encoder/Makefile new file mode 100644 index 000000000000..83df59eec6bc --- /dev/null +++ b/misc/astc-encoder/Makefile @@ -0,0 +1,33 @@ +PORTNAME= astc-encoder +DISTVERSION= 3.7 +CATEGORIES= misc + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Texture compressor for Adaptive Scalable Texture Compression format + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +USES= cmake:testing compiler:c++14-lang + +USE_GITHUB= yes +GH_ACCOUNT= ARM-software +GH_TUPLE= google:googletest:703bd9c:googletest/Source/GoogleTest + +CMAKE_OFF= UNITTEST +CMAKE_TESTING_ON= UNITTEST # tests fail to build, see https://github.com/ARM-software/astc-encoder/issues/346 + +LDFLAGS+= -pthread + +PLIST_FILES= bin/astcenc-native + +post-patch: # workaround for https://github.com/ARM-software/astc-encoder/issues/345 + @cd ${WRKSRC} && \ + ${REINPLACE_CMD} -e 's|astcenc/|bin/|' \ + Test/testlib/encoder.py \ + Test/astc_minify_test.sh \ + Test/astc_update_ref.sh \ + Test/astc_minify_test.sh \ + Test/astc_test_competitive.py + +.include <bsd.port.mk> diff --git a/misc/astc-encoder/distinfo b/misc/astc-encoder/distinfo new file mode 100644 index 000000000000..de6cc0404882 --- /dev/null +++ b/misc/astc-encoder/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1655696515 +SHA256 (ARM-software-astc-encoder-3.7_GH0.tar.gz) = f66c38de17e4f212d9f263016a3b68184d6860f724b849d61be904bbfd77be31 +SIZE (ARM-software-astc-encoder-3.7_GH0.tar.gz) = 36638557 +SHA256 (google-googletest-703bd9c_GH0.tar.gz) = 54bef85b53a02b21ed1e784848ea05cbfd78134f8976a7831a956cfebcef7204 +SIZE (google-googletest-703bd9c_GH0.tar.gz) = 904257 diff --git a/misc/astc-encoder/files/patch-CMakeLists.txt b/misc/astc-encoder/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..1838a5580827 --- /dev/null +++ b/misc/astc-encoder/files/patch-CMakeLists.txt @@ -0,0 +1,13 @@ +- workaround for https://github.com/ARM-software/astc-encoder/issues/345 + +--- CMakeLists.txt.orig 2022-06-20 03:49:47 UTC ++++ CMakeLists.txt +@@ -30,7 +30,7 @@ set(CMAKE_CXX_STANDARD 14) + set(CMAKE_CXX_STANDARD_REQUIRED ON) + set(CMAKE_CXX_EXTENSIONS OFF) + set(CMAKE_EXPORT_COMPILE_COMMANDS 1) +-set(PACKAGE_ROOT astcenc) ++set(PACKAGE_ROOT bin) + + include(CTest) + diff --git a/misc/astc-encoder/pkg-descr b/misc/astc-encoder/pkg-descr new file mode 100644 index 000000000000..a5736c95cd40 --- /dev/null +++ b/misc/astc-encoder/pkg-descr @@ -0,0 +1,5 @@ +Arm(C) Adaptive Scalable Texture Compression (ASTC) Encoder, astcenc, +a command-line tool for compressing and decompressing images using the +ASTC texture compression standard. + +WWW: https://github.com/ARM-software/astc-encoder