Skip to content

Commit

Permalink
graphics/quat-gui: Fix build with llvm15
Browse files Browse the repository at this point in the history
- Pet portclippy
- Adopt port
  • Loading branch information
5u623l20 committed Jun 4, 2023
1 parent 6320c4c commit fce113a
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions graphics/quat-gui/Makefile
Expand Up @@ -5,35 +5,38 @@ 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

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
USE_XORG= xext

GNU_CONFIGURE= yes
CONFIGURE_ENV= FLUID="${LOCALBASE}/bin/fluid"
CONFIGURE_ARGS= --datadir=${PREFIX}/share/doc

CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV= FLUID="${LOCALBASE}/bin/fluid"

DOCSDIR= ${PREFIX}/share/doc/${PKGBASE}
DESKTOP_ENTRIES="Quat" "3D Fractal Generator" "" "${PORTNAME}" "" ""

PORTDOCS= *
PLIST_FILES= bin/quat
PORTDOCS= *

DESKTOP_ENTRIES="Quat" "3D Fractal Generator" "" "${PORTNAME}" "" ""
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' \
Expand All @@ -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>

0 comments on commit fce113a

Please sign in to comment.