Changeset View
Changeset View
Standalone View
Standalone View
science/lammps/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= lammps | PORTNAME= lammps | ||||
PORTVERSION= ${GH_TAGNAME:C/(stable|patch)_([0-9]{1,2})([A-Z][a-z][a-z])([0-9]{4})/\4.\3.\2/S/Jan/01/S/Feb/02/S/Mar/03/S/Apr/04/S/May/05/S/Jun/06/S/Jul/07/S/Aug/08/S/Sep/09/S/Oct/10/S/Nov/11/S/Dec/12/} | PORTVERSION= ${GH_TAGNAME:C/(stable|patch)_([0-9]{1,2})([A-Z][a-z][a-z])([0-9]{4})/\4.\3.\2/S/Jan/01/S/Feb/02/S/Mar/03/S/Apr/04/S/May/05/S/Jun/06/S/Jul/07/S/Aug/08/S/Sep/09/S/Oct/10/S/Nov/11/S/Dec/12/} | ||||
PORTREVISION= 1 | PORTREVISION= 2 | ||||
CATEGORIES= science | CATEGORIES= science | ||||
MAINTAINER= yuri@FreeBSD.org | MAINTAINER= yuri@FreeBSD.org | ||||
COMMENT= Classical molecular dynamics code with a focus on materials modeling | COMMENT= Classical molecular dynamics code with a focus on materials modeling | ||||
LICENSE= GPLv2 | LICENSE= GPLv2 | ||||
LICENSE_FILE= ${WRKSRC}/LICENSE | LICENSE_FILE= ${WRKSRC}/LICENSE | ||||
▲ Show 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | |||||
PORTSCOUT= ignore # due to a special version tagging scheme that this project uses portscout fails to find new versions, watching their GitHub release page instead | PORTSCOUT= ignore # due to a special version tagging scheme that this project uses portscout fails to find new versions, watching their GitHub release page instead | ||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
.if ${PORT_OPTIONS:MOPENMP} | .if ${PORT_OPTIONS:MOPENMP} | ||||
USES+= localbase | USES+= localbase | ||||
CMAKE_ARGS+= -DBUILD_OMP:BOOL=true | CMAKE_ARGS+= -DBUILD_OMP:BOOL=true | ||||
LIB_DEPENDS+= libomp.so:devel/openmp | |||||
.endif | .endif | ||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} 's|SHELL = /bin/bash|SHELL = ${LOCALBASE}/bin/bash|' ${WRKSRC}/src/Makefile | @${REINPLACE_CMD} 's|SHELL = /bin/bash|SHELL = ${LOCALBASE}/bin/bash|' ${WRKSRC}/src/Makefile | ||||
post-patch-FFMPEG-off: | post-patch-FFMPEG-off: | ||||
@${REINPLACE_CMD} 's|find_program(FFMPEG_EXECUTABLE|#&|' ${WRKSRC}/cmake/CMakeLists.txt | @${REINPLACE_CMD} 's|find_program(FFMPEG_EXECUTABLE|#&|' ${WRKSRC}/cmake/CMakeLists.txt | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |