From owner-svn-ports-all@freebsd.org Sun Aug 20 09:48:41 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C4863DEA7A7; Sun, 20 Aug 2017 09:48:41 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9FDC47F23B; Sun, 20 Aug 2017 09:48:41 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v7K9meQN032638; Sun, 20 Aug 2017 09:48:40 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v7K9meGf032630; Sun, 20 Aug 2017 09:48:40 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201708200948.v7K9meGf032630@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Sun, 20 Aug 2017 09:48:40 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r448363 - in head: comms/qsstv/files graphics/gstreamer1-plugins-openjpeg graphics/gstreamer1-plugins-openjpeg/files graphics/mupdf/files graphics/openjpeg X-SVN-Group: ports-head X-SVN-Commit-Author: sunpoet X-SVN-Commit-Paths: in head: comms/qsstv/files graphics/gstreamer1-plugins-openjpeg graphics/gstreamer1-plugins-openjpeg/files graphics/mupdf/files graphics/openjpeg X-SVN-Commit-Revision: 448363 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Aug 2017 09:48:41 -0000 Author: sunpoet Date: Sun Aug 20 09:48:39 2017 New Revision: 448363 URL: https://svnweb.freebsd.org/changeset/ports/448363 Log: Update graphics/openjpeg to 2.2.0 Changes: https://github.com/uclouvain/openjpeg/blob/master/CHANGELOG.md PR: 221478 Exp-run by: antoine Added: head/comms/qsstv/files/patch-qsstv_utils_color.cpp (contents, props changed) head/graphics/gstreamer1-plugins-openjpeg/files/ head/graphics/gstreamer1-plugins-openjpeg/files/patch-openjpeg22 (contents, props changed) Modified: head/comms/qsstv/files/patch-qsstv_utils_jp2io.h head/graphics/gstreamer1-plugins-openjpeg/Makefile head/graphics/mupdf/files/patch-source__fitz__load-jpx.c head/graphics/openjpeg/Makefile head/graphics/openjpeg/distinfo head/graphics/openjpeg/pkg-plist Added: head/comms/qsstv/files/patch-qsstv_utils_color.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/qsstv/files/patch-qsstv_utils_color.cpp Sun Aug 20 09:48:39 2017 (r448363) @@ -0,0 +1,11 @@ +--- qsstv/utils/color.cpp.orig 2016-08-23 19:39:12 UTC ++++ qsstv/utils/color.cpp +@@ -42,7 +42,7 @@ + #include + + //#include "opj_apps_config.h" +-#include "openjpeg-2.1/openjpeg.h" ++#include "openjpeg-2.2/openjpeg.h" + #include "color.h" + + Modified: head/comms/qsstv/files/patch-qsstv_utils_jp2io.h ============================================================================== --- head/comms/qsstv/files/patch-qsstv_utils_jp2io.h Sun Aug 20 09:12:57 2017 (r448362) +++ head/comms/qsstv/files/patch-qsstv_utils_jp2io.h Sun Aug 20 09:48:39 2017 (r448363) @@ -4,7 +4,7 @@ #ifndef JP2READER_H #define JP2READER_H -#include "openjpeg.h" -+#include "openjpeg-2.1/openjpeg.h" ++#include "openjpeg-2.2/openjpeg.h" #include #include Modified: head/graphics/gstreamer1-plugins-openjpeg/Makefile ============================================================================== --- head/graphics/gstreamer1-plugins-openjpeg/Makefile Sun Aug 20 09:12:57 2017 (r448362) +++ head/graphics/gstreamer1-plugins-openjpeg/Makefile Sun Aug 20 09:48:39 2017 (r448363) @@ -10,4 +10,6 @@ DIST= bad MASTERDIR= ${.CURDIR}/../../multimedia/gstreamer1-plugins +EXTRA_PATCHES= ${.CURDIR}/files/patch-openjpeg22 + .include "${MASTERDIR}/Makefile" Added: head/graphics/gstreamer1-plugins-openjpeg/files/patch-openjpeg22 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/gstreamer1-plugins-openjpeg/files/patch-openjpeg22 Sun Aug 20 09:48:39 2017 (r448363) @@ -0,0 +1,157 @@ +--- config.h.in.orig 2017-07-14 08:21:19 UTC ++++ config.h.in +@@ -456,6 +456,9 @@ + /* Define if OpenJPEG 2.1 is used */ + #undef HAVE_OPENJPEG_2_1 + ++/* Define if OpenJPEG 2.2 is used */ ++#undef HAVE_OPENJPEG_2_2 ++ + /* Define to enable openni2 library (used by openni2). */ + #undef HAVE_OPENNI2 + +--- configure.orig 2017-07-14 08:21:19 UTC ++++ configure +@@ -773,6 +773,8 @@ USE_OPENJPEG_TRUE + HAVE_OPENJPEG + OPENJPEG_2_1_LIBS + OPENJPEG_2_1_CFLAGS ++OPENJPEG_2_2_LIBS ++OPENJPEG_2_2_CFLAGS + OPENJPEG_LIBS + OPENJPEG_CFLAGS + USE_OPENH264_FALSE +@@ -2039,6 +2041,8 @@ OPENJPEG_CFLAGS + OPENJPEG_LIBS + OPENJPEG_2_1_CFLAGS + OPENJPEG_2_1_LIBS ++OPENJPEG_2_2_CFLAGS ++OPENJPEG_2_2_LIBS + OPENNI2_CFLAGS + OPENNI2_LIBS + OPUS_CFLAGS +@@ -48827,10 +48831,110 @@ $as_echo "yes" >&6; } + fi + + +- if test x"$HAVE_OPENJPEG" = x"yes"; then ++ if test x"$HAVE_OPENJPEG_2_1" = x"yes"; then + + $as_echo "#define HAVE_OPENJPEG_2_1 1" >>confdefs.h + ++ ++ which="libopenjp2 >= 2.2" ++ required="no" ++ ++ ++pkg_failed=no ++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENJPEG_2_2" >&5 ++$as_echo_n "checking for OPENJPEG_2_2... " >&6; } ++ ++if test -n "$PKG_CONFIG"; then ++ if test -n "$OPENJPEG_2_2_CFLAGS"; then ++ pkg_cv_OPENJPEG_2_2_CFLAGS="$OPENJPEG_2_2_CFLAGS" ++ else ++ if test -n "$PKG_CONFIG" && \ ++ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5 ++ ($PKG_CONFIG --exists --print-errors "$which") 2>&5 ++ ac_status=$? ++ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ++ test $ac_status = 0; }; then ++ pkg_cv_OPENJPEG_2_2_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null` ++else ++ pkg_failed=yes ++fi ++ fi ++else ++ pkg_failed=untried ++fi ++if test -n "$PKG_CONFIG"; then ++ if test -n "$OPENJPEG_2_2_LIBS"; then ++ pkg_cv_OPENJPEG_2_2_LIBS="$OPENJPEG_2_2_LIBS" ++ else ++ if test -n "$PKG_CONFIG" && \ ++ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5 ++ ($PKG_CONFIG --exists --print-errors "$which") 2>&5 ++ ac_status=$? ++ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ++ test $ac_status = 0; }; then ++ pkg_cv_OPENJPEG_2_2_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null` ++else ++ pkg_failed=yes ++fi ++ fi ++else ++ pkg_failed=untried ++fi ++ ++ ++ ++if test $pkg_failed = yes; then ++ ++if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then ++ _pkg_short_errors_supported=yes ++else ++ _pkg_short_errors_supported=no ++fi ++ if test $_pkg_short_errors_supported = yes; then ++ OPENJPEG_2_2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"` ++ else ++ OPENJPEG_2_2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"` ++ fi ++ # Put the nasty error message in config.log where it belongs ++ echo "$OPENJPEG_2_2_PKG_ERRORS" >&5 ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ++$as_echo "no" >&6; } ++ ++ HAVE_OPENJPEG_2_2="no" ++ if test "x$required" = "xyes"; then ++ as_fn_error $? "$OPENJPEG_2_2_PKG_ERRORS" "$LINENO" 5 ++ else ++ { $as_echo "$as_me:${as_lineno-$LINENO}: $OPENJPEG_2_2_PKG_ERRORS" >&5 ++$as_echo "$as_me: $OPENJPEG_2_2_PKG_ERRORS" >&6;} ++ fi ++ ++elif test $pkg_failed = untried; then ++ ++ HAVE_OPENJPEG_2_2="no" ++ if test "x$required" = "xyes"; then ++ as_fn_error $? "$OPENJPEG_2_2_PKG_ERRORS" "$LINENO" 5 ++ else ++ { $as_echo "$as_me:${as_lineno-$LINENO}: $OPENJPEG_2_2_PKG_ERRORS" >&5 ++$as_echo "$as_me: $OPENJPEG_2_2_PKG_ERRORS" >&6;} ++ fi ++ ++else ++ OPENJPEG_2_2_CFLAGS=$pkg_cv_OPENJPEG_2_2_CFLAGS ++ OPENJPEG_2_2_LIBS=$pkg_cv_OPENJPEG_2_2_LIBS ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ++$as_echo "yes" >&6; } ++ ++ HAVE_OPENJPEG_2_2="yes" ++ ++fi ++ ++ ++ if test x"$HAVE_OPENJPEG_2_2" = x"yes"; then ++ ++$as_echo "#define HAVE_OPENJPEG_2_2 1" >>confdefs.h ++ ++ fi + fi + else + # Fallback to v1.5 +--- ext/openjpeg/gstopenjpeg.h.orig 2017-05-15 15:46:30 UTC ++++ ext/openjpeg/gstopenjpeg.h +@@ -38,7 +38,9 @@ + #define OPJ_CPRL CPRL + #else + #include +-# ifdef HAVE_OPENJPEG_2_1 ++# if defined(HAVE_OPENJPEG_2_2) ++# include ++# elif defined(HAVE_OPENJPEG_2_1) + # include + # else + # include Modified: head/graphics/mupdf/files/patch-source__fitz__load-jpx.c ============================================================================== --- head/graphics/mupdf/files/patch-source__fitz__load-jpx.c Sun Aug 20 09:12:57 2017 (r448362) +++ head/graphics/mupdf/files/patch-source__fitz__load-jpx.c Sun Aug 20 09:48:39 2017 (r448363) @@ -16,7 +16,7 @@ #define USE_JPIP -#include -+#include ++#include struct fz_jpxd_s { Modified: head/graphics/openjpeg/Makefile ============================================================================== --- head/graphics/openjpeg/Makefile Sun Aug 20 09:12:57 2017 (r448362) +++ head/graphics/openjpeg/Makefile Sun Aug 20 09:48:39 2017 (r448363) @@ -2,9 +2,8 @@ # $FreeBSD$ PORTNAME= openjpeg -PORTVERSION= 2.1.2 +PORTVERSION= 2.2.0 DISTVERSIONPREFIX= v -PORTREVISION= 1 CATEGORIES= graphics MAINTAINER= sunpoet@FreeBSD.org @@ -21,7 +20,7 @@ LIB_DEPENDS= liblcms2.so:graphics/lcms2 \ USE_LDCONFIG= yes USES= cmake cpe pkgconfig -PLIST_SUB= VER=${PORTVERSION:R} +PLIST_SUB= PORTVERSION=${PORTVERSION} VER=${PORTVERSION:R} GH_ACCOUNT= uclouvain USE_GITHUB= yes Modified: head/graphics/openjpeg/distinfo ============================================================================== --- head/graphics/openjpeg/distinfo Sun Aug 20 09:12:57 2017 (r448362) +++ head/graphics/openjpeg/distinfo Sun Aug 20 09:48:39 2017 (r448363) @@ -1,3 +1,3 @@ -TIMESTAMP = 1475154150 -SHA256 (uclouvain-openjpeg-v2.1.2_GH0.tar.gz) = 4ce77b6ef538ef090d9bde1d5eeff8b3069ab56c4906f083475517c2c023dfa7 -SIZE (uclouvain-openjpeg-v2.1.2_GH0.tar.gz) = 1987071 +TIMESTAMP = 1502573051 +SHA256 (uclouvain-openjpeg-v2.2.0_GH0.tar.gz) = 6fddbce5a618e910e03ad00d66e7fcd09cc6ee307ce69932666d54c73b7c6e7b +SIZE (uclouvain-openjpeg-v2.2.0_GH0.tar.gz) = 2847582 Modified: head/graphics/openjpeg/pkg-plist ============================================================================== --- head/graphics/openjpeg/pkg-plist Sun Aug 20 09:12:57 2017 (r448362) +++ head/graphics/openjpeg/pkg-plist Sun Aug 20 09:48:39 2017 (r448363) @@ -4,8 +4,9 @@ bin/opj_dump include/openjpeg-%%VER%%/openjpeg.h include/openjpeg-%%VER%%/opj_config.h include/openjpeg-%%VER%%/opj_stdint.h +lib/libopenjp2.a lib/libopenjp2.so -lib/libopenjp2.so.%%VER%%.2 +lib/libopenjp2.so.%%PORTVERSION%% lib/libopenjp2.so.7 lib/openjpeg-%%VER%%/OpenJPEGConfig.cmake lib/openjpeg-%%VER%%/OpenJPEGTargets-%%CMAKE_BUILD_TYPE%%.cmake