1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00

graphics/simpleviewer: the port had been updated to version 3.1.9

Employ the ?dummy=/ trick in the download URL so that the standard
DISTNAME works and we can drop DIST_SUBDIR.
This commit is contained in:
Alexey Dokuchaev 2024-05-29 10:03:04 +00:00
parent a28b54c884
commit d65269af44
3 changed files with 10 additions and 12 deletions

View File

@ -1,10 +1,7 @@
PORTNAME= simpleviewer
PORTVERSION= 3.1.7
PORTREVISION= 21
PORTVERSION= 3.1.9
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}
MASTER_SITES= https://bitbucket.org/andreyu/simple-viewer-gl/get/${BB_COMMIT}.tar.bz2?dummy=/
MAINTAINER= danfe@FreeBSD.org
COMMENT= Small and simple image viewer based on OpenGL
@ -25,7 +22,8 @@ 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
BB_COMMIT= cded7dfe23c4
WRKSRC= ${WRKDIR}/andreyu-simple-viewer-gl-${BB_COMMIT}
PLIST_FILES= bin/sviewgl ${DATADIR_REL}/Icon-1024.png \
${DATADIR_REL}/Icon-16.png ${DATADIR_REL}/Icon-32.png

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1573635164
SHA256 (simpleviewer/v3.1.7.tar.bz2) = 7ac309f080d7095f824b580fb02b066914c81b0bef1daa82cd474d06e23bf7f7
SIZE (simpleviewer/v3.1.7.tar.bz2) = 893495
TIMESTAMP = 1671715617
SHA256 (simpleviewer-3.1.9.tar.bz2) = be6ee4b6ffbd5b486168584cf8d9e9c28fd754469236764ce30cf7bd456a9c1c
SIZE (simpleviewer-3.1.9.tar.bz2) = 1385056

View File

@ -4,7 +4,7 @@
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 -pedantic -pedantic-errors -Wno-unused-function -Wno-deprecated-register -O2")
+ add_definitions("-Wall -Wextra")
else()
message(STATUS "* Debug Build *")
@ -13,8 +13,8 @@
if (DISABLE_OPENEXR_SUPPORT EQUAL 0)
pkg_check_modules(OPENEXR QUIET OpenEXR)
if(OPENEXR_FOUND)
- pkg_check_modules(ILMBASE REQUIRED IlmBase)
+ pkg_check_modules(ILMBASE REQUIRED Imath)
- pkg_check_modules(ILMBASE QUIET IlmBase)
+ pkg_check_modules(ILMBASE QUIET Imath)
if(ILMBASE_FOUND)
message(STATUS "(+) OpenEXR support enabled")
if(VERBOSE_PATHS)