879e75a659
benefit from the improved situation where libgcc_s is only used when absolutely necessary. Suggested by: tijl
54 lines
1.3 KiB
Makefile
54 lines
1.3 KiB
Makefile
# Created by: thierry@pompo.net
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= cgnslib
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 3.4.0
|
|
PORTREVISION= 1
|
|
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
|
|
|
|
TEST_TARGET= test
|
|
|
|
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
|
|
TOOLS_USE= GL=gl,glu XORG=ice,xext,x11,xmu
|
|
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.${DISTVERSION:R} \
|
|
${STAGEDIR}${PREFIX}/lib/libcgns.so.${DISTVERSION:R:R}
|
|
|
|
.include <bsd.port.mk>
|