graphics/nvidia-texture-tools: update 2.1.1 → 2.1.2

Note: upstream no longer supports shared libnvmath, but consumer
ports (devel/osg*) still require it, so forcibly make it shared.
This commit is contained in:
Dmitry Marakasov 2022-04-01 16:56:04 +03:00
parent a856c59818
commit 7784bff647
8 changed files with 58 additions and 22 deletions

View File

@ -1,5 +1,5 @@
PORTNAME= nvidia-texture-tools
PORTVERSION= 2.1.1
PORTVERSION= 2.1.2
CATEGORIES= graphics
MAINTAINER= amdmi3@FreeBSD.org
@ -11,8 +11,11 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
ONLY_FOR_ARCHS= i386 amd64 powerpc powerpc64 armv6 aarch64 # see src/nvcore/nvcore.h
USES= cmake compiler:c++11-lang
CMAKE_ARGS= -DNVTT_SHARED=TRUE \
-DNVTHREAD_SHARED=TRUE
CMAKE_ON= NVTT_SHARED \
NVCORE_SHARED \
NVTHREAD_SHARED \
NVIMAGE_SHARED
USE_GITHUB= yes
GH_ACCOUNT= castano
USE_LDCONFIG= yes

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1647528012
SHA256 (castano-nvidia-texture-tools-2.1.1_GH0.tar.gz) = 4cd23eef0c4af473b6ca644fb3a96d65ffc6bb06c1b207255c2c899f3c15e726
SIZE (castano-nvidia-texture-tools-2.1.1_GH0.tar.gz) = 45303260
TIMESTAMP = 1648815344
SHA256 (castano-nvidia-texture-tools-2.1.2_GH0.tar.gz) = 0187336b0285038fab4f4a6b7654f51beaebab040b6aad53c147c917c5ab519b
SIZE (castano-nvidia-texture-tools-2.1.2_GH0.tar.gz) = 45172897

View File

@ -1,26 +1,15 @@
--- CMakeLists.txt.orig 2017-08-23 18:05:30 UTC
--- CMakeLists.txt.orig 2020-08-24 06:27:21 UTC
+++ CMakeLists.txt
@@ -25,9 +25,8 @@ IF(WIN32)
ENDIF(WIN32)
-INCLUDE(${NV_CMAKE_DIR}/OptimalOptions.cmake)
+SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC") # the only useful line from OptimalOptions.cmake
MESSAGE(STATUS "Setting optimal options")
-MESSAGE(STATUS " Processor: ${NV_SYSTEM_PROCESSOR}")
MESSAGE(STATUS " Compiler Flags: ${CMAKE_CXX_FLAGS}")
IF(CMAKE_BUILD_TYPE MATCHES "debug")
@@ -45,12 +44,6 @@ ENDIF(NVTT_SHARED)
ADD_SUBDIRECTORY(extern)
@@ -28,12 +28,6 @@ ADD_SUBDIRECTORY(extern)
ADD_SUBDIRECTORY(src)
-
-# These files should only be installed when creating packages.
-INSTALL(FILES
- LICENSE
- README.md
- DESTINATION share/doc/nvtt)
-
# Add packaging support
INCLUDE(InstallRequiredSystemLibraries)

View File

@ -0,0 +1,10 @@
--- cmake/OptimalOptions.cmake.orig 2020-08-24 06:27:21 UTC
+++ cmake/OptimalOptions.cmake
@@ -1,7 +1,6 @@
# Set optimal options for gcc:
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
- SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
ENDIF()

View File

@ -0,0 +1,10 @@
--- extern/CMakeLists.txt.orig 2020-08-24 06:27:21 UTC
+++ extern/CMakeLists.txt
@@ -5,7 +5,5 @@ ADD_SUBDIRECTORY(EtcLib)
ADD_SUBDIRECTORY(rg_etc1_v104)
#ADD_SUBDIRECTORY(etcpack)
-ADD_SUBDIRECTORY(libsquish-1.15)
-
ADD_SUBDIRECTORY(CMP_Core)

View File

@ -0,0 +1,11 @@
--- src/nvmath/CMakeLists.txt.orig 2020-08-24 06:27:21 UTC
+++ src/nvmath/CMakeLists.txt
@@ -14,7 +14,7 @@ SET(MATH_SRCS
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
-ADD_LIBRARY(nvmath ${MATH_SRCS})
+ADD_LIBRARY(nvmath SHARED ${MATH_SRCS})
TARGET_LINK_LIBRARIES(nvmath ${LIBS} nvcore)

View File

@ -0,0 +1,11 @@
--- src/nvmath/Matrix.cpp.orig 2020-08-24 06:27:21 UTC
+++ src/nvmath/Matrix.cpp
@@ -7,7 +7,7 @@
#include <float.h>
-#if !NV_CC_MSVC && !NV_OS_ORBIS
+#if !NV_CC_MSVC && !NV_OS_ORBIS && !NV_OS_FREEBSD
#include <alloca.h>
#endif

View File

@ -4,9 +4,11 @@ bin/nvcompress
bin/nvddsinfo
bin/nvdecompress
bin/nvhdrtest
bin/nvimgdiff
bin/nvtestsuite
bin/nvzoom
include/nvtt/nvtt.h
include/nvtt/nvtt_wrapper.h
lib/libnvcore.so
lib/libnvimage.so
lib/libnvmath.so