2004-08-16 10:14:12 +02:00
|
|
|
# New ports collection makefile for: himenobench
|
|
|
|
# Date Created: 16 Aug 2004
|
|
|
|
# Whom: NAKATA Maho <maho@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= himenobench
|
|
|
|
PORTVERSION= 2004.08.16
|
2009-09-13 02:08:01 +02:00
|
|
|
PORTREVISION= 3
|
2004-08-16 10:14:12 +02:00
|
|
|
CATEGORIES= benchmarks
|
2010-06-06 00:36:02 +02:00
|
|
|
MASTER_SITES= http://accc.riken.jp/assets/files/himenob_loadmodule/
|
|
|
|
DISTFILES= himenoBMTxp_xl.lzh himenoBMTxp_l.lzh himenoBMTxp_m.lzh \
|
|
|
|
himenoBMTxp_s.lzh cc_himenoBMTxp_xl.lzh cc_himenoBMTxp_l.lzh \
|
|
|
|
cc_himenoBMTxp_m.lzh cc_himenoBMTxp_s.lzh f90_xp.lzh himenoBMTxpa.lzh
|
2004-08-16 10:14:12 +02:00
|
|
|
DIST_SUBDIR= himeno
|
|
|
|
|
|
|
|
MAINTAINER= maho@FreeBSD.org
|
|
|
|
COMMENT= Himeno bench benchmark, solves Poisson eq. with Jacobi's method
|
|
|
|
|
2004-08-16 14:16:03 +02:00
|
|
|
.if defined(WITH_ICC)
|
2004-08-16 10:14:12 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/intel_cc_80/bin/icc:${PORTSDIR}/lang/icc
|
|
|
|
.endif
|
|
|
|
EXTRACT_DEPENDS= lha:${PORTSDIR}/archivers/lha
|
|
|
|
|
2007-07-14 23:36:44 +02:00
|
|
|
USE_FORTRAN= yes
|
2010-06-06 00:36:02 +02:00
|
|
|
.if defined(WITH_IFC)
|
|
|
|
USE_FORTRAN= ifort
|
|
|
|
.endif
|
2007-01-12 06:42:29 +01:00
|
|
|
|
2010-06-06 00:36:02 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
2004-08-16 10:14:12 +02:00
|
|
|
|
2004-08-18 09:28:53 +02:00
|
|
|
.if defined(WITH_OPTIMIZED_FLAGS)
|
2007-01-04 07:08:43 +01:00
|
|
|
FFLAGS+= -O2 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations
|
|
|
|
CFLAGS+= -O2 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations
|
2004-08-16 10:14:12 +02:00
|
|
|
.endif
|
|
|
|
|
2004-08-16 14:16:03 +02:00
|
|
|
.if defined(WITH_ICC)
|
2004-08-18 09:21:58 +02:00
|
|
|
CFLAGS_ICC+= -O3 -tpp7 -axN -Vaxlib
|
2004-08-16 10:14:12 +02:00
|
|
|
ICC= ${LOCALBASE}/intel_cc_80/bin/icc
|
2004-08-16 14:16:03 +02:00
|
|
|
PLIST_SUB+= WITH_ICC=""
|
2004-08-16 10:14:12 +02:00
|
|
|
.else
|
2004-08-16 14:16:03 +02:00
|
|
|
PLIST_SUB+= WITH_ICC="@comment "
|
2004-08-16 10:14:12 +02:00
|
|
|
.endif
|
2007-07-16 10:00:01 +02:00
|
|
|
.if ${USE_FORTRAN} == ifort
|
2004-08-18 09:21:58 +02:00
|
|
|
FFLAGS_IFC+= -O3 -tpp7 -axN -Vaxlib -ipo
|
2004-08-16 10:14:12 +02:00
|
|
|
IFC= ${LOCALBASE}/intel_fc_80/bin/ifort
|
2004-08-16 14:16:03 +02:00
|
|
|
PLIST_SUB+= WITH_IFC=""
|
2004-08-16 10:14:12 +02:00
|
|
|
.else
|
2004-08-16 14:16:03 +02:00
|
|
|
PLIST_SUB+= WITH_IFC="@comment "
|
2004-08-16 10:14:12 +02:00
|
|
|
.endif
|
|
|
|
|
2007-07-16 10:00:01 +02:00
|
|
|
.if ${USE_FORTRAN} != yes
|
2007-01-04 07:08:43 +01:00
|
|
|
PLIST_SUB+= WITH_GFORTRAN="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= WITH_GFORTRAN=""
|
|
|
|
.endif
|
|
|
|
|
2004-08-16 10:14:12 +02:00
|
|
|
do-extract:
|
|
|
|
@${MKDIR} ${WRKSRC}
|
|
|
|
@for i in ${DISTFILES}; do \
|
2007-01-04 07:08:43 +01:00
|
|
|
cd ${WRKSRC} ; lha xf ${DISTDIR}/${DIST_SUBDIR}/$$i; \
|
2004-08-16 10:14:12 +02:00
|
|
|
done
|
|
|
|
do-build:
|
2007-07-14 23:36:44 +02:00
|
|
|
.if ${USE_FORTRAN} == yes
|
2007-01-04 07:08:43 +01:00
|
|
|
cd ${WRKSRC} ; ${FC} ${FFLAGS} -o himenobmtxp himenobmtxp.f90
|
|
|
|
.endif
|
|
|
|
# cd ${WRKSRC} ; ${FC} ${FFLAGS} -o himenobmtxp_xl himenobmtxp_xl.f #Too large
|
|
|
|
cd ${WRKSRC} ; ${FC} ${FFLAGS} -o himenobmtxp_l himenobmtxp_l.f
|
|
|
|
cd ${WRKSRC} ; ${FC} ${FFLAGS} -o himenobmtxp_m himenobmtxp_m.f
|
|
|
|
cd ${WRKSRC} ; ${FC} ${FFLAGS} -o himenobmtxp_s himenobmtxp_s.f
|
|
|
|
# cd ${WRKSRC} ; ${CC} ${CFLAGS} -DELARGE -o himenobmtxps_xl himenobmtxps.c #Too large
|
|
|
|
cd ${WRKSRC} ; ${CC} ${CFLAGS} -DLARGE -o himenobmtxps_l himenobmtxps.c
|
|
|
|
cd ${WRKSRC} ; ${CC} ${CFLAGS} -DMIDDLE -o himenobmtxps_m himenobmtxps.c
|
|
|
|
cd ${WRKSRC} ; ${CC} ${CFLAGS} -DSMALL -o himenobmtxps_s himenobmtxps.c
|
|
|
|
cd ${WRKSRC} ; ${CC} ${CFLAGS} -DSSMALL -o himenobmtxps_ss himenobmtxps.c
|
|
|
|
cd ${WRKSRC} ; ${CC} ${CFLAGS} -o himenobmtxpa himenobmtxpa.c
|
2004-08-16 14:16:03 +02:00
|
|
|
.if defined(WITH_IFC)
|
2007-01-04 07:08:43 +01:00
|
|
|
# cd ${WRKSRC} ; ${IFC} ${FFLAGS_IFC} -o himenobmtxp_xl.ifc himenobmtxp_xl.f #Too large
|
|
|
|
cd ${WRKSRC} ; ${IFC} ${FFLAGS_IFC} -o himenobmtxp_l.ifc himenobmtxp_l.f
|
|
|
|
cd ${WRKSRC} ; ${IFC} ${FFLAGS_IFC} -o himenobmtxp_m.ifc himenobmtxp_m.f
|
|
|
|
cd ${WRKSRC} ; ${IFC} ${FFLAGS_IFC} -o himenobmtxp_s.ifc himenobmtxp_s.f
|
|
|
|
cd ${WRKSRC} ; ${IFC} ${FFLAGS_IFC} -o himenobmtxp.ifc himenobmtxp.f90
|
2004-08-16 10:14:12 +02:00
|
|
|
.endif
|
2004-08-16 14:16:03 +02:00
|
|
|
.if defined(WITH_ICC)
|
2007-01-04 07:08:43 +01:00
|
|
|
# cd ${WRKSRC} ; ${ICC} ${CFLAGS_ICC} -DELARGE -o himenobmtxps_xl.icc himenobmtxps.c #Too large
|
|
|
|
cd ${WRKSRC} ; ${ICC} ${CFLAGS_ICC} -DLARGE -o himenobmtxps_l.icc himenobmtxps.c
|
|
|
|
cd ${WRKSRC} ; ${ICC} ${CFLAGS_ICC} -DMIDDLE -o himenobmtxps_m.icc himenobmtxps.c
|
|
|
|
cd ${WRKSRC} ; ${ICC} ${CFLAGS_ICC} -DSMALL -o himenobmtxps_s.icc himenobmtxps.c
|
|
|
|
cd ${WRKSRC} ; ${ICC} ${CFLAGS_ICC} -DSSMALL -o himenobmtxps_ss.icc himenobmtxps.c
|
|
|
|
cd ${WRKSRC} ; ${ICC} ${CFLAGS_ICC} -o himenobmtxpa.icc himenobmtxpa.c
|
2004-08-16 10:14:12 +02:00
|
|
|
.endif
|
|
|
|
do-install:
|
|
|
|
# ${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxp_xl ${PREFIX}/bin #Too large
|
2007-07-14 23:36:44 +02:00
|
|
|
.if ${USE_FORTRAN} == yes
|
2007-01-04 07:08:43 +01:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxp ${PREFIX}/bin
|
|
|
|
.endif
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxp_l ${PREFIX}/bin
|
2004-08-16 10:14:12 +02:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxp_m ${PREFIX}/bin
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxp_s ${PREFIX}/bin
|
2004-08-18 09:21:58 +02:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxpa ${PREFIX}/bin
|
2004-08-16 10:14:12 +02:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxps_l ${PREFIX}/bin
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxps_m ${PREFIX}/bin
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxps_s ${PREFIX}/bin
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxps_ss ${PREFIX}/bin
|
2004-08-16 14:16:03 +02:00
|
|
|
.if defined(WITH_IFC)
|
2004-08-18 09:21:58 +02:00
|
|
|
# @${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxp_xl.ifc ${PREFIX}/bin #Too large
|
2004-08-16 10:14:12 +02:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxp_l.ifc ${PREFIX}/bin
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxp_m.ifc ${PREFIX}/bin
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxp_s.ifc ${PREFIX}/bin
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxp.ifc ${PREFIX}/bin
|
|
|
|
.endif
|
2004-08-16 14:16:03 +02:00
|
|
|
.if defined(WITH_ICC)
|
2004-08-16 10:14:12 +02:00
|
|
|
# @${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxps_xl.icc ${PREFIX}/bin #Too large
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxps_l.icc ${PREFIX}/bin
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxps_m.icc ${PREFIX}/bin
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxps_s.icc ${PREFIX}/bin
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxps_ss.icc ${PREFIX}/bin
|
2004-08-18 09:21:58 +02:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxpa.icc ${PREFIX}/bin
|
2004-08-16 10:14:12 +02:00
|
|
|
.endif
|
2010-06-06 00:36:02 +02:00
|
|
|
.include <bsd.port.post.mk>
|