summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/media-gfx/nomacs/nomacs-3.10.2.exheres-07
-rw-r--r--packages/media-gfx/nomacs/nomacs-3.8.1.exheres-01
-rw-r--r--packages/media-gfx/nomacs/nomacs-scm.exheres-07
-rw-r--r--packages/media-gfx/nomacs/nomacs.exlib103
4 files changed, 82 insertions, 36 deletions
diff --git a/packages/media-gfx/nomacs/nomacs-3.10.2.exheres-0 b/packages/media-gfx/nomacs/nomacs-3.10.2.exheres-0
new file mode 100644
index 0000000..ad895b0
--- /dev/null
+++ b/packages/media-gfx/nomacs/nomacs-3.10.2.exheres-0
@@ -0,0 +1,7 @@
+# Distributed under the terms of the GNU General Public License v2
+# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru>
+
+require nomacs
+PLATFORMS="~amd64 ~x86"
+
+
diff --git a/packages/media-gfx/nomacs/nomacs-3.8.1.exheres-0 b/packages/media-gfx/nomacs/nomacs-3.8.1.exheres-0
index a7f1a68..ad895b0 100644
--- a/packages/media-gfx/nomacs/nomacs-3.8.1.exheres-0
+++ b/packages/media-gfx/nomacs/nomacs-3.8.1.exheres-0
@@ -1,4 +1,5 @@
# Distributed under the terms of the GNU General Public License v2
+# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru>
require nomacs
PLATFORMS="~amd64 ~x86"
diff --git a/packages/media-gfx/nomacs/nomacs-scm.exheres-0 b/packages/media-gfx/nomacs/nomacs-scm.exheres-0
index 17b985d..1d1cff6 100644
--- a/packages/media-gfx/nomacs/nomacs-scm.exheres-0
+++ b/packages/media-gfx/nomacs/nomacs-scm.exheres-0
@@ -1,10 +1,13 @@
# Distributed under the terms of the GNU General Public License v2
+# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru>
require nomacs
PLATFORMS="~amd64 ~x86"
+CMAKE_SOURCE=${WORKBASE}/${PNV}/ImageLounge
+
#for some reason github in scm mode + cmake exlibs causing problems, this workaround is necessary
pkg_setup() {
- edo mkdir "${WORKBASE}"/build
- edo chmod 777 "${WORKBASE}"/build
+ edo mkdir "${WORKBASE}/build"
+ edo chmod o+rwx "${WORKBASE}/build"
}
diff --git a/packages/media-gfx/nomacs/nomacs.exlib b/packages/media-gfx/nomacs/nomacs.exlib
index 24ed87e..ebccf59 100644
--- a/packages/media-gfx/nomacs/nomacs.exlib
+++ b/packages/media-gfx/nomacs/nomacs.exlib
@@ -1,51 +1,86 @@
# Distributed under the terms of the GNU General Public License v2
+# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru>
-WORK="${WORK}"/ImageLounge
require cmake [ api=2 ]
-require github
+require github [ user=nomacs ]
+
-export_exlib_phases src_configure
SUMMARY="Qt-based image viewer"
HOMEPAGE="https://nomacs.org/"
LICENCES="GPL-3+"
SLOT="0"
MYOPTIONS="
- jpeg
- opencv
- (
- raw
- tiff
- )
- [[ *requires = opencv ]]
- zip
+ zip [[ description = [ Build support for zip archives ] ]]
"
+if ! ever at_least 3.10; then
+ MYOPTIONS+="
+ opencv [[ description = [ Build support for media-libs/opencv ] ]]
+ (
+ raw [[ description = [ Add support for raw image formats ] ]]
+ tiff
+ )
+ [[ *requires = opencv ]]
+ "
+else
+ MYOPTIONS+="
+ raw [[ description = [ Add support for raw image formats ] ]]
+ tiff
+ "
+fi
+
+
DEPENDENCIES="
- build+run:
- x11-libs/qtbase:5[gui]
- x11-libs/qtsvg:5
- graphics/exiv2
- opencv? ( media-libs/opencv[qt5] )
- raw? ( media-libs/libraw )
- tiff? (
- x11-libs/qtimageformats[tiff]
- media-libs/tiff
- )
- zip? ( app-arch/quazip )
+ build+run:
+ graphics/exiv2
+ x11-libs/qtbase:5[gui]
+ x11-libs/qtsvg:5
+ raw? ( media-libs/libraw )
+ tiff? (
+ x11-libs/qtimageformats[tiff]
+ media-libs/tiff
+ )
+ zip? ( app-arch/quazip )
"
-nomacs_src_configure() {
- local cmakeparams=()
- cmakeparams+=(
- $(cmake_enable opencv OPENCV)
- $(cmake_enable raw RAW)
- $(cmake_enable tiff TIFF)
- $(cmake_enable zip QUAZIP)
- -DUSE_SYSTEM_QUAZIP=ON
- -DENABLE_TRANSLATIONS=ON
- )
- ecmake "${cmakeparams[@]}"
-}
+if ! ever at_least 3.10; then
+ DEPENDENCIES+="
+ opencv? ( media-libs/opencv[qt5] )
+ "
+else
+ DEPENDENCIES+="
+ media-libs/opencv[qt5]
+ "
+fi
+
+
+
+CMAKE_SOURCE="${WORK}"/ImageLounge
+
+CMAKE_SRC_CONFIGURE_PARAMS+=(
+ -DUSE_SYSTEM_QUAZIP=ON
+ -DENABLE_TRANSLATIONS=ON
+)
+
+if ever at_least 3.10; then
+ CMAKE_SRC_CONFIGURE_PARAMS+=(
+ -DENABLE_OPENCV=TRUE
+ )
+fi
+
+
+CMAKE_SRC_CONFIGURE_OPTION_ENABLES=(
+ "raw RAW"
+ "tiff TIFF"
+ "zip QUAZIP"
+)
+
+if ! ever at_least 3.10; then
+ CMAKE_SRC_CONFIGURE_OPTION_ENABLES+=(
+ "opencv OPENCV"
+ )
+fi
+