1
0
mirror of https://git.freebsd.org/ports.git synced 2026-06-02 11:08:52 +00:00

graphics/pgplot: Fix building with Flang

This commit is contained in:
Gleb Popov
2025-11-21 10:55:20 +03:00
parent cd901cfa93
commit 515870affa
+8 -2
View File
@@ -24,8 +24,8 @@ MAKE_JOBS_UNSAFE= yes
MAKE_ENV= SSP_CFLAGS=
SHEBANG_FILES= makehtml maketex
FFLAGS+= -std=legacy
SUFFIXES= flib clib bin
CFLAGS= -Wno-implicit-function-declaration
WRKSRC= ${WRKDIR}/${PORTNAME}
# ld.bfd supports neither -z relro nor -z norelro on armv7
@@ -56,6 +56,12 @@ EXAMPLES= Makefile.demo cpg/cpgdemo.c examples/pgdemo*.f
PORTEXAMPLES= ${EXAMPLES:C|.*/||}
.endif
.include <bsd.port.pre.mk>
.if ${FORTRAN_DEFAULT} == gfortran
FFLAGS+= -std=legacy
.endif
post-patch:
@${REINPLACE_CMD} -e 's|png_ptr->jmpbuf|png_jmpbuf(png_ptr)|' \
${WRKSRC}/drivers/pndriv.c
@@ -102,4 +108,4 @@ check test: build
PGPLOT_DIR="${WRKSRC}" PGPLOT_DEV="/xwin" ${WRKSRC}/${DEMO}
.endif
.include <bsd.port.mk>
.include <bsd.port.post.mk>