diff options
-rw-r--r-- | dev-util/nvidia-texture-tools/Manifest | 4 | ||||
-rw-r--r-- | dev-util/nvidia-texture-tools/metadata.xml | 3 | ||||
-rw-r--r-- | dev-util/nvidia-texture-tools/nvidia-texture-tools-2.0.8.ebuild | 19 |
3 files changed, 19 insertions, 7 deletions
diff --git a/dev-util/nvidia-texture-tools/Manifest b/dev-util/nvidia-texture-tools/Manifest index 3c7ff8e..3285c2d 100644 --- a/dev-util/nvidia-texture-tools/Manifest +++ b/dev-util/nvidia-texture-tools/Manifest @@ -1,3 +1,3 @@ DIST nvidia-texture-tools-2.0.8-1.tar.gz 935227 RMD160 dbb2a1ea4bef259af8520d881ab414d69ee0dea2 SHA1 3eaa578acc35159684748055aeb4bacdeaef12d1 SHA256 6b3c83500b420ee976f61eeae16e5727e2401e133f543baeac76c66c381eed2e -EBUILD nvidia-texture-tools-2.0.8.ebuild 829 RMD160 b3e2516dcd101173c6d05ac0bbf6f94b5431584b SHA1 46789b4fd1f13c517449dfc21b316e1c3fd7c2cb SHA256 07246e280a5734e045d2fb22943df8b0fb9059a933071913cc98d994f5eeb550 -MISC metadata.xml 401 RMD160 e3598528da07ed463d4f985cc93d8c44a693aede SHA1 c66d8119e11b418bdddd72c1c48d827d55b35df3 SHA256 221ef2fcf74998b05448385f63cf09213cd552ddf778af480c35eb0543d1d7db +EBUILD nvidia-texture-tools-2.0.8.ebuild 998 RMD160 7efcf3156f0b405605ce7a32f141286a595a4053 SHA1 7d7b299caada38edaa8e067fa89b2c09d737154f SHA256 4f80257caf2da5f43f984cd4847b326fe009f53fc469dd323e10bfe1c4587a56 +MISC metadata.xml 467 RMD160 fe425c11b037b06ac39934d65f470b8821badd15 SHA1 09c14d5f9fb8d26f8b3996728b47610478109b0b SHA256 e3826bc733fec0af8e3ab296dccba37b313740391f218a5dc84abf8d2cecda2a diff --git a/dev-util/nvidia-texture-tools/metadata.xml b/dev-util/nvidia-texture-tools/metadata.xml index 0201e82..eb3a455 100644 --- a/dev-util/nvidia-texture-tools/metadata.xml +++ b/dev-util/nvidia-texture-tools/metadata.xml @@ -6,4 +6,7 @@ <email>nikai@nikai.net</email> </maintainer> <longdescription>The NVIDIA Texture Tools are a set of CUDA-enabled texture tools and compressors. The texture tools also contain a CPU texture compression path.</longdescription> +<use> + <flag name='debug'>Enable debugging support</flag> +</use> </pkgmetadata> 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 3e56f1a..49421c3 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 @@ -13,13 +13,14 @@ SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" +IUSE="debug" DEPEND="x11-libs/libX11 media-libs/jpeg media-libs/libpng media-libs/tiff" # optional: +# media-libs/glew # media-gfx/nvidia-cg-toolkit # dev-util/nvidia-cuda-toolkit RDEPEND="${DEPEND}" @@ -27,10 +28,18 @@ RDEPEND="${DEPEND}" S="${WORKDIR}/${PN}" src_compile() { - ./configure \ - --prefix=/usr \ - --release \ - --libdir="$(get_libdir)" || die "./configure failed" + local conf_opts="${conf_opts} --prefix=/usr" + + if use debug; then + conf_opts="${conf_opts} --debug" + else + conf_opts="${conf_opts} --release" + fi + + CONFIGURE_OPTIONS=" + ${conf_opts}" + + ./configure $CONFIGURE_OPTIONS || die "./configure failed" emake -j1 || die "emake failed" } |