1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/science/cgnslib/Makefile
Kevin Bowling da3162c7c9 graphics/mesa-libs: Bump reverse deps for libglvnd
Per discussion with bapt on helping pkg handle the changing of these
deps and avoiding impossible upgrade senarios.

PR:		246767
Reviewed by:	manu, bapt
Approved by:	x11
Differential Revision:	https://reviews.freebsd.org/D30824
2021-06-22 11:53:08 -07:00

63 lines
1.6 KiB
Makefile

# Created by: thierry@pompo.net
PORTNAME= cgnslib
PORTVERSION= 4.1.2
DISTVERSIONPREFIX= v
PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= science
MAINTAINER= thierry@FreeBSD.org
COMMENT= CFD General Notation System library code
LICENSE= AS-IS
LICENSE_NAME= AS-IS
LICENSE_FILE= ${WRKSRC}/license.txt
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
USES= cmake
USE_GITHUB= yes
GH_ACCOUNT= CGNS
GH_PROJECT= CGNS
USE_LDCONFIG= yes
MAKE_JOBS_UNSAFE= yes
TEST_TARGET= test
FFLAGS+= -std=legacy
OPTIONS_DEFINE= FORTRAN HDF5 TESTS TOOLS
OPTIONS_DEFAULT= FORTRAN HDF5 TESTS TOOLS
OPTIONS_SUB= yes
HDF5_DESC= Enable HDF5 interface
TESTS_DESC= Enable test programs
TOOLS_DESC= Build the CGNSTools package
FORTRAN_USES= fortran
FORTRAN_CMAKE_BOOL= CGNS_ENABLE_FORTRAN
HDF5_LIB_DEPENDS= libhdf5.so:science/hdf5 libsz.so:science/szip
HDF5_CMAKE_BOOL= CGNS_ENABLE_HDF5
HDF5_CMAKE_ON= -DHDF5_INCLUDE_PATH:PATH="${LOCALBASE}/include"
TESTS_CMAKE_BOOL= CGNS_ENABLE_TESTS
TOOLS_USES= gl localbase tk xorg
TOOLS_LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2
TOOLS_USE= GL=egl,gl,glu \
XORG=ice,sm,x11,xau,xcomposite,xcursor,xdamage,xdmcp,xext,xfixes,xft,xi,xinerama,xkbfile,xmu,xpm,xrandr,xrender,xres,xscrnsaver,xt,xtst,xv,xxf86vm
TOOLS_CMAKE_BOOL= CGNS_BUILD_CGNSTOOLS
TOOLS_CMAKE_ON= -DTCL_INCLUDE_PATH:STRING="${TCL_INCLUDEDIR}" \
-DTK_INCLUDE_PATH:STRING="${TK_INCLUDEDIR}"
post-install:
${RLN} ${STAGEDIR}${PREFIX}/lib/libcgns.so.${PORTVERSION:R} \
${STAGEDIR}${PREFIX}/lib/libcgns.so.${PORTVERSION:R:R}
do-test:
cd ${TEST_WRKSRC} && \
${SETENV} ${TEST_ENV} ctest -C ${CMAKE_BUILD_TYPE}
.include <bsd.port.mk>