2013-09-20 17:52:44 +02:00
|
|
|
# Created by: NAKATA Maho <maho@FreeBSD.org>
|
2004-08-16 10:14:12 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= himenobench
|
2016-03-08 16:55:26 +01:00
|
|
|
PORTVERSION= 2015.07.09
|
2016-12-07 14:24:56 +01:00
|
|
|
PORTREVISION= 2
|
2004-08-16 10:14:12 +02:00
|
|
|
CATEGORIES= benchmarks
|
2016-03-08 16:55:26 +01:00
|
|
|
MASTER_SITES= http://accc.riken.jp/wp-content/uploads/2015/07/
|
|
|
|
DISTFILES= himenobmtxp_xl.zip himenobmtxp_l.zip \
|
|
|
|
himenobmtxp_m.zip himenobmtxp_s.zip \
|
|
|
|
cc_himenobmtxp_xl.zip cc_himenobmtxp_l.zip \
|
|
|
|
cc_himenobmtxp_m.zip cc_himenobmtxp_s.zip \
|
|
|
|
f90_xp.zip himenobmtxpa.zip
|
2004-08-16 10:14:12 +02:00
|
|
|
DIST_SUBDIR= himeno
|
|
|
|
|
2014-07-23 18:44:27 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2016-03-08 16:55:26 +01:00
|
|
|
COMMENT= Tool for measureing performance of floating point operation
|
2004-08-16 10:14:12 +02:00
|
|
|
|
2016-03-08 16:55:26 +01:00
|
|
|
LICENSE= LGPL20 # (or later)
|
2015-11-09 13:59:03 +01:00
|
|
|
|
2016-04-01 15:29:15 +02:00
|
|
|
EXTRACT_DEPENDS= lha:archivers/lha
|
2016-03-08 16:55:26 +01:00
|
|
|
|
2016-06-20 18:23:28 +02:00
|
|
|
USES= dos2unix fortran zip
|
|
|
|
DOS2UNIX_GLOB= *.c *.f
|
2013-03-27 03:53:44 +01:00
|
|
|
NO_WRKSUBDIR= yes
|
2013-03-07 18:08:13 +01:00
|
|
|
|
2016-06-20 15:12:09 +02:00
|
|
|
OPTIONS_DEFINE= ICC OPTIMIZED_CFLAGS
|
2016-03-08 16:55:26 +01:00
|
|
|
OPTIONS_SUB= yes
|
2007-01-12 06:42:29 +01:00
|
|
|
|
2016-03-08 16:55:26 +01:00
|
|
|
ICC_DESC= Intel C compiler support
|
2016-04-01 15:29:15 +02:00
|
|
|
ICC_BUILD_DEPENDS= ${LOCALBASE}/intel_cc_80/bin/icc:lang/icc
|
2016-03-08 16:55:26 +01:00
|
|
|
OPTIMIZED_CFLAGS_CFLAGS=${OPTFLAGS}
|
|
|
|
OPTIMIZED_CFLAGS_VARS= FFLAGS+="${OPTFLAGS}"
|
2004-08-16 10:14:12 +02:00
|
|
|
|
|
|
|
ICC= ${LOCALBASE}/intel_cc_80/bin/icc
|
2016-03-08 16:55:26 +01:00
|
|
|
CFLAGS_ICC= -O3 -tpp7 -axN -Vaxlib
|
|
|
|
OPTFLAGS= -O2 -ffast-math -finline-functions -fomit-frame-pointer \
|
|
|
|
-funroll-loops -fexpensive-optimizations
|
2004-08-16 10:14:12 +02:00
|
|
|
|
2016-03-08 16:55:26 +01:00
|
|
|
post-extract:
|
|
|
|
@${FIND} ${WRKSRC} -name "*.lzh" -type f -maxdepth 1 -exec lha \
|
|
|
|
xfpw=${WRKSRC} {} \;
|
2007-01-04 07:08:43 +01:00
|
|
|
|
2004-08-16 10:14:12 +02:00
|
|
|
do-build:
|
2007-01-04 07:08:43 +01:00
|
|
|
# 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
|
2016-03-08 16:55:26 +01:00
|
|
|
cd ${WRKSRC} ; ${FC} ${FFLAGS} -o himenobmtxp himenobmtxp.f90
|
|
|
|
|
|
|
|
do-build-ICC-on:
|
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
|
2014-08-14 10:28:14 +02:00
|
|
|
|
2004-08-16 10:14:12 +02:00
|
|
|
do-install:
|
2014-08-14 10:28:14 +02:00
|
|
|
# ${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxp_xl ${STAGEDIR}${PREFIX}/bin #Too large
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxp_l ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxp_m ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxp_s ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxpa ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxps_l ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxps_m ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxps_s ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxps_ss ${STAGEDIR}${PREFIX}/bin
|
2016-03-08 16:55:26 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxp ${STAGEDIR}${PREFIX}/bin
|
|
|
|
|
|
|
|
do-install-ICC-on:
|
2014-08-14 10:28:14 +02:00
|
|
|
# ${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxps_xl.icc ${STAGEDIR}${PREFIX}/bin #Too large
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxps_l.icc ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxps_m.icc ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxps_s.icc ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxps_ss.icc ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxpa.icc ${STAGEDIR}${PREFIX}/bin
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|