Skip to content

Commit

Permalink
math/gri: Fix build with llvm16
Browse files Browse the repository at this point in the history
- Pet portclippy
- Utilize USES=localbase
- Utilize OPTIONSNG whiere possible

Sponsored by:	The FreeBSD Foundation
  • Loading branch information
5u623l20 committed Jul 20, 2023
1 parent 0c6028e commit 0f960bc
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions math/gri/Makefile
Expand Up @@ -4,25 +4,25 @@ PORTREVISION= 13
CATEGORIES= math
MASTER_SITES= SF

LICENSE= GPLv2

MAINTAINER= ports@FreeBSD.org
COMMENT= Extensible plotting language for producing scientific graphs
WWW= http://gri.sourceforge.net/

LICENSE= GPLv2

LIB_DEPENDS= libnetcdf.so:science/netcdf

USES= cpe gmake readline shebangfix makeinfo tex
USES= cpe gmake localbase:ldflags readline shebangfix makeinfo tex
CPE_VENDOR= gri_project
USE_CXXSTD= c++14
USE_TEX= formats:build dvipsk:build

SHEBANG_FILES= doc/examples/FEM.pl src/gri_merge src/gri_unpage

GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-FreeBSD
CPE_VENDOR= gri_project

CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib

INFO= gri
USE_TEX= formats:build dvipsk:build
PORTDOCS= *
PORTEXAMPLES= *

Expand All @@ -49,25 +49,24 @@ post-build:
(cd ${WRKSRC}/doc && makeinfo gri.texi)
.endif

post-install:
.if ${PORT_OPTIONS:MDOCS}
post-install-DOCS-on:
(cd ${WRKSRC}/doc && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} \
${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
.else

post-install-DOCS-off:
${INSTALL_MAN} ${WRKSRC}/doc/gri-manpage.1 \
${STAGEDIR}${MANPREFIX}/man/man1/gri.1
${INSTALL_MAN} ${WRKSRC}/doc/gri_merge.1-skel \
${STAGEDIR}${MANPREFIX}/man/man1/gri_merge.1
${INSTALL_MAN} ${WRKSRC}/doc/gri_unpage.1-skel \
${STAGEDIR}${MANPREFIX}/man/man1/gri_unpage.1
${INSTALL_DATA} ${WRKSRC}/doc/gri.info* ${STAGEDIR}${PREFIX}/${INFO_PATH}
.endif
.if ${PORT_OPTIONS:MEXAMPLES}

post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/doc/examples && ${INSTALL_DATA} model* *.dat *.gri e*.ps \
${STAGEDIR}${EXAMPLESDIR})
(cd ${WRKSRC}/doc/examples \
&& ${INSTALL_SCRIPT} FEM.pl ${STAGEDIR}${EXAMPLESDIR})
.endif

.include <bsd.port.mk>

0 comments on commit 0f960bc

Please sign in to comment.