diff options
-rw-r--r-- | LEGAL | 1 | ||||
-rw-r--r-- | net/charm/Makefile | 21 |
2 files changed, 9 insertions, 13 deletions
@@ -239,3 +239,4 @@ snes9x-* emulators/snes9x-gtk Commercial users must seek permission from copyri rainloop-1.*.zip mail/rainloop Redistribution in any form is prohibited lha-114i.tar.gz archivers/lha Binary only redistribution is prohibited. Non-network redistribution such as CDROM requires prior notification to author. Commercial use whose main purpose is to provide the functions of this program is prohibited. atom-*.tgz science/atom Redistribution in any form is prohibited +charm-uiuc* net/charm No commercial use: commercial use requires a commercial license diff --git a/net/charm/Makefile b/net/charm/Makefile index 79ed87883c51..90938b981c3d 100644 --- a/net/charm/Makefile +++ b/net/charm/Makefile @@ -20,13 +20,13 @@ ONLY_FOR_ARCHS_REASON= Not clear if it can be built on other architectures FETCH_DEPENDS= git:devel/git BUILD_DEPENDS= bash:shells/bash +RESTRICTED= No commercial use: commercial use requires a commercial license + USES= fortran gmake localbase:ldflags shebangfix tar SHEBANG_GLOB= *.sh SHEBANG_FILES= src/scripts/* USE_LDCONFIG= yes -GIT_URL= https://charm.cs.illinois.edu/gerrit/charm.git - ARCH_STR= linux${ARCH:S/amd64/64/:S/i386/32/} INSTALL_WRKSRC= ${WRKSRC}/${VERSION}-${ARCH_STR}-gfortran-clang/tmp @@ -49,20 +49,15 @@ MPI_VARS= VERSION=mpi MPI_LDFLAGS= -lmpich MPI_LIB_DEPENDS= libmpich.so:net/mpich2 -local-makesum: # Workaround: the generic 'make makesum' is broken when custom do-fetch is defined: it calls ${SCRIPTSDIR}/do-fetch.sh. - @${MAKE} distclean fetch makesum +.include <bsd.port.pre.mk> +.if !exists(${DISTDIR}/NAMD_2.12_Source.tar.gz) +IGNORE= please download the release tarball of the version ${DISTVERSION} (${DISTFILES}) from https://www.ks.uiuc.edu/Development/Download/download.cgi?PackageName=NAMD, put it into ${DISTDIR}, and run 'make' again +.else do-fetch: - @if ! [ -f "${DISTDIR}/NAMD_2.12_Source.tar.gz" ]; then \ - ${ECHO} "(!!)"; \ - ${ECHO} "(!!) Please download the release tarball of the version 2.12 of NAMD (NAMD_2.12_Source.tar.gz)"; \ - ${ECHO} "(!!) from https://www.ks.uiuc.edu/Development/Download/download.cgi?PackageName=NAMD,"; \ - ${ECHO} "(!!) put it into ${DISTDIR}, and run 'make' again."; \ - ${ECHO} "(!!)"; \ - ${FALSE}; \ - fi @${MKDIR} ${DISTDIR}/${DIST_SUBDIR} @cd ${DISTDIR}/${DIST_SUBDIR} && ${TAR} xf ${DISTDIR}/NAMD_2.12_Source.tar.gz --strip-components 1 NAMD_2.12_Source/charm-${DISTVERSION}.tar +.endif post-patch: @${REINPLACE_CMD} 's|which gfortran |which gfortran${GCC_DEFAULT} |' ${WRKSRC}/src/arch/common/conv-mach-gfortran.sh @@ -84,4 +79,4 @@ post-install: .endfor @cd ${STAGEDIR} && ${MV} lib_so/* ./${PREFIX}/lib && ${RMDIR} lib_so -.include <bsd.port.mk> +.include <bsd.port.post.mk> |