Skip to content

Commit

Permalink
graphics/openjpeg: Update to 2.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sunpoet committed May 22, 2022
1 parent 95ca906 commit 3aff837
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 29 deletions.
15 changes: 13 additions & 2 deletions graphics/openjpeg/Makefile
@@ -1,7 +1,7 @@
# Created by: trasz <trasz@pin.if.uz.zgora.pl>

PORTNAME= openjpeg
PORTVERSION= 2.4.0
PORTVERSION= 2.5.0
DISTVERSIONPREFIX= v
CATEGORIES= graphics

Expand All @@ -16,8 +16,10 @@ 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}
Expand All @@ -27,4 +29,13 @@ 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 <bsd.port.mk>
6 changes: 3 additions & 3 deletions 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
28 changes: 5 additions & 23 deletions 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()

2 changes: 1 addition & 1 deletion graphics/openjpeg/pkg-descr
Expand Up @@ -12,4 +12,4 @@ Besides this main codec, OpenJPEG integrates several other modules:
- 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/

0 comments on commit 3aff837

Please sign in to comment.