Date: Fri, 21 Aug 2015 15:59:54 +0000 (UTC) From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r394969 - head/graphics/nvidia-texture-tools Message-ID: <201508211559.t7LFxscX048174@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Fri Aug 21 15:59:53 2015 New Revision: 394969 URL: https://svnweb.freebsd.org/changeset/ports/394969 Log: - Switch to options helpers Modified: head/graphics/nvidia-texture-tools/Makefile Modified: head/graphics/nvidia-texture-tools/Makefile ============================================================================== --- head/graphics/nvidia-texture-tools/Makefile Fri Aug 21 15:59:43 2015 (r394968) +++ head/graphics/nvidia-texture-tools/Makefile Fri Aug 21 15:59:53 2015 (r394969) @@ -15,6 +15,10 @@ LIB_DEPENDS= libpng.so:${PORTSDIR}/graph 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.tx 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}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508211559.t7LFxscX048174>