2013-03-30 14:29:40 +00:00
|
|
|
# Created by: Thierry Thomas <thierry@pompo.net>
|
2004-11-21 20:56:57 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= petsc
|
2007-05-27 20:36:00 +00:00
|
|
|
DISTVERSION= 2.3.3-p0
|
2013-03-30 14:29:40 +00:00
|
|
|
PORTREVISION= 7
|
2006-07-23 08:38:59 +00:00
|
|
|
PORTEPOCH= 1
|
2004-11-21 20:56:57 +00:00
|
|
|
CATEGORIES= math parallel
|
2005-10-12 19:28:40 +00:00
|
|
|
MASTER_SITES= ftp://ftp.mcs.anl.gov/pub/petsc/release-snapshots/
|
2004-11-21 20:56:57 +00:00
|
|
|
|
2011-07-24 03:05:21 +00:00
|
|
|
MAINTAINER= bf@FreeBSD.org
|
2004-11-21 20:56:57 +00:00
|
|
|
COMMENT= Portable, Extensible Toolkit for Scientific computation
|
|
|
|
|
2007-05-27 20:36:00 +00:00
|
|
|
RUN_DEPENDS= ksh:${PORTSDIR}/shells/pdksh \
|
|
|
|
qsub:${PORTSDIR}/sysutils/torque
|
|
|
|
|
|
|
|
SLAVEDIRS= math/petsc-mpich
|
2006-02-18 09:04:52 +00:00
|
|
|
|
2004-11-21 20:56:57 +00:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
USE_PYTHON= yes
|
|
|
|
CONFIGURE_SCRIPT= config/configure.py
|
|
|
|
CONFIGURE_LOG= configure.log
|
|
|
|
CONFIGURE_ENV= PETSC_ARCH=${TARGET} \
|
|
|
|
PETSC_DIR=${WRKSRC}
|
2006-02-18 09:04:52 +00:00
|
|
|
CONFIGURE_ARGS= --prefix=${PREFIX}/${PFX} --COPTFLAGS="${CFLAGS}" \
|
|
|
|
--CXXOPTFLAGS="${CXXFLAGS}" --FOPTFLAGS="${FFLAGS}" \
|
2010-11-14 22:00:23 +00:00
|
|
|
--with-shared=1 --with-cc=${CC} --with-fc=${FC} \
|
|
|
|
--CPPFLAGS="-I${LOCALBASE}/include" --LDFLAGS=${PTHREAD_LIBS}
|
2006-02-18 09:04:52 +00:00
|
|
|
ALL_TARGET= all
|
2004-11-21 20:56:57 +00:00
|
|
|
MAKEFILE= makefile
|
2005-09-17 21:08:25 +00:00
|
|
|
MAKE_ENV= PETSC_DIR=${WRKSRC}
|
2004-11-21 20:56:57 +00:00
|
|
|
|
2005-09-17 21:08:25 +00:00
|
|
|
SUB_FILES= pkg-message
|
2005-10-10 20:33:56 +00:00
|
|
|
SUB_LIST= PETSC_ARCH=${TARGET} PETSC_DIR=${PREFIX}/${PFX}
|
2004-11-21 20:56:57 +00:00
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_X11)
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
USE_XORG= x11
|
|
|
|
CONFIGURE_ARGS+= --with-x-include=${LOCALBASE}/include \
|
|
|
|
--with-x-lib=${LOCALBASE}/lib/libX11.so
|
2004-11-21 20:56:57 +00:00
|
|
|
.endif
|
|
|
|
|
2007-07-14 22:22:17 +00:00
|
|
|
USE_FORTRAN= yes
|
2007-01-11 02:11:19 +00:00
|
|
|
FFLAGS+= -O2
|
2006-02-18 09:04:52 +00:00
|
|
|
PFX= ${PORTNAME}
|
2004-11-21 20:56:57 +00:00
|
|
|
TARGET= ${OPSYS:L}
|
|
|
|
PLIST_SUB= PFX=${PFX} TARGET=${TARGET}
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_UMFPACK)
|
2013-03-30 14:29:40 +00:00
|
|
|
UMFPACK_LIBS= umfpack.so,cholmod.so,colamd.so,amd.so,suitesparseconfig.so
|
2012-06-15 05:30:33 +00:00
|
|
|
L=${LOCALBASE}/lib/lib
|
2013-03-30 14:29:40 +00:00
|
|
|
LIB_DEPENDS+= umfpack:${PORTSDIR}/math/suitesparse
|
2007-01-11 02:11:19 +00:00
|
|
|
CONFIGURE_ARGS+= --with-umfpack-include="${LOCALBASE}/include/suitesparse" \
|
2012-06-15 05:30:33 +00:00
|
|
|
--with-umfpack-lib="[${UMFPACK_LIBS:C/^/${L}/:C/,/, ${L}/g}]"
|
2004-11-21 20:56:57 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
PORTDOCS= *
|
2013-05-11 17:58:55 +00:00
|
|
|
#USE_TEX= latex:build
|
2004-11-21 20:56:57 +00:00
|
|
|
#BUILD_DEPENDS+= c2html:${PORTSDIR}/textproc/c2html \
|
|
|
|
# doc2lt:${PORTSDIR}/textproc/sowing
|
|
|
|
.endif
|
|
|
|
|
|
|
|
LIBSCALAPACK= ${LOCALBASE}/lib/libscalapack.a
|
|
|
|
LIBBLACS= ${LOCALBASE}/lib/libblacs.a
|
2009-11-28 10:44:56 +00:00
|
|
|
MPIDIR= ${LOCALBASE}
|
2004-11-21 20:56:57 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-11-23 22:07:19 +00:00
|
|
|
.if exists(${LOCALBASE}/mpi/openmpi/bin/mpirun)
|
|
|
|
WITH_OPENMPI= yes
|
|
|
|
MPIDIR= ${LOCALBASE}/mpi/openmpi
|
|
|
|
.endif
|
|
|
|
|
2006-02-26 09:01:06 +00:00
|
|
|
.if ${ARCH} == "amd64"
|
|
|
|
WITHOUT_SUPERLU= yes
|
|
|
|
.endif
|
|
|
|
|
2006-07-23 08:38:59 +00:00
|
|
|
.if exists(${MPIDIR}/bin/mpicc) && !defined(WITHOUT_MPI)
|
2004-11-21 20:56:57 +00:00
|
|
|
WITH_MPI= yes
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_MPI)
|
2009-11-28 10:44:56 +00:00
|
|
|
. if exists(${LOCALBASE}/bin/lamboot)
|
2006-11-23 22:07:19 +00:00
|
|
|
BROKEN= Cannot build with MPI when lam-7 is installed - set WITHOUT_MPI or deinstall net/lam
|
2006-02-18 09:04:52 +00:00
|
|
|
. endif
|
2006-11-23 22:07:19 +00:00
|
|
|
.if defined(WITH_OPENMPI)
|
|
|
|
MPIDIR= ${LOCALBASE}/mpi/openmpi
|
|
|
|
BUILD_DEPENDS+= ${MPIDIR}/lib/libmpi.so:${PORTSDIR}/net/openmpi
|
|
|
|
RUN_DEPENDS+= ${MPIDIR}/lib/libmpi.so:${PORTSDIR}/net/openmpi
|
|
|
|
PKGNAMESUFFIX+= -openmpi
|
|
|
|
MAKE_ENV+= PATH=${MPIDIR}/bin:${PATH}
|
|
|
|
# math/blocksolve95 does not pass regression test when compiled with OpenMPI.
|
|
|
|
WITHOUT_BS95= yes
|
|
|
|
WITHOUT_SPOOLES= yes
|
|
|
|
WITHOUT_PARMETIS= yes
|
|
|
|
CONFIGURE_ARGS+= --with-cc=${MPIDIR}/bin/mpicc --with-fc=${MPIDIR}/bin/mpif77
|
|
|
|
.else
|
2009-11-28 10:44:56 +00:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/bin/mpicc:${PORTSDIR}/net/mpich2
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/bin/mpirun:${PORTSDIR}/net/mpich2
|
2004-11-21 20:56:57 +00:00
|
|
|
PKGNAMESUFFIX+= -mpich
|
2007-03-07 01:45:40 +00:00
|
|
|
WITHOUT_SPOOLES= yes
|
2006-11-23 22:07:19 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --with-mpi-dir=${MPIDIR}
|
2004-11-21 20:56:57 +00:00
|
|
|
CONFLICTS= petsc-2*
|
2006-02-18 09:04:52 +00:00
|
|
|
PLIST_SUB+= MPIUNI="@comment "
|
2004-11-21 20:56:57 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-mpi=0
|
|
|
|
CONFLICTS= petsc-mpich-2*
|
|
|
|
WITHOUT_BS95= yes
|
|
|
|
WITHOUT_PARMETIS= yes
|
|
|
|
WITHOUT_SPOOLES= yes
|
2006-02-18 09:04:52 +00:00
|
|
|
WITHOUT_SUPERLU= yes
|
|
|
|
PLIST_SUB+= MPIUNI=""
|
|
|
|
.endif
|
|
|
|
|
2011-11-22 11:14:10 +00:00
|
|
|
.if exists(${LOCALBASE}/lib/libatlas.so) && !defined(WITH_BLAS)
|
2006-06-21 19:54:23 +00:00
|
|
|
WITH_ATLAS= yes
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_ATLAS)
|
2013-03-30 14:29:40 +00:00
|
|
|
LIB_DEPENDS+= atlas:${PORTSDIR}/math/atlas
|
2011-11-22 11:14:10 +00:00
|
|
|
LIBBLASLAPACK= -L${LOCALBASE}/lib -lalapack -lcblas -lf77blas
|
|
|
|
CONFIGURE_ARGS+= --with-blas-lapack-lib="${LIBBLASLAPACK}"
|
2006-06-21 19:54:23 +00:00
|
|
|
.else
|
2013-03-30 14:29:40 +00:00
|
|
|
LIB_DEPENDS+= lapack:${PORTSDIR}/math/lapack
|
2011-11-22 11:14:10 +00:00
|
|
|
LIBBLASLAPACK= -L${LOCALBASE}/lib -llapack -lblas
|
|
|
|
CONFIGURE_ARGS+= --with-blas-lapack-lib="${LIBBLASLAPACK}"
|
2006-06-21 19:54:23 +00:00
|
|
|
.endif
|
|
|
|
|
2006-02-18 09:04:52 +00:00
|
|
|
.if !defined(WITHOUT_SUPERLU) && !defined(WITHOUT_BLASLAPACK)
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libsuperlu.a:${PORTSDIR}/math/superlu
|
|
|
|
CONFIGURE_ARGS+= --with-superlu-include=${LOCALBASE}/include/superlu \
|
|
|
|
--with-superlu-lib=${LOCALBASE}/lib/libsuperlu.a
|
2004-11-21 20:56:57 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITHOUT_BS95)
|
|
|
|
CONFIGURE_ARGS+= --with-blocksolve95=0
|
|
|
|
.else
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libBS95.a:${PORTSDIR}/math/blocksolve95
|
2009-11-28 10:44:56 +00:00
|
|
|
CONFIGURE_ARGS+= --with-blocksolve95-include=${LOCALBASE}/include \
|
2005-09-17 21:08:25 +00:00
|
|
|
--with-blocksolve95-lib=${LOCALBASE}/lib/libBS95.a
|
2004-11-21 20:56:57 +00:00
|
|
|
.endif
|
|
|
|
|
2007-05-27 20:36:00 +00:00
|
|
|
.if defined(WITHOUT_PARMETIS) || exists(${LOCALBASE}/lib/libmetis.so)
|
|
|
|
# parmetis cannot be built with suitesparse
|
2004-11-21 20:56:57 +00:00
|
|
|
CONFIGURE_ARGS+= --with-parmetis=0
|
|
|
|
.else
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/parmetis/libparmetis.a:${PORTSDIR}/math/parmetis
|
|
|
|
CONFIGURE_ARGS+= --with-parmetis=1 \
|
|
|
|
--with-parmetis-include=${LOCALBASE}/include/parmetis \
|
2006-02-18 09:04:52 +00:00
|
|
|
--with-parmetis-lib=[${LOCALBASE}/lib/parmetis/libparmetis.a,${LOCALBASE}/lib/parmetis/libmetis.a]
|
2007-05-27 20:36:00 +00:00
|
|
|
CONFLICTS+= metis-4*
|
2004-11-21 20:56:57 +00:00
|
|
|
.endif
|
|
|
|
|
2006-02-18 09:04:52 +00:00
|
|
|
.if exists(${LIBBLACS})
|
|
|
|
WITH_BLACS= yes
|
|
|
|
.endif
|
2006-07-24 08:39:17 +00:00
|
|
|
.if defined(WITH_BLACS) && defined(WITH_MPI)
|
2013-03-30 14:29:40 +00:00
|
|
|
LIB_DEPENDS+= blacs:${PORTSDIR}/math/blacs
|
2006-07-24 08:39:17 +00:00
|
|
|
CONFIGURE_ARGS+= --with_blacs=1 \
|
2006-02-18 09:04:52 +00:00
|
|
|
--with-blacs-include=${LOCALBASE}/include \
|
2006-07-24 08:39:17 +00:00
|
|
|
--with-blacs-lib=[${LOCALBASE}/lib/libblacsc.a,${LOCALBASE}/lib/libblacsf77.a,${LOCALBASE}/lib/libblacs.a]
|
|
|
|
. if exists(${LIBSCALAPACK}) && defined(WITH_MPI)
|
2006-02-18 09:04:52 +00:00
|
|
|
WITH_SCALAPACK= yes
|
|
|
|
. endif
|
|
|
|
. if defined(WITH_SCALAPACK)
|
2013-03-30 14:29:40 +00:00
|
|
|
LIB_DEPENDS+= scalapack:${PORTSDIR}/math/scalapack
|
2006-07-24 08:39:17 +00:00
|
|
|
CONFIGURE_ARGS+= --with-scalapack=1 \
|
|
|
|
--with-scalapack-dir=${LOCALBASE}
|
2006-02-18 09:04:52 +00:00
|
|
|
. endif
|
|
|
|
.endif
|
2004-11-21 20:56:57 +00:00
|
|
|
|
|
|
|
#.if exists(${LOCALBASE}/bin/lgrind)
|
|
|
|
#WITH_LGRIND= yes
|
|
|
|
#.endif
|
|
|
|
#.if defined(WITH_LGRIND)
|
|
|
|
#BUILD_DEPENDS+= lgrind:${PORTSDIR}/print/lgrind
|
|
|
|
#RUN_DEPENDS+= lgrind:${PORTSDIR}/print/lgrind
|
|
|
|
#.endif
|
|
|
|
|
2006-02-18 09:04:52 +00:00
|
|
|
.if exists(${LOCALBASE}/lib/libnetcdf.so)
|
|
|
|
WITH_NETCDF= yes
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_NETCDF)
|
2007-05-27 20:36:00 +00:00
|
|
|
LIB_DEPENDS+= netcdf.4:${PORTSDIR}/science/netcdf
|
2006-02-18 09:04:52 +00:00
|
|
|
CONFIGURE_ENV+= PNETCDF_INCLUDE=${LOCALBASE}/include \
|
|
|
|
PNETCDF_LIB=${LOCALBASE}/lib
|
|
|
|
.endif
|
2004-11-21 20:56:57 +00:00
|
|
|
|
|
|
|
.if exists(${LOCALBASE}/bin/svn)
|
|
|
|
WITH_SVN= yes
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_SVN)
|
|
|
|
BUILD_DEPENDS+= svn:${PORTSDIR}/devel/subversion
|
|
|
|
RUN_DEPENDS+= svn:${PORTSDIR}/devel/subversion
|
|
|
|
.endif
|
|
|
|
|
|
|
|
#.if exists(${LOCALBASE}/bin/valgrind)
|
|
|
|
#WITH_VALGRIND= yes
|
|
|
|
#.endif
|
|
|
|
#.if defined(WITH_VALGRIND)
|
|
|
|
#BUILD_DEPENDS+= valgrind:${PORTSDIR}/devel/valgrind
|
|
|
|
#RUN_DEPENDS+= valgrind:${PORTSDIR}/devel/valgrind
|
|
|
|
#.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_SPOOLES)
|
|
|
|
. if exists(${LOCALBASE}/lib/libspooles.a) \
|
|
|
|
&& !exists(${LOCALBASE}/include/spooles/MPI/spoolesMPI.h)
|
2006-02-18 09:04:52 +00:00
|
|
|
BROKEN= Please deinstall spooles and reinstall spooles-mpich
|
2004-11-21 20:56:57 +00:00
|
|
|
. else
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libspooles.a:${PORTSDIR}/math/spooles-mpich
|
|
|
|
. endif
|
|
|
|
CONFIGURE_ARGS+= --with-spooles-include=${LOCALBASE}/include/spooles \
|
2005-09-17 21:08:25 +00:00
|
|
|
--with-spooles-lib=[${LOCALBASE}/lib/libspooles.a,${LIBDIR}/libm.a]
|
2004-11-21 20:56:57 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-everything::
|
|
|
|
@${ECHO_MSG}
|
|
|
|
.if !defined (WITH_MPI)
|
2006-11-23 22:07:19 +00:00
|
|
|
@${ECHO_MSG} "Define WITH_MPI to use MPI."
|
2006-02-18 09:04:52 +00:00
|
|
|
@${ECHO_MSG} "Note: this is not compatible with Python bindings!"
|
|
|
|
.elif !defined (WITHOUT_MPI)
|
2006-11-23 22:07:19 +00:00
|
|
|
@${ECHO_MSG} "Define WITHOUT_MPI to not use MPI."
|
2004-11-21 20:56:57 +00:00
|
|
|
.endif
|
|
|
|
.if !defined (WITH_SVN)
|
|
|
|
@${ECHO_MSG} "Define WITH_SVN to use subversion."
|
|
|
|
.endif
|
|
|
|
.if !defined (WITHOUT_X11)
|
|
|
|
@${ECHO_MSG} "Define WITHOUT_X11 to remove X11 support."
|
|
|
|
.endif
|
2006-06-21 19:54:23 +00:00
|
|
|
.if !defined (WITH_ATLAS)
|
|
|
|
@${ECHO_MSG} "Define WITH_ATLAS to replace Blas / Lapack support by Atlas."
|
2004-11-21 20:56:57 +00:00
|
|
|
.endif
|
|
|
|
.if !defined (WITHOUT_BS95)
|
|
|
|
@${ECHO_MSG} "Define WITHOUT_BS95 to remove BlockSolve95 support."
|
|
|
|
.endif
|
|
|
|
.if !defined (WITHOUT_PARMETIS)
|
|
|
|
@${ECHO_MSG} "Define WITHOUT_PARMETIS to remove ParMETIS support."
|
|
|
|
.endif
|
|
|
|
.if !defined (WITHOUT_SPOOLES)
|
|
|
|
@${ECHO_MSG} "Define WITHOUT_SPOOLES to remove SPOOLES support."
|
|
|
|
.endif
|
2006-02-18 09:04:52 +00:00
|
|
|
#.if !defined (WITHOUT_SUPERLU)
|
|
|
|
# @${ECHO_MSG} "Define WITHOUT_SUPERLU to remove SuperLU support."
|
|
|
|
#.endif
|
2004-11-21 20:56:57 +00:00
|
|
|
.if !defined (WITHOUT_UMFPACK)
|
|
|
|
@${ECHO_MSG} "Define WITHOUT_UMFPACK to remove UMFPACK support."
|
|
|
|
.endif
|
|
|
|
@${ECHO_MSG}
|
|
|
|
|
|
|
|
pre-configure:
|
2005-09-17 21:08:25 +00:00
|
|
|
@${RM} ${WRKSRC}/bmake/common/rules.shared.basic.orig
|
2007-05-27 20:36:00 +00:00
|
|
|
${REINPLACE_CMD} -e "s|AMD/Include|include/AMD|" \
|
2004-12-06 13:24:16 +00:00
|
|
|
-e "s|AMD/Lib|${LOCALBASE}/lib|" \
|
2005-09-17 21:08:25 +00:00
|
|
|
${WRKSRC}/python/PETSc/packages/UMFPACK.py
|
2007-05-27 20:36:00 +00:00
|
|
|
${REINPLACE_CMD} -e "s|/bin/ksh|${LOCALBASE}/bin/ksh|" \
|
2006-02-18 09:04:52 +00:00
|
|
|
${WRKSRC}/bin/popup
|
|
|
|
@${RM} ${WRKSRC}/bin/popup.bak
|
2010-11-14 22:00:23 +00:00
|
|
|
.if defined (WITH_MPI)
|
|
|
|
. for ps in ml.py MPE.py
|
|
|
|
${REINPLACE_CMD} -e "s|-lpmpich|-lmpl|" \
|
|
|
|
${WRKSRC}/python/PETSc/packages/${ps}
|
|
|
|
. endfor
|
|
|
|
${REINPLACE_CMD} -e "s|libpmpich|libmpl|" \
|
|
|
|
${WRKSRC}/python/BuildSystem/config/packages/MPI.py
|
|
|
|
.endif
|
2004-11-21 20:56:57 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${PREFIX}/${PFX}/bin
|
|
|
|
${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${PREFIX}/${PFX}/bin
|
|
|
|
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${PREFIX}/${PFX}/bmake
|
|
|
|
${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${PREFIX}/${PFX}/bmake
|
|
|
|
.if !defined(NOPORTDOCS)
|
2007-05-27 20:36:00 +00:00
|
|
|
(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
|
2004-11-21 20:56:57 +00:00
|
|
|
${MAKEFILE} ${MAKE_ARGS} install_docs)
|
|
|
|
.endif
|
2005-09-17 21:08:25 +00:00
|
|
|
@${ECHO_MSG}
|
2004-11-21 20:56:57 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2005-09-17 21:08:25 +00:00
|
|
|
@${ECHO_MSG}
|
2004-11-21 20:56:57 +00:00
|
|
|
|
|
|
|
.if defined(MAINTAINER_MODE)
|
2006-07-23 08:38:59 +00:00
|
|
|
regression-test:
|
2006-11-23 22:07:19 +00:00
|
|
|
. if defined (WITH_MPI) && !defined(WITH_OPENMPI)
|
2006-07-23 08:38:59 +00:00
|
|
|
. if !exists(${HOME}/.mpd.conf)
|
|
|
|
@${ECHO_CMD} "MPD_SECRETWORD=change_on_install" > ${HOME}/.mpd.conf
|
|
|
|
${CHMOD} go-r ${HOME}/.mpd.conf
|
|
|
|
@${ECHO_MSG} "${HOME}/.mpd.conf has been generated - please change the secret word!"
|
|
|
|
. endif
|
2009-11-28 10:44:56 +00:00
|
|
|
${LOCALBASE}/bin/mpd &
|
2006-07-23 08:38:59 +00:00
|
|
|
. endif
|
2007-05-27 20:36:00 +00:00
|
|
|
(cd ${BUILD_WRKSRC}; \
|
2004-11-21 20:56:57 +00:00
|
|
|
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test)
|
2006-11-23 22:07:19 +00:00
|
|
|
. if defined (WITH_MPI) && !defined(WITH_OPENMPI)
|
2009-11-28 10:44:56 +00:00
|
|
|
${LOCALBASE}/bin/mpdallexit
|
2006-07-23 08:38:59 +00:00
|
|
|
. endif
|
2004-11-21 20:56:57 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|