graphics/ximaging: fix build without libomp

ld: error: unable to find library -lomp
This commit is contained in:
Piotr Kubaj 2025-01-11 15:04:40 +01:00
parent 3b41f83cd3
commit bee8c96275

View file

@ -20,6 +20,10 @@ PLIST_FILES= bin/ximaging \
etc/X11/app-defaults/XImaging \ etc/X11/app-defaults/XImaging \
share/man/man1/ximaging.1.gz share/man/man1/ximaging.1.gz
.if !exists(/usr/include/omp.h)
USES+= compiler:gcc-c++11-lib
.endif
do-install: do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${PREFIX}/share/man/man1 ${MKDIR} ${STAGEDIR}${PREFIX}/share/man/man1