4a4ec28d37
Since FreeBSD 8.4 and FreeBSD 9.1 make(1) do support :tu and :tl as a replacement for :U and :L (which has been marked as deprecated) bmake which is the default on FreeBSD 10+ only support by default :tu/:tl a hack has been added at the time to support :U and :L to ease migration. This hack is now not necessary anymore Note that this makes the ports tree incompatible with make(1) from FreeBSD 8.3 or earlier With hat: portmgr
86 lines
2.7 KiB
Makefile
86 lines
2.7 KiB
Makefile
# Created by: Thierry Thomas <thierry@pompo.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= homard
|
|
DISTVERSION= 10.1-1
|
|
PORTREVISION= 4
|
|
CATEGORIES= french cad linux
|
|
|
|
MAINTAINER= thierry@FreeBSD.org
|
|
COMMENT= A refinement and de-refinement mesh tool
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/aster/${vaster}/asteru:${PORTSDIR}/french/aster
|
|
RUN_DEPENDS= ${LOCALBASE}/aster/${vaster}/asteru:${PORTSDIR}/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= i386 amd64
|
|
|
|
USE_LINUX= yes
|
|
USE_PYTHON= yes
|
|
REINPLACE_ARGS= -i ""
|
|
NO_BUILD= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}
|
|
|
|
LHOMARDDIR?= apps/${PORTNAME}
|
|
vaster= STA${ASTER_VER:R}
|
|
ASTER_TOOLS= ${LOCALBASE}/aster/outils
|
|
HOMARDDIR= ${PREFIX}/${LHOMARDDIR}
|
|
AHPY= aster_homard_py
|
|
HOMARDSCRIPT= ${PORTNAME}_base ASTER_HOMARD/aster_homard_py/aster_homard_3.py
|
|
# This name is requested to run aster's make test
|
|
HOMARDPG= ${PORTNAME:tu}_V${PORTVERSION:R}.out
|
|
HOMARDWDIR= ${PORTNAME:tu}
|
|
|
|
DOCS= A_Lire.txt Readme.txt
|
|
|
|
PLIST_SUB= HOMARDDIR=${LHOMARDDIR} AHPY=${LHOMARDDIR}/${AHPY} \
|
|
UNAMES=${OPSYS} HOMARDPG=${HOMARDPG} ASTER_TOOLS=${ASTER_TOOLS}
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.pre.mk>
|
|
|
|
pre-configure:
|
|
.for sc in ${HOMARDSCRIPT}
|
|
${REINPLACE_CMD} -e "s#/logiciels/HOMARD/HOMARD_PUBLIC#${HOMARDDIR}#" \
|
|
${WRKSRC}/${HOMARDWDIR}/${sc}
|
|
.endfor
|
|
|
|
do-install:
|
|
${MKDIR} ${HOMARDDIR} ${PREFIX}/apps/${OPSYS}
|
|
.if ${ARCH} == "i386"
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${HOMARDWDIR}/Linux/${HOMARDPG} ${PREFIX}/apps/${OPSYS}
|
|
.else
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${HOMARDWDIR}/Linux64/${HOMARDPG} ${PREFIX}/apps/${OPSYS}
|
|
.endif
|
|
${BRANDELF} -t Linux ${PREFIX}/apps/${OPSYS}/${HOMARDPG}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${HOMARDWDIR}/${PORTNAME}_base ${HOMARDDIR}/${PORTNAME}
|
|
${CP} -R ${WRKSRC}/${HOMARDWDIR}/ASTER_HOMARD/${AHPY} ${HOMARDDIR}
|
|
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${HOMARDDIR}
|
|
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${HOMARDDIR}
|
|
${LN} -fs ${HOMARDDIR}/homard ${ASTER_TOOLS}/
|
|
${LN} -fs ${HOMARDDIR}/aster_homard_py ${ASTER_TOOLS}/
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
.for doc in ${DOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/HOMARD/${doc} ${DOCSDIR}
|
|
.endfor
|
|
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
|
|
.endif
|
|
.if !defined(NOPORTEXAMPLES)
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
${CP} -R ${WRKSRC}/${HOMARDWDIR}/Linux/CAS_TESTS/* ${EXAMPLESDIR}
|
|
${FIND} ${EXAMPLESDIR} -type d -empty -exec ${TOUCH} {}/.keepme \;
|
|
@${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}."
|
|
.endif
|
|
|
|
post-install:
|
|
@${ECHO_MSG}
|
|
@${CAT} ${PKGMESSAGE}
|
|
@${ECHO_MSG}
|
|
|
|
.include "${.CURDIR}/../../french/aster/bsd.aster.mk"
|
|
.include <bsd.port.post.mk>
|