diff options
Diffstat (limited to 'graphics/nvidia-texture-tools')
-rw-r--r-- | graphics/nvidia-texture-tools/Makefile | 7 | ||||
-rw-r--r-- | graphics/nvidia-texture-tools/files/patch-src-nvimage-ImageIO.cpp | 11 |
2 files changed, 15 insertions, 3 deletions
diff --git a/graphics/nvidia-texture-tools/Makefile b/graphics/nvidia-texture-tools/Makefile index 5f7e02ca0e4f..33ea6a0bae80 100644 --- a/graphics/nvidia-texture-tools/Makefile +++ b/graphics/nvidia-texture-tools/Makefile @@ -7,6 +7,7 @@ PORTNAME= nvidia-texture-tools DISTVERSION= 2.0.8-1 +PORTREVISION= 1 CATEGORIES= graphics MASTER_SITES= GOOGLE_CODE \ http://mirror.amdmi3.ru/distfiles/ @@ -14,7 +15,7 @@ MASTER_SITES= GOOGLE_CODE \ MAINTAINER= amdmi3@FreeBSD.org COMMENT= Texture Tools with support for DirectX 10 texture formats -LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png \ +LIB_DEPENDS= png15:${PORTSDIR}/graphics/png \ jpeg.11:${PORTSDIR}/graphics/jpeg \ tiff.4:${PORTSDIR}/graphics/tiff \ IlmImf.6:${PORTSDIR}/graphics/OpenEXR @@ -23,8 +24,8 @@ USE_CMAKE= yes CMAKE_ARGS= -DNVTT_SHARED=TRUE MAKE_JOBS_SAFE= yes -CFLAGS+= -fPIC -CXXFLAGS+= -fPIC +CFLAGS+= -fPIC -I${LOCALBASE}/include/libpng15 +CXXFLAGS+= -fPIC -I${LOCALBASE}/include/libpng15 WRKSRC= ${WRKDIR}/${PORTNAME} diff --git a/graphics/nvidia-texture-tools/files/patch-src-nvimage-ImageIO.cpp b/graphics/nvidia-texture-tools/files/patch-src-nvimage-ImageIO.cpp new file mode 100644 index 000000000000..b4e288d62c52 --- /dev/null +++ b/graphics/nvidia-texture-tools/files/patch-src-nvimage-ImageIO.cpp @@ -0,0 +1,11 @@ +--- src/nvimage/ImageIO.cpp.orig 2010-05-14 19:59:28.000000000 +0200 ++++ src/nvimage/ImageIO.cpp 2012-05-06 20:50:40.000000000 +0200 +@@ -599,6 +599,8 @@ + + #if defined(HAVE_PNG) + ++#include "pngpriv.h" ++ + static void user_read_data(png_structp png_ptr, png_bytep data, png_size_t length) + { + nvDebugCheck(png_ptr != NULL); |