Index: head/graphics/openjpeg/Makefile =================================================================== --- head/graphics/openjpeg/Makefile (revision 477111) +++ head/graphics/openjpeg/Makefile (revision 477112) @@ -1,31 +1,32 @@ # Created by: trasz # $FreeBSD$ PORTNAME= openjpeg PORTVERSION= 2.3.0 +PORTREVISION= 1 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 USE_LDCONFIG= yes USES= cmake cpe pkgconfig PLIST_SUB= PORTVERSION=${PORTVERSION} VER=${PORTVERSION:R} GH_ACCOUNT= uclouvain USE_GITHUB= yes post-patch: @${REINPLACE_CMD} -e 's|$${OPENJPEG_INSTALL_LIB_DIR}/pkgconfig|libdata/pkgconfig|' ${WRKSRC}/CMakeLists.txt .include Index: head/graphics/openjpeg/files/patch-src_bin_jp3d_convert.c =================================================================== --- head/graphics/openjpeg/files/patch-src_bin_jp3d_convert.c (nonexistent) +++ head/graphics/openjpeg/files/patch-src_bin_jp3d_convert.c (revision 477112) @@ -0,0 +1,11 @@ +--- src/bin/jp3d/convert.c.orig 2018-08-02 17:40:37 UTC ++++ src/bin/jp3d/convert.c +@@ -297,7 +297,7 @@ opj_volume_t* pgxtovolume(char *relpath, + fprintf(stdout, "[INFO] Loading %s \n", pgxfiles[pos]); + + fseek(f, 0, SEEK_SET); +- fscanf(f, "PG%[ \t]%c%c%[ \t+-]%d%[ \t]%d%[ \t]%d", temp, &endian1, &endian2, ++ fscanf(f, "PG%31[ \t]%c%c%31[ \t+-]%d%31[ \t]%d%31[ \t]%d", temp, &endian1, &endian2 + signtmp, &prec, temp, &w, temp, &h); + + i = 0; Property changes on: head/graphics/openjpeg/files/patch-src_bin_jp3d_convert.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/graphics/openjpeg/files/patch-src_bin_jpwl_convert.c =================================================================== --- head/graphics/openjpeg/files/patch-src_bin_jpwl_convert.c (nonexistent) +++ head/graphics/openjpeg/files/patch-src_bin_jpwl_convert.c (revision 477112) @@ -0,0 +1,11 @@ +--- src/bin/jpwl/convert.c.orig 2018-08-02 17:47:37 UTC ++++ src/bin/jpwl/convert.c +@@ -1348,7 +1348,7 @@ opj_image_t* pgxtoimage(const char *file + } + + fseek(f, 0, SEEK_SET); +- if (fscanf(f, "PG%[ \t]%c%c%[ \t+-]%d%[ \t]%d%[ \t]%d", temp, &endian1, ++ if (fscanf(f, "PG%31[ \t]%c%c%31[ \t+-]%d%31[ \t]%d%31[ \t]%d", temp, &endian1, + &endian2, signtmp, &prec, temp, &w, temp, &h) != 9) { + fprintf(stderr, + "ERROR: Failed to read the right number of element from the fscanf() function!\n"); Property changes on: head/graphics/openjpeg/files/patch-src_bin_jpwl_convert.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property