diff options
author | hasufell <julian.ospald@googlemail.com> | 2012-04-23 02:47:09 +0200 |
---|---|---|
committer | hasufell <julian.ospald@googlemail.com> | 2012-04-23 02:47:09 +0200 |
commit | 52bc2c04d29df363121d1bd74249485b69c39976 (patch) | |
tree | eaa3af7f4e549a46b79d120be3985644ead5047a /dev-util | |
parent | games-strategy/freeorion: New Ebuild for bug 402019 thanks to all (diff) | |
download | sunrise-reviewed-52bc2c04d29df363121d1bd74249485b69c39976.tar.gz sunrise-reviewed-52bc2c04d29df363121d1bd74249485b69c39976.tar.bz2 sunrise-reviewed-52bc2c04d29df363121d1bd74249485b69c39976.zip |
dev-util/nvidia-texture-tools: revbump fixes not installed headers, add check for gcc-version
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/nvidia-texture-tools/ChangeLog | 8 | ||||
-rw-r--r-- | dev-util/nvidia-texture-tools/Manifest | 6 | ||||
-rw-r--r-- | dev-util/nvidia-texture-tools/files/nvidia-texture-tools-2.0.8-r1-cmake.patch (renamed from dev-util/nvidia-texture-tools/files/nvidia-texture-tools-2.0.8-cmake.patch) | 130 | ||||
-rw-r--r-- | dev-util/nvidia-texture-tools/nvidia-texture-tools-2.0.8-r1.ebuild (renamed from dev-util/nvidia-texture-tools/nvidia-texture-tools-2.0.8.ebuild) | 13 |
4 files changed, 95 insertions, 62 deletions
diff --git a/dev-util/nvidia-texture-tools/ChangeLog b/dev-util/nvidia-texture-tools/ChangeLog index 940d0cedf..95527cbfe 100644 --- a/dev-util/nvidia-texture-tools/ChangeLog +++ b/dev-util/nvidia-texture-tools/ChangeLog @@ -2,6 +2,14 @@ # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ +*nvidia-texture-tools-2.0.8-r1 (23 Apr 2012) + + 23 Apr 2012; hasufell <julian.ospald@googlemail.com> + -nvidia-texture-tools-2.0.8.ebuild, +nvidia-texture-tools-2.0.8-r1.ebuild, + -files/nvidia-texture-tools-2.0.8-cmake.patch, + +files/nvidia-texture-tools-2.0.8-r1-cmake.patch: + revbump fixes not installed headers, add check for gcc-version + 15 Apr 2012; hasufell <julian.ospald@googlemail.com> nvidia-texture-tools-2.0.8.ebuild: correct static to static-libs diff --git a/dev-util/nvidia-texture-tools/Manifest b/dev-util/nvidia-texture-tools/Manifest index c6759f30c..4abf2df71 100644 --- a/dev-util/nvidia-texture-tools/Manifest +++ b/dev-util/nvidia-texture-tools/Manifest @@ -2,9 +2,9 @@ AUX cuda.patch 722 RMD160 e76a003405e7fcfbe60023a1de3da659879e62bf SHA1 83dff56c AUX gcc4.4.4-aliasing.patch 1553 RMD160 18525e0eb8d3b8a0212e670243f01099e41ef97a SHA1 73272c8e6661c56dcaa9bf96d971cb7df77cec54 SHA256 12df5dab88246e239ff9c96bd87ccb86ea3769b6f817fee08d7613d1ae6b3a0c AUX libpng1.5-build.patch 591 RMD160 89c68d37852bcd4d333a34efc2d5b7daa3b5a663 SHA1 9df903aff0253e99448efd446232f3109bc382ba SHA256 30aa82b877926e91e95139b89277ae3e73bc1c3c14e4abbc90378e42deacd8c3 AUX libtiff4.patch 2897 RMD160 16485b0934b934139e33de995f39317de161384f SHA1 cff6768bf053606c0b4032b02b7f7f5538a2a41e SHA256 86ca76aacd4219d10326e54fce887943aea8cb55662bfbd4ffe7a9695f223448 -AUX nvidia-texture-tools-2.0.8-cmake.patch 4773 RMD160 9e819bf5c1104653db6a70aabc2315910b985cdf SHA1 b313d81da904023b25b431eb5df3ae0eabbb4116 SHA256 dde709ed016a60e82563992f6c5dfc41969432cbd83c4253a90248ab998c6649 +AUX nvidia-texture-tools-2.0.8-r1-cmake.patch 5412 RMD160 f5ed6ea64b55cded3fda6261d3eb75454b9ce82c SHA1 a3dcf923e982bf5d86e023a9226c0246fdeb25fa SHA256 bab9c3228ce6fd04351c338fcb8c16d899b476ad3840f9fa4686ebaf72a74de9 AUX valgrind.patch 26286 RMD160 d2b438833024c1448d0aef7221668e8853f2ad68 SHA1 e46eff41188629c831d53ce0b045e0b939b0e34d SHA256 2ee618e7d9ddfe11bc3f304e7045832bc0e1e3a79b70924996830cdd46676539 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 1385 RMD160 567db4ed83349928b6c08a6dd82f16765a63b8a6 SHA1 b78b71930ee61ed2e308f6cda70b89b0009f9b81 SHA256 5ff914f6b24437109a9ee0121c1ade424fcc5a123fee50247e77cc6fd8db1b35 -MISC ChangeLog 642 RMD160 f482669a1e9d5af2ad64e097aed61dd87aca839b SHA1 b2817028e5321004494e676bafd1c4ccdfbf81a8 SHA256 b086b463a8dcf85941887970239ce98a3a67a2fe7674338aa5d137189ab7d429 +EBUILD nvidia-texture-tools-2.0.8-r1.ebuild 1651 RMD160 1d717d8c7d7dec880852a2c949897aa0b7198c38 SHA1 764ef88b45b352c8991ef46b10a5657d7367915a SHA256 d8f57d3badc247c3b85018fa93bb06297e666b49444816b17b4b0def4e592b94 +MISC ChangeLog 987 RMD160 2b4297007129704d53648915821d27b14172db26 SHA1 b56e378945013b3a5989a59ffbdde84772f68638 SHA256 fe7b99fb61a0ae37b35c5aabb8f196a4379c656790d6c798a8c7a9752899de01 MISC metadata.xml 382 RMD160 39b31924c1369a0478cd0ec709e01fd623178cba SHA1 566d696883a5795251bcadce39a4771dd535db17 SHA256 2f2e19993374f1de97db1723f09d4839997b76707510efce20dfb3123ba6a8ef diff --git a/dev-util/nvidia-texture-tools/files/nvidia-texture-tools-2.0.8-cmake.patch b/dev-util/nvidia-texture-tools/files/nvidia-texture-tools-2.0.8-r1-cmake.patch index f2cadfc61..cee6fb5aa 100644 --- a/dev-util/nvidia-texture-tools/files/nvidia-texture-tools-2.0.8-cmake.patch +++ b/dev-util/nvidia-texture-tools/files/nvidia-texture-tools-2.0.8-r1-cmake.patch @@ -1,78 +1,27 @@ From: hasufell <julian.ospald@googlemail.com> -Date: Wed Apr 11 21:49:58 UTC 2012 +Date: Sun Apr 22 19:08:52 UTC 2012 Subject: various cmake fixes fix hardcoded install paths for BINDIR and LIBDIR make cg, cuda, glew, glut and openexr controllable and not automagic +add install-rules for headers (used by media-libs/devil) ---- src/nvcore/CMakeLists.txt -+++ src/nvcore/CMakeLists.txt -@@ -42,6 +42,6 @@ - TARGET_LINK_LIBRARIES(nvcore ${LIBS}) - - INSTALL(TARGETS nvcore -- RUNTIME DESTINATION bin -- LIBRARY DESTINATION lib -- ARCHIVE DESTINATION lib/static) -+ RUNTIME DESTINATION ${BINDIR} -+ LIBRARY DESTINATION ${LIBDIR} -+ ARCHIVE DESTINATION ${LIBDIR}) ---- src/nvimage/CMakeLists.txt -+++ src/nvimage/CMakeLists.txt -@@ -62,7 +62,7 @@ - TARGET_LINK_LIBRARIES(nvimage ${LIBS} nvcore nvmath posh) - - INSTALL(TARGETS nvimage -- RUNTIME DESTINATION bin -- LIBRARY DESTINATION lib -- ARCHIVE DESTINATION lib/static) -+ RUNTIME DESTINATION ${BINDIR} -+ LIBRARY DESTINATION ${LIBDIR} -+ ARCHIVE DESTINATION ${LIBDIR}) - ---- src/nvmath/CMakeLists.txt -+++ src/nvmath/CMakeLists.txt -@@ -28,6 +28,6 @@ - TARGET_LINK_LIBRARIES(nvmath ${LIBS} nvcore) - - INSTALL(TARGETS nvmath -- RUNTIME DESTINATION bin -- LIBRARY DESTINATION lib -- ARCHIVE DESTINATION lib/static) -+ RUNTIME DESTINATION ${BINDIR} -+ LIBRARY DESTINATION ${LIBDIR} -+ ARCHIVE DESTINATION ${LIBDIR}) ---- src/nvtt/CMakeLists.txt -+++ src/nvtt/CMakeLists.txt -@@ -53,9 +53,9 @@ - TARGET_LINK_LIBRARIES(nvtt ${LIBS} nvcore nvmath nvimage squish) - - INSTALL(TARGETS nvtt -- RUNTIME DESTINATION bin -- LIBRARY DESTINATION lib -- ARCHIVE DESTINATION lib/static) -+ RUNTIME DESTINATION ${BINDIR} -+ LIBRARY DESTINATION ${LIBDIR} -+ ARCHIVE DESTINATION ${LIBDIR}) - - INSTALL(FILES nvtt.h DESTINATION include/nvtt) - --- src/CMakeLists.txt +++ src/CMakeLists.txt -@@ -5,6 +5,13 @@ - SUBDIRS(nvtt) +@@ -6,6 +6,13 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}) -+ + +# initial variables +SET(GLUT TRUE CACHE BOOL "") +SET(GLEW TRUE CACHE BOOL "") +SET(CG TRUE CACHE BOOL "") +SET(CUDA TRUE CACHE BOOL "") +SET(OPENEXR TRUE CACHE BOOL "") - ++ # OpenGL INCLUDE(FindOpenGL) + IF(OPENGL_FOUND) @@ -15,13 +22,15 @@ ENDIF(OPENGL_FOUND) @@ -174,3 +123,70 @@ make cg, cuda, glew, glut and openexr controllable and not automagic # Qt FIND_PACKAGE(Qt4) +@@ -121,3 +138,4 @@ + + #INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/nvconfig.h DESTINATION include) + ++INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/nvconfig.h DESTINATION include) +--- src/nvtt/CMakeLists.txt ++++ src/nvtt/CMakeLists.txt +@@ -53,13 +53,11 @@ + TARGET_LINK_LIBRARIES(nvtt ${LIBS} nvcore nvmath nvimage squish) + + INSTALL(TARGETS nvtt +- RUNTIME DESTINATION bin +- LIBRARY DESTINATION lib +- ARCHIVE DESTINATION lib/static) +- +-INSTALL(FILES nvtt.h DESTINATION include/nvtt) +- ++ RUNTIME DESTINATION ${BINDIR} ++ LIBRARY DESTINATION ${LIBDIR} ++ ARCHIVE DESTINATION ${LIBDIR}) + ++INSTALL(DIRECTORY . DESTINATION include/nvtt FILES_MATCHING PATTERN "*.h") + + # test executables + ADD_EXECUTABLE(nvcompress tools/compress.cpp tools/cmdline.h) +--- src/nvmath/CMakeLists.txt ++++ src/nvmath/CMakeLists.txt +@@ -28,6 +28,8 @@ + TARGET_LINK_LIBRARIES(nvmath ${LIBS} nvcore) + + INSTALL(TARGETS nvmath +- RUNTIME DESTINATION bin +- LIBRARY DESTINATION lib +- ARCHIVE DESTINATION lib/static) ++ RUNTIME DESTINATION ${BINDIR} ++ LIBRARY DESTINATION ${LIBDIR} ++ ARCHIVE DESTINATION ${LIBDIR}) ++ ++INSTALL(DIRECTORY . DESTINATION include/nvmath FILES_MATCHING PATTERN "*.h") +--- src/nvimage/CMakeLists.txt ++++ src/nvimage/CMakeLists.txt +@@ -62,7 +62,8 @@ + TARGET_LINK_LIBRARIES(nvimage ${LIBS} nvcore nvmath posh) + + INSTALL(TARGETS nvimage +- RUNTIME DESTINATION bin +- LIBRARY DESTINATION lib +- ARCHIVE DESTINATION lib/static) ++ RUNTIME DESTINATION ${BINDIR} ++ LIBRARY DESTINATION ${LIBDIR} ++ ARCHIVE DESTINATION ${LIBDIR}) + ++INSTALL(DIRECTORY . DESTINATION include/nvimage FILES_MATCHING PATTERN "*.h") +--- src/nvcore/CMakeLists.txt ++++ src/nvcore/CMakeLists.txt +@@ -42,6 +42,8 @@ + TARGET_LINK_LIBRARIES(nvcore ${LIBS}) + + INSTALL(TARGETS nvcore +- RUNTIME DESTINATION bin +- LIBRARY DESTINATION lib +- ARCHIVE DESTINATION lib/static) ++ RUNTIME DESTINATION ${BINDIR} ++ LIBRARY DESTINATION ${LIBDIR} ++ ARCHIVE DESTINATION ${LIBDIR}) ++ ++INSTALL(DIRECTORY . DESTINATION include/nvcore FILES_MATCHING PATTERN "*.h") 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-r1.ebuild index 47b5213e3..d0924faa7 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-r1.ebuild @@ -4,7 +4,7 @@ EAPI=4 -inherit cmake-utils eutils multilib +inherit cmake-utils eutils multilib toolchain-funcs DESCRIPTION="A set of cuda-enabled texture tools and compressors" HOMEPAGE="http://developer.nvidia.com/object/texture_tools.html" @@ -32,13 +32,22 @@ RDEPEND="${DEPEND}" S=${WORKDIR}/${PN} +pkg_setup() { + if use cuda; then + if [[ $(( $(gcc-major-version) * 10 + $(gcc-minor-version) )) -gt 44 ]] ; then + eerror "gcc 4.5 and up are not supported for useflag cuda!" + die "gcc 4.5 and up are not supported for useflag cuda!" + fi + fi +} + src_prepare() { epatch "${FILESDIR}"/gcc4.4.4-aliasing.patch \ "${FILESDIR}"/libpng1.5-build.patch \ "${FILESDIR}"/valgrind.patch \ "${FILESDIR}"/cuda.patch \ "${FILESDIR}"/libtiff4.patch \ - "${FILESDIR}"/${P}-cmake.patch + "${FILESDIR}"/${PF}-cmake.patch } src_configure() { |