1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/french/homard/Makefile
Gerald Pfeifer a9f015d155 Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.

PR:		231590
2018-12-12 01:35:33 +00:00

75 lines
2.4 KiB
Makefile

# Created by: Thierry Thomas <thierry@pompo.net>
# $FreeBSD$
PORTNAME= homard
DISTVERSION= 11.10-1
PORTREVISION= 1
CATEGORIES= french cad linux
MAINTAINER= thierry@FreeBSD.org
COMMENT= Refinement and de-refinement mesh tool
BUILD_DEPENDS= ${LOCALBASE}/aster/${VER}/bin/aster:french/aster
RUN_DEPENDS= ${LOCALBASE}/bin/bash:shells/bash \
${LOCALBASE}/aster/${VER}/bin/aster:french/aster
RESTRICTED= The free downloading of HOMARD software is only allowed for coupling\
with Code_Aster. For any other use, a license agreement is requested.\
Please contact HOMARD project: <homard@edf.fr>.
ONLY_FOR_ARCHS= amd64 i386
USES= linux python:2.7 shebangfix
SHEBANG_FILES= ${WRKSRC}/ASTER_HOMARD/homard \
${WRKSRC}/homard_base ${WRKSRC}/setup_homard.py
REINPLACE_ARGS= -i ""
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}
LHOMARDDIR?= apps/${PORTNAME}
VER= ${ASTER_VER:R}
ASTER_TOOLS= ${LOCALBASE}/aster/outils
HOMARDDIR= ${PREFIX}/${LHOMARDDIR}
AHPY= aster_homard_py
HOMARDSCRIPT= ${PORTNAME}_base
# This name is requested to run aster's make test
HOMARDPG= ${PORTNAME:tu}_V${PORTVERSION:R}.out
DOCS= A_Lire.txt Readme.txt
PLIST_SUB= HOMARDDIR=${LHOMARDDIR} AHPY=${LHOMARDDIR}/${AHPY} \
UNAMES=${OPSYS} HOMARDPG=${HOMARDPG} ASTER_TOOLS=${ASTER_TOOLS}
OPTIONS_DEFINE= DOCS
pre-configure:
.for sc in ${HOMARDSCRIPT}
${REINPLACE_CMD} -e "s|%%HOMARDDIR%%|${PREFIX}/apps/${OPSYS}|" \
${WRKSRC}/${sc}
.endfor
do-build:
${BRANDELF} -t Linux ${WRKSRC}/Linux/${HOMARDPG}
do-install:
${MKDIR} ${STAGEDIR}${HOMARDDIR} ${STAGEDIR}${PREFIX}/apps/${OPSYS}
${INSTALL_PROGRAM} ${WRKSRC}/Linux/${HOMARDPG} \
${STAGEDIR}${PREFIX}/apps/${OPSYS}
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}_base \
${STAGEDIR}${HOMARDDIR}/${PORTNAME}
${CP} -R ${WRKSRC}/ASTER_HOMARD/${AHPY} ${STAGEDIR}${HOMARDDIR}
(cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
-d ${PREFIX} -f ${HOMARDDIR:S|${PREFIX}/||})
(cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
-d ${PREFIX} -f ${HOMARDDIR:S|${PREFIX}/||})
${MKDIR} ${STAGEDIR}${ASTER_TOOLS}/
${LN} -fs ${HOMARDDIR}/homard ${STAGEDIR}${ASTER_TOOLS}/
${LN} -fs ${HOMARDDIR}/aster_homard_py ${STAGEDIR}${ASTER_TOOLS}/
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for doc in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
.endfor
.include "${.CURDIR}/../../french/aster/bsd.aster.mk"
.include <bsd.port.mk>