freebsd-ports/graphics/nvidia-texture-tools/Makefile
Matthias Andree 1fb0ae7cf9 Security update OpenEXR and ilmbase to 2.2.1.
While here, fix libIlmImfUtil_la_LDFLAGp so that when linking libIlmImfUtil,
the locally built libIlmImf gets precedence over the one in /usr/local,
to permit upgrades in a running system with the older version installed.

This changes the library's SONAME, so bump PORTREVISION of all dependees.

Unfortunately, this looks a bit too intrusive for an MFH to 2017Q4.

Security:	CVE-2017-9110
Security:	CVE-2017-9111
Security:	CVE-2017-9112
Security:	CVE-2017-9113
Security:	CVE-2017-9114
Security:	CVE-2017-9115
Security:	CVE-2017-9116
Security:	803879e9-4195-11e7-9b08-080027ef73ec
2017-12-01 01:58:23 +00:00

57 lines
1.4 KiB
Makefile

# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
PORTNAME= nvidia-texture-tools
PORTVERSION= 2.0.8.1 # needed to not bump PORTEPOCH; remove on next update
PORTREVISION= 9
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_powerpc= does not build
BROKEN_sparc64= does not build
# see src/nvcore/nvcore.h
ONLY_FOR_ARCHS= amd64 i386 powerpc powerpc64
USE_GITHUB= yes
GH_ACCOUNT= castano
GH_TAGNAME= ${PORTVERSION:R}
USES= alias cmake jpeg
CMAKE_ARGS= -DNVTT_SHARED=TRUE
CFLAGS+= -fPIC
CXXFLAGS+= -fPIC
PORTDOCS= NVIDIA_Texture_Tools_README.txt ChangeLog
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 <bsd.port.mk>