summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/nvidia-texture-tools/nvidia-texture-tools-2.0.8.ebuild')
-rw-r--r--dev-util/nvidia-texture-tools/nvidia-texture-tools-2.0.8.ebuild27
1 files changed, 17 insertions, 10 deletions
diff --git a/dev-util/nvidia-texture-tools/nvidia-texture-tools-2.0.8.ebuild b/dev-util/nvidia-texture-tools/nvidia-texture-tools-2.0.8.ebuild
index 49421c3..16fd75b 100644
--- a/dev-util/nvidia-texture-tools/nvidia-texture-tools-2.0.8.ebuild
+++ b/dev-util/nvidia-texture-tools/nvidia-texture-tools-2.0.8.ebuild
@@ -2,7 +2,8 @@
# Distributed under the terms of the GNU General Public License v2
# $Header: $
-inherit eutils
+EAPI=2
+inherit cmake-utils eutils
DESCRIPTION="a set of cuda-enabled texture tools and compressors"
HOMEPAGE="http://developer.nvidia.com/object/texture_tools.html"
@@ -27,22 +28,28 @@ RDEPEND="${DEPEND}"
S="${WORKDIR}/${PN}"
-src_compile() {
- local conf_opts="${conf_opts} --prefix=/usr"
+src_configure() {
+ mycmakeargs=(
+ "--prefix=/usr"
+ )
if use debug; then
- conf_opts="${conf_opts} --debug"
+ mycmakeargs+=(
+ "--debug"
+ )
else
- conf_opts="${conf_opts} --release"
+ mycmakeargs+=(
+ "--release"
+ )
fi
- CONFIGURE_OPTIONS="
- ${conf_opts}"
+ cmake-utils_src_configure
+}
- ./configure $CONFIGURE_OPTIONS || die "./configure failed"
- emake -j1 || die "emake failed"
+src_compile() {
+ cmake-utils_src_make
}
src_install() {
- emake -j1 DESTDIR="${D}" install || die "emake install failed"
+ cmake-utils_src_install
}