diff --git a/graphics/openjpeg/Makefile b/graphics/openjpeg/Makefile index c5528ebfb1cd..03b1702c9d38 100644 --- a/graphics/openjpeg/Makefile +++ b/graphics/openjpeg/Makefile @@ -1,30 +1,41 @@ # Created by: trasz PORTNAME= openjpeg -PORTVERSION= 2.4.0 +PORTVERSION= 2.5.0 DISTVERSIONPREFIX= v CATEGORIES= graphics MAINTAINER= sunpoet@FreeBSD.org COMMENT= Open-source JPEG 2000 codec LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= cmake>=3:devel/cmake LIB_DEPENDS= liblcms2.so:graphics/lcms2 \ libpng.so:graphics/png \ libtiff.so:graphics/tiff -USES= cmake cpe pkgconfig +USES= cmake cpe localbase:ldflags jpeg pkgconfig +CMAKE_OFF= BUILD_DOC BUILD_JAVA BUILD_JPIP BUILD_JPIP_SERVER BUILD_LUTS_GENERATOR BUILD_TESTING BUILD_THIRDPARTY BUILD_UNIT_TESTS BUILD_VIEWER WITH_ASTYLE +CMAKE_ON= BUILD_CODEC BUILD_PKGCONFIG_FILES BUILD_SHARED_LIBS BUILD_STATIC_LIBS USE_LDCONFIG= yes PLIST_SUB= PORTVERSION=${PORTVERSION} VER=${PORTVERSION:R} GH_ACCOUNT= uclouvain USE_GITHUB= yes CPE_VENDOR= uclouvain +post-patch: +# Clean up bundled libraries + @${RM} -r ${WRKSRC}/thirdparty/astyle/ + @${RM} -r ${WRKSRC}/thirdparty/include/ + @${RM} -r ${WRKSRC}/thirdparty/liblcms2/ + @${RM} -r ${WRKSRC}/thirdparty/libpng/ + @${RM} -r ${WRKSRC}/thirdparty/libtiff/ + @${RM} -r ${WRKSRC}/thirdparty/libz/ + .include diff --git a/graphics/openjpeg/distinfo b/graphics/openjpeg/distinfo index 31e0a46cee34..72da930c1f67 100644 --- a/graphics/openjpeg/distinfo +++ b/graphics/openjpeg/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1609598845 -SHA256 (uclouvain-openjpeg-v2.4.0_GH0.tar.gz) = 8702ba68b442657f11aaeb2b338443ca8d5fb95b0d845757968a7be31ef7f16d -SIZE (uclouvain-openjpeg-v2.4.0_GH0.tar.gz) = 2233229 +TIMESTAMP = 1653151054 +SHA256 (uclouvain-openjpeg-v2.5.0_GH0.tar.gz) = 0333806d6adecc6f7a91243b2b839ff4d2053823634d4f6ed7a59bc87409122a +SIZE (uclouvain-openjpeg-v2.5.0_GH0.tar.gz) = 1867111 diff --git a/graphics/openjpeg/files/patch-CMakeLists.txt b/graphics/openjpeg/files/patch-CMakeLists.txt index e1bf64d555f2..306d2fed2c30 100644 --- a/graphics/openjpeg/files/patch-CMakeLists.txt +++ b/graphics/openjpeg/files/patch-CMakeLists.txt @@ -1,37 +1,19 @@ ---- CMakeLists.txt.orig 2019-04-02 12:45:15 UTC +--- CMakeLists.txt.orig 2022-05-13 16:54:29 UTC +++ CMakeLists.txt -@@ -363,14 +363,14 @@ if(BUILD_PKGCONFIG_FILES) +@@ -370,14 +370,14 @@ if(BUILD_PKGCONFIG_FILES) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/lib/openjp2/libopenjp2.pc.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/libopenjp2.pc @ONLY) install( FILES ${CMAKE_CURRENT_BINARY_DIR}/libopenjp2.pc DESTINATION - ${OPENJPEG_INSTALL_LIB_DIR}/pkgconfig ) -+ libdata/pkgconfig) - # - if(BUILD_JPWL) - # install in lib and not share (see multi-arch note above) - configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/lib/openjpwl/libopenjpwl.pc.cmake.in - ${CMAKE_CURRENT_BINARY_DIR}/libopenjpwl.pc @ONLY) - install( FILES ${CMAKE_CURRENT_BINARY_DIR}/libopenjpwl.pc DESTINATION -- ${OPENJPEG_INSTALL_LIB_DIR}/pkgconfig ) -+ libdata/pkgconfig) - endif() ++ libdata/pkgconfig ) # if(BUILD_JPIP) -@@ -378,7 +378,7 @@ if(BUILD_PKGCONFIG_FILES) + # install in lib and not share (see multi-arch note above) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/lib/openjpip/libopenjpip.pc.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/libopenjpip.pc @ONLY) install( FILES ${CMAKE_CURRENT_BINARY_DIR}/libopenjpip.pc DESTINATION - ${OPENJPEG_INSTALL_LIB_DIR}/pkgconfig ) -+ libdata/pkgconfig) - endif() - # - if(BUILD_JP3D) -@@ -386,7 +386,7 @@ if(BUILD_PKGCONFIG_FILES) - configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/lib/openjp3d/libopenjp3d.pc.cmake.in - ${CMAKE_CURRENT_BINARY_DIR}/libopenjp3d.pc @ONLY) - install( FILES ${CMAKE_CURRENT_BINARY_DIR}/libopenjp3d.pc DESTINATION -- ${OPENJPEG_INSTALL_LIB_DIR}/pkgconfig ) -+ libdata/pkgconfig) ++ libdata/pkgconfig ) endif() endif() diff --git a/graphics/openjpeg/pkg-descr b/graphics/openjpeg/pkg-descr index 9eca790392df..976e15e41a45 100644 --- a/graphics/openjpeg/pkg-descr +++ b/graphics/openjpeg/pkg-descr @@ -1,15 +1,15 @@ The OpenJPEG library is an open-source JPEG 2000 library developed in order to promote the use of JPEG 2000. The main part of the project consists in a JPEG 2000 codec compliant with the Part 1 of the standard (Class-1 Profile-1 compliance). Besides this main codec, OpenJPEG integrates several other modules: - JP2 (JPEG 2000 standard Part 2 - Handling of JP2 boxes and extended multiple component transforms for multispectral and hyperspectral imagery) - MJ2 (JPEG 2000 standard Part 3) - JPWL (JPEG 2000 standard Part 11) - JPIP (JPEG 2000 standard Part 9) - OPJViewer, a GUI viewer for J2K, JP2, JPWL and MJ2 files -WWW: http://www.openjpeg.org/ +WWW: https://www.openjpeg.org/