From: "Bernard Cafarelli" <voyageur@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/nvidia-texture-tools/
Date: Sat, 5 Sep 2020 10:09:02 +0000 (UTC) [thread overview]
Message-ID: <1599300538.4312bd73b0f1f01f656820a241658b78e6fd42e8.voyageur@gentoo> (raw)
commit: 4312bd73b0f1f01f656820a241658b78e6fd42e8
Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 5 10:08:48 2020 +0000
Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
CommitDate: Sat Sep 5 10:08:58 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4312bd73
media-gfx/nvidia-texture-tools: add some build options
Use recommended upstream options for shared flag
libsquish has build options for sse2 and openmp
Disable old gconf schema installation (triggers sandbox failure)
Closes: https://bugs.gentoo.org/740430
Package-Manager: Portage-3.0.5, Repoman-3.0.1
Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>
.../nvidia-texture-tools/nvidia-texture-tools-2.1.2.ebuild | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/media-gfx/nvidia-texture-tools/nvidia-texture-tools-2.1.2.ebuild b/media-gfx/nvidia-texture-tools/nvidia-texture-tools-2.1.2.ebuild
index 335938d3103..b2db5d4e20c 100644
--- a/media-gfx/nvidia-texture-tools/nvidia-texture-tools-2.1.2.ebuild
+++ b/media-gfx/nvidia-texture-tools/nvidia-texture-tools-2.1.2.ebuild
@@ -12,7 +12,7 @@ SRC_URI="https://github.com/castano/nvidia-texture-tools/archive/${PV}.tar.gz ->
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE=""
+IUSE="cpu_flags_x86_sse2 openmp"
RDEPEND="
media-libs/ilmbase:=
@@ -29,11 +29,20 @@ DEPEND="${RDEPEND}
PATCHES=( "${FILESDIR}"/${P}-cmake.patch )
DOCS=( ChangeLog README.md )
+pkg_pretend() {
+ if [[ ${MERGE_TYPE} != binary ]] && use openmp; then
+ tc-has-openmp || die "Please switch to an openmp compatible compiler"
+ fi
+}
+
src_configure() {
# May be able to restore CUDA, but needs an old gcc
local mycmakeargs=(
-DCUDA_FOUND=OFF
- -DNVTT_SHARED=TRUE
+ -DGCONFTOOL2=OFF
+ -DNVTT_SHARED=0
+ -DBUILD_SQUISH_WITH_OPENMP=$(usex openmp)
+ -DBUILD_SQUISH_WITH_SSE2=$(usex cpu_flags_x86_sse2)
)
cmake_src_configure
}
next reply other threads:[~2020-09-05 10:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-05 10:09 Bernard Cafarelli [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-05-11 13:23 [gentoo-commits] repo/gentoo:master commit in: media-gfx/nvidia-texture-tools/ David Seifert
2020-09-04 20:22 Bernard Cafarelli
2019-02-15 18:32 Mikle Kolyada
2019-02-15 18:32 Mikle Kolyada
2019-02-15 0:18 Thomas Deutschmann
2018-04-20 20:01 David Seifert
2017-02-12 16:07 Johannes Huber
2017-02-12 14:48 Agostino Sarubbo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1599300538.4312bd73b0f1f01f656820a241658b78e6fd42e8.voyageur@gentoo \
--to=voyageur@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox