diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2009-03-07 14:51:39 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2009-03-07 14:51:39 +0000 |
commit | 464602e87ad7c0635c21a48f7da9c55a49fc04d9 (patch) | |
tree | b62ac21be6c588e3beb88380f133c071b2b89f37 /graphics/nvidia-texture-tools/files | |
parent | 02a54d93f406b79f6ede8cff47e22df182e0c7ee (diff) |
Notes
Diffstat (limited to 'graphics/nvidia-texture-tools/files')
5 files changed, 96 insertions, 0 deletions
diff --git a/graphics/nvidia-texture-tools/files/patch-src-nvcore-Debug.cpp b/graphics/nvidia-texture-tools/files/patch-src-nvcore-Debug.cpp new file mode 100644 index 000000000000..ee6d6c863f7b --- /dev/null +++ b/graphics/nvidia-texture-tools/files/patch-src-nvcore-Debug.cpp @@ -0,0 +1,26 @@ +--- src/nvcore/Debug.cpp.orig 2008-12-01 11:04:27.000000000 +0300 ++++ src/nvcore/Debug.cpp 2009-03-06 22:45:48.000000000 +0300 +@@ -34,7 +34,7 @@ + # endif + #endif + +-#if NV_OS_DARWIN ++#if NV_OS_DARWIN || NV_OS_FREEBSD + # include <unistd.h> // getpid + # include <sys/types.h> + # include <sys/sysctl.h> // sysctl +@@ -195,6 +195,14 @@ + return (void *) ucp->uc_mcontext->ss.eip; + # endif + # endif ++# elif NV_OS_FREEBSD ++# if NV_CPU_X86_64 ++ ucontext_t * ucp = (ucontext_t *)secret; ++ return (void *)ucp->uc_mcontext.mc_rip; ++# elif NV_CPU_X86 ++ ucontext_t * ucp = (ucontext_t *)secret; ++ return (void *)ucp->uc_mcontext.mc_eip; ++# endif + # else + # if NV_CPU_X86_64 + // #define REG_RIP REG_INDEX(rip) // seems to be 16 diff --git a/graphics/nvidia-texture-tools/files/patch-src-nvcore-nvcore.h b/graphics/nvidia-texture-tools/files/patch-src-nvcore-nvcore.h new file mode 100644 index 000000000000..b77ddcc0d055 --- /dev/null +++ b/graphics/nvidia-texture-tools/files/patch-src-nvcore-nvcore.h @@ -0,0 +1,21 @@ +--- src/nvcore/nvcore.h.orig 2008-12-01 11:04:27.000000000 +0300 ++++ src/nvcore/nvcore.h 2009-03-06 22:45:11.000000000 +0300 +@@ -38,6 +38,9 @@ + #if defined POSH_OS_LINUX + # define NV_OS_LINUX 1 + # define NV_OS_UNIX 1 ++#elif defined POSH_OS_FREEBSD ++# define NV_OS_FREEBSD 1 ++# define NV_OS_UNIX 1 + #elif defined POSH_OS_CYGWIN32 + # define NV_OS_CYGWIN 1 + #elif defined POSH_OS_MINGW +@@ -158,7 +161,7 @@ + #elif NV_CC_GNUC + # if NV_OS_LINUX + # include "DefsGnucLinux.h" +-# elif NV_OS_DARWIN ++# elif NV_OS_DARWIN || NV_OS_FREEBSD + # include "DefsGnucDarwin.h" + # elif NV_OS_MINGW + # include "DefsGnucWin32.h" diff --git a/graphics/nvidia-texture-tools/files/patch-src-nvcore-poshlib-posh.h b/graphics/nvidia-texture-tools/files/patch-src-nvcore-poshlib-posh.h new file mode 100644 index 000000000000..640ebb7f8fdc --- /dev/null +++ b/graphics/nvidia-texture-tools/files/patch-src-nvcore-poshlib-posh.h @@ -0,0 +1,14 @@ +--- src/nvcore/poshlib/posh.h.orig 2008-12-01 11:04:27.000000000 +0300 ++++ src/nvcore/poshlib/posh.h 2009-03-06 22:36:38.000000000 +0300 +@@ -293,6 +293,11 @@ + # define POSH_OS_STRING "Linux" + #endif + ++#if defined __FreeBSD__ ++# define POSH_OS_FREEBSD 1 ++# define POSH_OS_STRING "FreeBSD" ++#endif ++ + #if defined __CYGWIN32__ + # define POSH_OS_CYGWIN32 1 + # define POSH_OS_STRING "Cygwin" diff --git a/graphics/nvidia-texture-tools/files/patch-src-nvmath-nvmath.h b/graphics/nvidia-texture-tools/files/patch-src-nvmath-nvmath.h new file mode 100644 index 000000000000..6230ee1a5c8a --- /dev/null +++ b/graphics/nvidia-texture-tools/files/patch-src-nvmath-nvmath.h @@ -0,0 +1,20 @@ +--- src/nvmath/nvmath.h.orig 2008-12-01 11:04:28.000000000 +0300 ++++ src/nvmath/nvmath.h 2009-03-06 22:38:28.000000000 +0300 +@@ -97,7 +97,7 @@ + { + #if NV_OS_WIN32 + return _finite(f) != 0; +-#elif NV_OS_DARWIN ++#elif NV_OS_DARWIN || NV_OS_FREEBSD + return isfinite(f); + #elif NV_OS_LINUX + return finitef(f); +@@ -112,7 +112,7 @@ + { + #if NV_OS_WIN32 + return _isnan(f) != 0; +-#elif NV_OS_DARWIN ++#elif NV_OS_DARWIN || NV_OS_FREEBSD + return isnan(f); + #elif NV_OS_LINUX + return isnanf(f); diff --git a/graphics/nvidia-texture-tools/files/patch-src-nvtt-CMakeLists.txt b/graphics/nvidia-texture-tools/files/patch-src-nvtt-CMakeLists.txt new file mode 100644 index 000000000000..4b78d2b32e0c --- /dev/null +++ b/graphics/nvidia-texture-tools/files/patch-src-nvtt-CMakeLists.txt @@ -0,0 +1,15 @@ +--- src/nvtt/CMakeLists.txt.orig 2008-12-01 11:04:29.000000000 +0300 ++++ src/nvtt/CMakeLists.txt 2009-03-06 22:58:45.000000000 +0300 +@@ -105,9 +105,11 @@ + QT4_WRAP_CPP(MOCS tools/configdialog.h) + #QT4_ADD_RESOURCES(RCCS tools/configdialog.rc) + +- ADD_EXECUTABLE(nvcompressui MACOSX_BUNDLE ${SRCS} ${UICS} ${MOCS}) ++ ADD_EXECUTABLE(nvcompressui ${SRCS} ${UICS} ${MOCS}) + TARGET_LINK_LIBRARIES(nvcompressui ${LIBS}) + ++ INSTALL(TARGETS nvcompressui DESTINATION bin) ++ + ENDIF(QT4_FOUND AND NOT MSVC) + + |