# Created by: Dmitry Marakasov # $FreeBSD: head/graphics/nvidia-texture-tools/Makefile 413723 2016-04-21 11:01:59Z amdmi3 $ PORTNAME= nvidia-texture-tools PORTVERSION= 2.0.8.1 # needed to not bump PORTEPOCH; remove on next update DISTVERSION= 2.0.8 PORTREVISION= 7 CATEGORIES= graphics MAINTAINER= amdmi3@FreeBSD.org COMMENT= Texture Tools with support for DirectX 10 texture formats LICENSE= MIT LICENSE_FILE= ${WRKSRC}/NVIDIA_Texture_Tools_LICENSE.txt LIB_DEPENDS= libpng.so:graphics/png \ libtiff.so:graphics/tiff \ libIlmImf.so:graphics/OpenEXR BROKEN_ia64= does not build BROKEN_powerpc= does not build BROKEN_sparc64= does not build USE_GITHUB= yes GH_ACCOUNT= castano USES= alias cmake jpeg CMAKE_ARGS= -DNVTT_SHARED=TRUE CFLAGS+= -fPIC CXXFLAGS+= -fPIC PORTDOCS= NVIDIA_Texture_Tools_README.txt ChangeLog ONLY_FOR_ARCHS= i386 amd64 powerpc powerpc64 # see src/nvcore/nvcore.h OPTIONS_DEFINE= COMPRESSUI DOCS OPTIONS_SUB= yes COMPRESSUI_DESC=Build compressor UI (requires Qt4) COMPRESSUI_USE= QT4=qmake_build,moc_build,uic_build,rcc_build,corelib,gui,opengl post-patch-COMPRESSUI-on: @${REINPLACE_CMD} -e '/FIND_PACKAGE.*Qt4/ s|)$$| REQUIRED&|' \ ${WRKSRC}/src/CMakeLists.txt post-patch-COMPRESSUI-off: @${REINPLACE_CMD} -e '/FIND_PACKAGE.*Qt4/ d' \ ${WRKSRC}/src/CMakeLists.txt post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for f in ${PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR} .endfor .include