Date: Thu, 3 Oct 2019 19:15:13 +0000 (UTC) From: Thierry Thomas <thierry@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r513712 - in head/graphics/cimg: . files Message-ID: <201910031915.x93JFDBO016263@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: thierry Date: Thu Oct 3 19:15:13 2019 New Revision: 513712 URL: https://svnweb.freebsd.org/changeset/ports/513712 Log: Make buildable on non-x86 architecture: - CImg.h assumes signed char, make it signed explicitly. - -mtune=generic doesn't exist on e.g. powerpc64. - USES=compiler:c11 is necessary. PR: 241026 Submitted by: pkubaj Added: head/graphics/cimg/files/patch-CImg.h (contents, props changed) Modified: head/graphics/cimg/Makefile head/graphics/cimg/files/patch-examples__Makefile Modified: head/graphics/cimg/Makefile ============================================================================== --- head/graphics/cimg/Makefile Thu Oct 3 18:33:13 2019 (r513711) +++ head/graphics/cimg/Makefile Thu Oct 3 19:15:13 2019 (r513712) @@ -19,19 +19,11 @@ LICENSE_FILE_CeCILL= ${WRKSRC}/Licence_CeCILL_V2-en.tx LICENSE_PERMS_CeCILL_C= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept LICENSE_PERMS_CeCILL= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept -BROKEN_aarch64= invokes x86 assembler -BROKEN_armv6= invokes x86 assembler -BROKEN_armv7= invokes x86 assembler -BROKEN_mips= invokes x86 assembler -BROKEN_mips64= invokes x86 assembler -BROKEN_sparc64= invokes x86 assembler -BROKEN_powerpc64= invokes x86 assembler - USE_GITHUB= yes GH_ACCOUNT= dtschump GH_PROJECT= CImg -USES= xorg +USES= compiler:c11 xorg .if !defined(WITHOUT_LAPACK) . if defined(WITH_ATLAS) Added: head/graphics/cimg/files/patch-CImg.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/cimg/files/patch-CImg.h Thu Oct 3 19:15:13 2019 (r513712) @@ -0,0 +1,11 @@ +--- CImg.h.orig 2019-09-24 20:44:55 UTC ++++ CImg.h +@@ -6737,7 +6737,7 @@ namespace cimg_library_suffixed { + } + + //! Return \c true if input character is blank (space, tab, or non-printable character). +- inline bool is_blank(const char c) { ++ inline bool is_blank(const signed char c) { + return c>=0 && c<=' '; + } + Modified: head/graphics/cimg/files/patch-examples__Makefile ============================================================================== --- head/graphics/cimg/files/patch-examples__Makefile Thu Oct 3 18:33:13 2019 (r513711) +++ head/graphics/cimg/files/patch-examples__Makefile Thu Oct 3 19:15:13 2019 (r513712) @@ -26,7 +26,7 @@ +OPT_CFLAGS = # -Ofast - handled by the port CFLAGS ifdef IS_GCC -OPT_CFLAGS = -Ofast -mtune=generic -+OPT_CFLAGS = -mtune=generic ++OPT_CFLAGS = endif ifdef IS_ICPC OPT_CFLAGS = -fast
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910031915.x93JFDBO016263>