graphics/quat-gui: Fix build with llvm15

- Pet portclippy
- Adopt port
This commit is contained in:
Muhammad Moinur Rahman 2023-06-04 14:43:16 +02:00
parent 6320c4cdd1
commit fce113a37e

View file

@ -5,7 +5,7 @@ CATEGORIES= graphics
MASTER_SITES= https://www.physcip.uni-stuttgart.de/pages/~phy11733/download/
PKGNAMESUFFIX= -gui
MAINTAINER= ports@FreeBSD.org
MAINTAINER= bofh@FreeBSD.org
COMMENT= Three-dimensional fractal creator (X11 GUI)
WWW= https://www.physcip.uni-stuttgart.de/pages/~phy11733/index_e.html
@ -13,27 +13,30 @@ LICENSE= GPLv2+
LIB_DEPENDS= libfltk.so:x11-toolkits/fltk
OPTIONS_DEFINE= OPTIMIZED_CFLAGS DOCS
USES= gl xorg
USE_XORG= xext
USES= gl localbase:ldflags xorg
USE_GL= gl glut
GNU_CONFIGURE= yes
CONFIGURE_ENV= FLUID="${LOCALBASE}/bin/fluid"
CONFIGURE_ARGS= --datadir=${PREFIX}/share/doc
USE_XORG= xext
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --datadir=${PREFIX}/share/doc
CONFIGURE_ENV= FLUID="${LOCALBASE}/bin/fluid"
DOCSDIR= ${PREFIX}/share/doc/${PKGBASE}
PORTDOCS= *
PLIST_FILES= bin/quat
DESKTOP_ENTRIES="Quat" "3D Fractal Generator" "" "${PORTNAME}" "" ""
PLIST_FILES= bin/quat
PORTDOCS= *
OPTIONS_DEFINE= OPTIMIZED_CFLAGS DOCS
OPTIMIZED_CFLAGS_CFLAGS= -O3 -ffast-math
.include <bsd.port.pre.mk>
.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
CFLAGS+= -Wno-error=int-conversion
.endif
post-patch:
@${REINPLACE_CMD} -E -e \
's,-(march=pentium|O3|ffast-math),,g' \
@ -60,4 +63,4 @@ post-install-DOCS-on:
@(cd ${WRKSRC}/doc && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
.include <bsd.port.mk>
.include <bsd.port.post.mk>