Index: head/graphics/simpleviewer/Makefile =================================================================== --- head/graphics/simpleviewer/Makefile (revision 539667) +++ head/graphics/simpleviewer/Makefile (revision 539668) @@ -1,85 +1,90 @@ # Created by: Alexey Dokuchaev # $FreeBSD$ PORTNAME= simpleviewer PORTVERSION= 3.1.7 PORTREVISION= 3 CATEGORIES= graphics MASTER_SITES= https://bitbucket.org/andreyu/simple-viewer-gl/get/ DISTNAME= v${PORTVERSION} # version tag, has no embedded ${PORTNAME} DIST_SUBDIR= ${PORTNAME} # and that's why we need ${DIST_SUBDIR} MAINTAINER= danfe@FreeBSD.org COMMENT= Small and simple image viewer based on OpenGL LICENSE= GPLv2 LIB_DEPENDS= libfreetype.so:print/freetype2 \ libglfw.so:graphics/glfw \ + liblz4.so:archivers/liblz4 \ libpng.so:graphics/png USES= cmake:insource compiler:c++11-lang gl jpeg pkgconfig \ tar:bzip2 xorg USE_GL= gl glu USE_XORG= ice sm x11 xcursor xext xinerama xrandr xxf86vm CMAKE_ARGS= -DAPP_VERSION_MAJOR:STRING=${PORTVERSION:S/./ /g:[1]} \ -DAPP_VERSION_MINOR:STRING=${PORTVERSION:S/./ /g:[2]} \ -DAPP_VERSION_RELEASE:STRING=${PORTVERSION:S/./ /g:[3]} WRKSRC= ${WRKDIR}/andreyu-simple-viewer-gl-d8928067922d PLIST_FILES= bin/sviewgl ${DATADIR_REL}/Icon-1024.png \ ${DATADIR_REL}/Icon-16.png ${DATADIR_REL}/Icon-32.png PORTDOCS= README.md PORTEXAMPLES= config.example SUB_FILES= pkg-message EXTRA_FEATURES= CURL GIF IMLIB2 JPEG2000 LCMS2 LIBEXIF OPENEXR TIFF WEBP OPTIONS_DEFINE= DOCS EXAMPLES ${EXTRA_FEATURES} OPTIONS_DEFAULT= ${EXTRA_FEATURES} CURL_LIB_DEPENDS= libcurl.so:ftp/curl CURL_CMAKE_OFF= -DDISABLE_CURL_SUPPORT:STRING=1 GIF_LIB_DEPENDS= libgif.so:graphics/giflib GIF_CMAKE_OFF= -DDISABLE_GIF_SUPPORT:STRING=1 IMLIB2_LIB_DEPENDS= libImlib2.so:graphics/imlib2 IMLIB2_CMAKE_OFF= -DDISABLE_IMLIB2_SUPPORT:STRING=1 JPEG2000_LIB_DEPENDS= libopenjp2.so:graphics/openjpeg JPEG2000_CMAKE_OFF= -DDISABLE_JPEG2000_SUPPORT:STRING=1 LCMS2_LIB_DEPENDS= liblcms2.so:graphics/lcms2 LCMS2_CMAKE_OFF= -DDISABLE_LCMS2_SUPPORT:STRING=1 LIBEXIF_LIB_DEPENDS= libexif.so:graphics/libexif LIBEXIF_CMAKE_OFF= -DDISABLE_EXIF_SUPPORT:STRING=1 OPENEXR_LIB_DEPENDS= libIlmImf.so:graphics/openexr OPENEXR_CMAKE_OFF= -DDISABLE_OPENEXR_SUPPORT:STRING=1 TIFF_LIB_DEPENDS= libtiff.so:graphics/tiff TIFF_CMAKE_OFF= -DDISABLE_TIFF_SUPPORT:STRING=1 WEBP_LIB_DEPENDS= libwebp.so:graphics/webp WEBP_CMAKE_OFF= -DDISABLE_WEBP_SUPPORT:STRING=1 post-patch: + @${REINPLACE_CMD} -e '/#include/s,lz4/,,' \ + ${WRKSRC}/src/formats/formatage.cpp @${REINPLACE_CMD} -e 's,%%DATADIR%%,${DATADIR},' \ ${WRKSRC}/src/main.cpp do-install: ${INSTALL_PROGRAM} ${WRKSRC}/sviewgl ${STAGEDIR}${PREFIX}/bin @${MKDIR} ${STAGEDIR}${DATADIR} ${INSTALL_DATA} ${WRKSRC}/res/Icon-*.png ${STAGEDIR}${DATADIR} do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} do-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/config.example ${STAGEDIR}${EXAMPLESDIR} .include + +JPEG2000_DESC+= via OpenJPEG Index: head/graphics/simpleviewer/files/patch-CMakeLists.txt =================================================================== --- head/graphics/simpleviewer/files/patch-CMakeLists.txt (revision 539667) +++ head/graphics/simpleviewer/files/patch-CMakeLists.txt (revision 539668) @@ -1,11 +1,30 @@ --- CMakeLists.txt.orig 2018-09-10 11:03:52 UTC +++ CMakeLists.txt @@ -27,7 +27,7 @@ message(STATUS "***************************") if(CMAKE_BUILD_TYPE STREQUAL "Release") message(STATUS "* Release Build *") add_definitions("-DNDEBUG" ) - add_definitions("-Wall -Wextra -pedantic -pedantic-errors -O2") + add_definitions("-Wall -Wextra") else() message(STATUS "* Debug Build *") add_definitions("-DDEBUG" ) +@@ -316,7 +316,6 @@ endif() + message(STATUS "***************************") + + add_subdirectory(third-party/imgui) +-add_subdirectory(third-party/lz4) + + include_directories("src") + +@@ -349,8 +348,8 @@ else() + add_executable(sviewgl ${SVIEW_SOURCES}) + endif() + +-add_dependencies(sviewgl ImGui LZ4) +-target_link_libraries(sviewgl ImGui LZ4) ++add_dependencies(sviewgl ImGui) ++target_link_libraries(sviewgl ImGui lz4) + + if(OPENGL_FOUND) + target_link_libraries(sviewgl ${OPENGL_LIBRARY}) Index: head/graphics/simpleviewer/pkg-descr =================================================================== --- head/graphics/simpleviewer/pkg-descr (revision 539667) +++ head/graphics/simpleviewer/pkg-descr (revision 539668) @@ -1,10 +1,11 @@ Simple Viewer is small and simple OpenGL based image viewer. Its features: + - Supported formats: PNG, JPEG, PSD, XCF, SVG, GIF, TIFF, TARGA, + ICO, BMP, PNM, DDS, BMP, XWD, SCR (ZX-Spectrum screen), XPM, WebP - Lightweight and fast: utilizes hardware-accelerated video card - GIF animation, embedded ICC profiles, and Exif tags support - - Very simple interface, minimum dependencies + - Very simple interface, minimum dependencies, does not require any + specific desktop environment - Suitable as default (general-purpose) desktop image viewer - - Desktop independent: does not require any specific desktop environment - - Open source, licensed under GNU GPLv2 WWW: https://bitbucket.org/andreyu/simple-viewer-gl