git: bee8c9627536 - main - graphics/ximaging: fix build without libomp
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 12 Jan 2025 21:43:27 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=bee8c96275361369bc2c214db2b910a89084fb72
commit bee8c96275361369bc2c214db2b910a89084fb72
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2025-01-11 14:04:40 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2025-01-12 21:37:10 +0000
graphics/ximaging: fix build without libomp
ld: error: unable to find library -lomp
---
graphics/ximaging/Makefile | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/graphics/ximaging/Makefile b/graphics/ximaging/Makefile
index fda1f56198af..6d1cb5d14c02 100644
--- a/graphics/ximaging/Makefile
+++ b/graphics/ximaging/Makefile
@@ -20,6 +20,10 @@ PLIST_FILES= bin/ximaging \
etc/X11/app-defaults/XImaging \
share/man/man1/ximaging.1.gz
+.if !exists(/usr/include/omp.h)
+USES+= compiler:gcc-c++11-lib
+.endif
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${PREFIX}/share/man/man1