freebsd-ports/science/silo/Makefile
Edwin Groothuis db27e4118d science/silo add NO_LATEST_LINK
- This port is unrelated with x11/silo so I suppose
	  NO_LATEST_LINK is relevant.
	- While here, remove the unnecessary $LOCALBASE includes
	  in CPPFLAGS/LDFLAGS for the configure environment.

PR:		ports/126614
Submitted by:	"Pedro F. Giffuni" <giffunip@tutopia.com>
2008-08-18 06:53:42 +00:00

75 lines
1.6 KiB
Makefile

# New ports collection makefile for: silo
# Date created: 17 jul 2008
# Whom: Pedro F. Giffuni <giffunip@tutopia.com>
#
# $FreeBSD$
#
PORTNAME= silo
PORTVERSION= 4.6.1
CATEGORIES= science
MASTER_SITES= https://wci.llnl.gov/codes/${PORTNAME}/silo-${PORTVERSION}/
MAINTAINER= giffunip@tutopia.com
COMMENT= A mesh and field I/O library and scientific database
LIB_DEPENDS= netcdf.4:${PORTSDIR}/science/netcdf
USE_AUTOTOOLS= libtool:15
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" \
LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS}"
NO_LATEST_LINK= yes
USE_GMAKE= yes
CONFIGURE_ARGS= --enable-shared
USE_LDCONFIG= yes
USE_XLIB= yes
USE_QT_VER= 3
QT_COMPONENTS= moc uic
.ifdef WITH_PYTHON
USE_PYTHON= yes
CONFIGURE_ARGS+= --enable-pythonmodule
PLIST_SUB+= WITH_PYTHON=""
LIBSILO= Silo
.else
PLIST_SUB+= WITH_PYTHON="@comment "
.endif
.ifdef WITH_FORTRAN
USE_FORTRAN= yes
CONFIGURE_ENV+= ${MAKE_ENV}
CONFIGURE_ARGS+= --enable-fortran
.else
CONFIGURE_ARGS+= --disable-fortran
.endif
.ifdef WITH_HDF5
LIB_DEPENDS+= hdf5.0:${PORTSDIR}/science/hdf5
CONFIGURE_ARGS= --with-hdf5=${LOCALBASE}
PLIST_SUB+= WITH_HDF5=""
PLIST_SUB+= WITH_HDF5="@comment "
LIBSILO= libsiloh5
.else
PLIST_SUB+= WITH_HDF5="@comment "
PLIST_SUB+= WITH_NCDF=""
LIBSILO= libsilo
.endif
.ifdef WITH_OPTIMIZATION
CONFIGURE_ARGS+= --enable-optimization
.endif
post-install:
@${RM} ${PREFIX}/lib/libsilo.settings
@${MV} ${PREFIX}/lib/${LIBSILO}.so ${PREFIX}/lib/${LIBSILO}.so.4
@${LN} -sf ${PREFIX}/lib/${LIBSILO}.so.4 ${PREFIX}/lib/${LIBSILO}.so
regression-test: build
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} check
.include <bsd.port.mk>