pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/openimageio openimageio: Fix POSIX shell port...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/feaafca64ffa
branches:  trunk
changeset: 424984:feaafca64ffa
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Tue Mar 17 14:19:02 2020 +0000

description:
openimageio: Fix POSIX shell portability issues in Makefile and alloca(3) use

* Bump PKGREVISION from use of alloca(3) supplied by copmpiler.

diffstat:

 graphics/openimageio/Makefile               |   7 ++++---
 graphics/openimageio/distinfo               |   3 ++-
 graphics/openimageio/patches/patch-Makefile |  18 ++++++++++++++++++
 3 files changed, 24 insertions(+), 4 deletions(-)

diffs (62 lines):

diff -r c4f777caaf76 -r feaafca64ffa graphics/openimageio/Makefile
--- a/graphics/openimageio/Makefile     Tue Mar 17 14:18:06 2020 +0000
+++ b/graphics/openimageio/Makefile     Tue Mar 17 14:19:02 2020 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.62 2020/03/10 22:08:51 wiz Exp $
+# $NetBSD: Makefile,v 1.63 2020/03/17 14:19:02 ryoon Exp $
 
 OIIOVER=       1.8.15
 DISTNAME=      oiio-Release-${OIIOVER}
 PKGNAME=       ${DISTNAME:S/oiio-Release/openimageio/}
-PKGREVISION=   12
+PKGREVISION=   13
 CATEGORIES=    graphics
 MASTER_SITES=  -https://github.com/OpenImageIO/oiio/archive/Release-${OIIOVER}.tar.gz
 
@@ -13,7 +13,8 @@
 LICENSE=       modified-bsd
 
 USE_CMAKE=             yes
-USE_LANGUAGES=         c c++11
+USE_LANGUAGES=         c gnu++11
+BUILDLINK_TRANSFORM+=  rm:-std=c++11 # for alloca(3)
 USE_TOOLS+=            gmake
 
 OBJDIR=                        ../build
diff -r c4f777caaf76 -r feaafca64ffa graphics/openimageio/distinfo
--- a/graphics/openimageio/distinfo     Tue Mar 17 14:18:06 2020 +0000
+++ b/graphics/openimageio/distinfo     Tue Mar 17 14:19:02 2020 +0000
@@ -1,9 +1,10 @@
-$NetBSD: distinfo,v 1.20 2019/12/29 10:15:04 markd Exp $
+$NetBSD: distinfo,v 1.21 2020/03/17 14:19:02 ryoon Exp $
 
 SHA1 (oiio-Release-1.8.15.tar.gz) = 3c8139af5c68d63a6fecd3096c0b78e34698c57b
 RMD160 (oiio-Release-1.8.15.tar.gz) = b434b141e44e8ce2b4433e286b795654e3f850e4
 SHA512 (oiio-Release-1.8.15.tar.gz) = e022e5c7e300d3dd952bcf3476e1b676a8931f67ba6b3959b26c75b9709907ac1c1b99de651f5876045f9a333e325a161b0d5159cb5bf385eb4f9f90a04707c7
 Size (oiio-Release-1.8.15.tar.gz) = 27828632 bytes
+SHA1 (patch-Makefile) = 87ba502488af01b266afcd8135b9d9ff52fe9752
 SHA1 (patch-src_cmake_install.cmake) = 8db6fbf92878d237dc08a761481febef45cb9f05
 SHA1 (patch-src_cmake_modules_FindOpenEXR.cmake) = c8ff004f262b2d47d4f00dace858a3dad8bd3833
 SHA1 (patch-src_include_OpenImageIO_strutil.h) = 881d5df34c8aa7641f018d64cd8b080534813db2
diff -r c4f777caaf76 -r feaafca64ffa graphics/openimageio/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/openimageio/patches/patch-Makefile       Tue Mar 17 14:19:02 2020 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-Makefile,v 1.1 2020/03/17 14:19:03 ryoon Exp $
+
+* Fix POSIX shell portability issues
+
+--- Makefile.orig      2018-10-01 21:26:14.000000000 +0000
++++ Makefile
+@@ -389,9 +389,9 @@ TEST_FLAGS += --force-new-ctest-process 
+ # 'make test' does a full build and then runs all tests
+ test: cmake
+       @ ${CMAKE} -E cmake_echo_color --switch=$(COLOR) --cyan "Running tests ${TEST_FLAGS}..."
+-      @ # if [ "${CODECOV}" == "1" ] ; then lcov -b ${build_dir} -d ${build_dir} -z ; rm -rf ${build_dir}/cov ; fi
++      @ # if [ "${CODECOV}" = "1" ] ; then lcov -b ${build_dir} -d ${build_dir} -z ; rm -rf ${build_dir}/cov ; fi
+       @ ( cd ${build_dir} ; PYTHONPATH=${PWD}/${build_dir}/src/python ctest -E broken ${TEST_FLAGS} )
+-      @ ( if [ "${CODECOV}" == "1" ] ; then \
++      @ ( if [ "${CODECOV}" = "1" ] ; then \
+             cd ${build_dir} ; \
+             lcov -b . -d . -c -o cov.info ; \
+             lcov --remove cov.info "/usr*" -o cov.info ; \



Home | Main Index | Thread Index | Old Index