diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2015-08-21 15:59:53 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2015-08-21 15:59:53 +0000 |
commit | 341e734f5eb52b8dd3f764f65e3be38e3e2da8c3 (patch) | |
tree | 2d0251bbea76aa9ccdc3e118ec4bb767adcb8f38 /graphics/nvidia-texture-tools | |
parent | 403fd1e5fdbcab255c714b927e21956360f00fff (diff) | |
download | ports-341e734f5eb52b8dd3f764f65e3be38e3e2da8c3.tar.gz ports-341e734f5eb52b8dd3f764f65e3be38e3e2da8c3.zip |
Notes
Diffstat (limited to 'graphics/nvidia-texture-tools')
-rw-r--r-- | graphics/nvidia-texture-tools/Makefile | 31 |
1 files changed, 10 insertions, 21 deletions
diff --git a/graphics/nvidia-texture-tools/Makefile b/graphics/nvidia-texture-tools/Makefile index 79268b0fde4e..897d5cd40da0 100644 --- a/graphics/nvidia-texture-tools/Makefile +++ b/graphics/nvidia-texture-tools/Makefile @@ -15,6 +15,10 @@ LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png \ libtiff.so:${PORTSDIR}/graphics/tiff \ libIlmImf.so:${PORTSDIR}/graphics/OpenEXR +BROKEN_ia64= does not build +BROKEN_powerpc= does not build +BROKEN_sparc64= does not build + USES= alias cmake jpeg CMAKE_ARGS= -DNVTT_SHARED=TRUE @@ -28,35 +32,20 @@ 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 -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MCOMPRESSUI} -# *_build stuff is not really needed, but cmake's Qt finder won't work otherwise -USE_QT4= qmake_build moc_build uic_build rcc_build corelib gui opengl -PLIST_SUB+= COMPRESSUI="" -.else -PLIST_SUB+= COMPRESSUI="@comment " -.endif - -.include <bsd.port.options.mk> - -.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64" -BROKEN= does not build -.endif - -post-patch: -.if ${PORT_OPTIONS:MCOMPRESSUI} +post-patch-COMPRESSUI-on: @${REINPLACE_CMD} -e '/FIND_PACKAGE.*Qt4/ s|)$$| REQUIRED&|' \ ${WRKSRC}/src/CMakeLists.txt -.else + +post-patch-COMPRESSUI-off: @${REINPLACE_CMD} -e '/FIND_PACKAGE.*Qt4/ d' \ ${WRKSRC}/src/CMakeLists.txt -.endif -post-install: +post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} .for f in ${PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR} |