summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorIsmael Luceno2022-03-21 00:57:30 +0100
committerIsmael Luceno2022-03-21 01:13:56 +0100
commitac59248d165461dcfcfb4857527812fc4fea763c (patch)
tree992111be2714e83ead13dd93563f07e78899c698 /graphics
parentd736884410e66a5371225026b1476c3ad7a9ca6b (diff)
exiv2: Add knobs for ISO BMFF support
Diffstat (limited to 'graphics')
-rwxr-xr-xgraphics/exiv2/BUILD1
-rwxr-xr-xgraphics/exiv2/CONFIGURE5
-rwxr-xr-xgraphics/exiv2/DETAILS1
-rw-r--r--graphics/exiv2/HISTORY4
-rwxr-xr-xgraphics/exiv2/PRE_SUB_DEPENDS7
-rwxr-xr-xgraphics/exiv2/SUB_DEPENDS11
6 files changed, 28 insertions, 1 deletions
diff --git a/graphics/exiv2/BUILD b/graphics/exiv2/BUILD
index e013b8d866..c5c61f6ebc 100755
--- a/graphics/exiv2/BUILD
+++ b/graphics/exiv2/BUILD
@@ -1 +1,2 @@
+OPTS+=" $EXIV2_OPTS" &&
cmake_build
diff --git a/graphics/exiv2/CONFIGURE b/graphics/exiv2/CONFIGURE
index b2f02c3032..c654a8988e 100755
--- a/graphics/exiv2/CONFIGURE
+++ b/graphics/exiv2/CONFIGURE
@@ -1 +1,4 @@
-source $GRIMOIRE/CMAKE_CONFIGURE
+. "$GRIMOIRE"/CMAKE_CONFIGURE &&
+config_query_option EXIV2_OPTS \
+ "Build with ISO BMFF Byte Stream Format support?" y \
+ -DEXIV2_ENABLE_BMFF={ON,OFF}
diff --git a/graphics/exiv2/DETAILS b/graphics/exiv2/DETAILS
index 9dced5a859..fff5545f67 100755
--- a/graphics/exiv2/DETAILS
+++ b/graphics/exiv2/DETAILS
@@ -1,5 +1,6 @@
SPELL=exiv2
VERSION=0.27.5
+ PATCHLEVEL=1
SOURCE_HASH=sha512:fb7153c141502de4a3446abb49d991735aa034ef30d0ee2050cffc6c73778faa8ba2a666797565d45c11f9ae1130544b6ed854570d38351505dbb3c1610c4b7c
SECURITY_PATCH=5
SOURCE=$SPELL-$VERSION.tar.gz
diff --git a/graphics/exiv2/HISTORY b/graphics/exiv2/HISTORY
index 736b9b5721..0db0cd287d 100644
--- a/graphics/exiv2/HISTORY
+++ b/graphics/exiv2/HISTORY
@@ -1,3 +1,7 @@
+2022-03-21 Ismael Luceno <ismael@sourcemage.org>
+ * BUILD, CONFIGURE, PRE_SUB_DEPENDS, SUB_DEPENDS: added knobs for BMFF
+ * DETAILS: PATCHLEVEL++
+
2021-06-19 Florian Franzmann <bwlf@bandrate.org>
* DETAILS: version 0.27.5, SECURITY_PATCH++
diff --git a/graphics/exiv2/PRE_SUB_DEPENDS b/graphics/exiv2/PRE_SUB_DEPENDS
new file mode 100755
index 0000000000..48d0575ce3
--- /dev/null
+++ b/graphics/exiv2/PRE_SUB_DEPENDS
@@ -0,0 +1,7 @@
+case "$THIS_SUB_DEPENDS" in
+ (BMFF) list_find EXIV2_OPTS -DEXIV2_ENABLE_BMFF=ON ;;
+ (*)
+ message "${PROBLEM_COLOR}bogus sub_depends: $SPELL $THIS_SUB_DEPENDS${DEFAULT_COLOR}"
+ return 1
+ ;;
+esac
diff --git a/graphics/exiv2/SUB_DEPENDS b/graphics/exiv2/SUB_DEPENDS
new file mode 100755
index 0000000000..ce2a7c1a2d
--- /dev/null
+++ b/graphics/exiv2/SUB_DEPENDS
@@ -0,0 +1,11 @@
+case "$THIS_SUB_DEPENDS" in
+ (BMFF)
+ message "BMFF needed, forcing it." &&
+ list_remove EXIV2_OPTS -DEXIV2_ENABLE_BMFF=OFF &&
+ list_add EXIV2_OPTS -DEXIV2_ENABLE_BMFF=ON
+ ;;
+ (*)
+ message "${PROBLEM_COLOR}bogus sub_depends: $SPELL $THIS_SUB_DEPENDS${DEFAULT_COLOR}"
+ return 1
+ ;;
+esac