ports/devel/apitrace/Makefile
Jan Beich a9bba31981 devel/apitrace: enable RTLD_DEEPBIND after 620968a43a
https://cgit.freebsd.org/src/commit/?id=8a423062d0595

DragonFly still lacks RTLD_DEEPBIND, so use an upstream fix in order
to detect collision and drop on the next update.
2021-10-03 10:30:47 +00:00

50 lines
1.3 KiB
Makefile

PORTNAME= apitrace
DISTVERSION= 9.0
PORTREVISION= 2
CATEGORIES= devel
PATCH_SITES= https://github.com/a17r/${GH_PROJECT}/commit/
# use system brotli: https://github.com/apitrace/apitrace/pull/610
PATCHFILES= cd3486343001d6a47.patch:-p1 \
b0f5a220c41af013d.patch:-p1
# detect RTLD_DEEPBIND: https://github.com/apitrace/apitrace/pull/571
PATCHFILES+= 2d31d49eac9bcc010.patch:-p1
MAINTAINER= greg@unrelenting.technology
COMMENT= Tools for tracing OpenGL and other graphics APIs
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libbrotlidec.so:archivers/brotli \
libpng.so:graphics/png
USES= cmake compiler:c++11-lang pkgconfig python:3.5+ shebangfix xorg
USE_GITHUB= yes
USE_XORG= x11
SHEBANG_FILES= scripts/*.py
OPTIONS_DEFINE= DOCS QT5 WAFFLE
OPTIONS_DEFAULT= QT5 WAFFLE
OPTIONS_SUB= yes
WAFFLE_DESC= Use Waffle library to allow retrace on Wayland, headless etc.
QT5_USES= qt:5
QT5_USE= QT=core,gui,network,widgets,buildtools_build,qmake_build
QT5_CMAKE_BOOL= ENABLE_GUI
WAFFLE_LIB_DEPENDS= libwaffle-1.so:graphics/waffle
WAFFLE_CMAKE_BOOL= ENABLE_WAFFLE
post-patch:
${REINPLACE_CMD} -e 's|__linux__|__unix__|' ${WRKSRC}/retrace/glstate_images.cpp
post-install:
${RM} ${STAGEDIR}${DOCSDIR}/LICENSE.txt
post-install-QT5-on:
${INSTALL_DATA} ${FILESDIR}/qapitrace.desktop ${STAGEDIR}${PREFIX}/share/applications
.include <bsd.port.mk>