summaryrefslogtreecommitdiff
path: root/graphics/libertiff
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/libertiff')
-rw-r--r--graphics/libertiff/Makefile24
-rw-r--r--graphics/libertiff/distinfo3
-rw-r--r--graphics/libertiff/files/patch-CMakeLists.txt8
-rw-r--r--graphics/libertiff/pkg-descr21
4 files changed, 56 insertions, 0 deletions
diff --git a/graphics/libertiff/Makefile b/graphics/libertiff/Makefile
new file mode 100644
index 000000000000..4f2fa951b60a
--- /dev/null
+++ b/graphics/libertiff/Makefile
@@ -0,0 +1,24 @@
+PORTNAME= libertiff
+PORTVERSION= 0.0.0.20250111
+CATEGORIES= graphics
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= C++11 simple, header-only, TIFF reader
+WWW= https://github.com/libertiff/libertiff
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE.md
+
+BUILD_DEPENDS= googletest>=1.12.1:devel/googletest
+
+USES= cmake:testing compiler:c++11-lang
+
+CMAKE_ON= USE_EXTERNAL_GTEST
+NO_ARCH= yes
+
+PLIST_FILES= include/libertiff.hpp
+
+USE_GITHUB= yes
+GH_TAGNAME= 7fc74e7
+
+.include <bsd.port.mk>
diff --git a/graphics/libertiff/distinfo b/graphics/libertiff/distinfo
new file mode 100644
index 000000000000..d9d97259b86b
--- /dev/null
+++ b/graphics/libertiff/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1747715286
+SHA256 (libertiff-libertiff-0.0.0.20250111-7fc74e7_GH0.tar.gz) = a1953a2541414e8a26f793b4f963bb9581ade23e193ee437c973eba907be4c5d
+SIZE (libertiff-libertiff-0.0.0.20250111-7fc74e7_GH0.tar.gz) = 19972
diff --git a/graphics/libertiff/files/patch-CMakeLists.txt b/graphics/libertiff/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..9f7ffa3e8846
--- /dev/null
+++ b/graphics/libertiff/files/patch-CMakeLists.txt
@@ -0,0 +1,8 @@
+--- CMakeLists.txt.orig 2025-01-11 21:34:33 UTC
++++ CMakeLists.txt
+@@ -16,3 +16,5 @@ add_subdirectory(tests)
+ add_executable(demo demo.cpp)
+
+ add_subdirectory(tests)
++
++install(FILES libertiff.hpp DESTINATION ${CMAKE_INSTALL_PREFIX}/include)
diff --git a/graphics/libertiff/pkg-descr b/graphics/libertiff/pkg-descr
new file mode 100644
index 000000000000..0fe97e1900c9
--- /dev/null
+++ b/graphics/libertiff/pkg-descr
@@ -0,0 +1,21 @@
+Libertiff is a C++11 simple, header-only, TIFF reader. It is MIT licensed.
+
+Handles both ClassicTIFF and BigTIFF, little-endian or big-endian ordered.
+
+The library does not offer codec facilities (and probably won't). It is mostly
+aimed at browsing through the linked chain of Image File Directory (IFD) and
+their tags.
+
+"Offline" tag values are not loaded at IFD opening time, but only upon request,
+which helps handling files with tags with an arbitrarily large number of values.
+
+The library is thread-safe (that is the instances that it returns can be used
+from multiple threads), if passed FileReader instances are themselves
+thread-safe.
+
+The library does not throw exceptions (but underlying std library might throw
+exceptions in case of out-of-memory situations)
+
+Optional features:
+- define LIBERTIFF_C_FILE_READER before including libertiff.hpp, so that the
+ libertiff::CFileReader class is available