2013-03-19 21:34:59 +01:00
|
|
|
# Created by: thierry@pompo.net
|
2003-07-23 13:20:26 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= astk
|
2015-02-18 23:06:54 +01:00
|
|
|
DISTVERSION= 1.13.5-1
|
2005-01-17 22:09:27 +01:00
|
|
|
CATEGORIES= cad
|
2003-07-23 13:20:26 +02:00
|
|
|
.if !defined(CLIENT_SEUL)
|
|
|
|
PKGNAMESUFFIX= -serveur
|
|
|
|
.else
|
|
|
|
PKGNAMESUFFIX= -client
|
|
|
|
.endif
|
|
|
|
|
2014-07-23 22:10:23 +02:00
|
|
|
MAINTAINER= thierry@FreeBSD.org
|
2003-07-23 13:20:26 +02:00
|
|
|
COMMENT?= Graphical interface for Code_Aster (server side)
|
|
|
|
|
2014-03-18 22:09:03 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2003-07-23 13:20:26 +02:00
|
|
|
#-----------------------------------------------------------------------
|
|
|
|
# You may define these options:
|
|
|
|
#
|
|
|
|
# - WITH_ZSH or WITH_BASH or WITH_KSH: select a shell among
|
|
|
|
# zsh (default), bash or ksh;
|
|
|
|
# - WITH_ED: select an editor accepting '-display' (e.g. gvim, nedit);
|
|
|
|
# - WITH_PBS: PBS (batch scheduler) support is experimental.
|
|
|
|
#
|
|
|
|
#-----------------------------------------------------------------------
|
|
|
|
|
|
|
|
# There exists a "logical" RUN_DEPENDS towards french/aster and french/eficas
|
|
|
|
# for the server part, but it is not set to avoid circular dependences.
|
2010-12-29 23:01:55 +01:00
|
|
|
|
2005-01-17 22:09:27 +01:00
|
|
|
RUN_DEPENDS+= ${SHELL_INSTALL_ASTER}:${PORTSDIR}/shells/${SHIADEP}
|
2003-07-23 13:20:26 +02:00
|
|
|
|
2009-01-14 21:25:30 +01:00
|
|
|
.if !defined(CLIENT_SEUL)
|
2015-02-18 23:06:54 +01:00
|
|
|
USES+= gettext python tk:build
|
2013-03-19 21:34:59 +01:00
|
|
|
.else
|
2013-09-23 16:21:53 +02:00
|
|
|
USES+= tk
|
2009-01-14 21:25:30 +01:00
|
|
|
.endif
|
2003-07-23 13:20:26 +02:00
|
|
|
NO_BUILD= yes
|
|
|
|
REINPLACE_ARGS= -i ""
|
|
|
|
|
2008-01-12 17:28:32 +01:00
|
|
|
EXTRACT_WRKSRC= ${WRKDIR}/aster-${DISTVERSIONPREFIX}${ASTER_DISTVERSION:S/-/./:R}/SRC
|
|
|
|
|
2014-03-18 22:09:03 +01:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
SUB_LIST= inst_dir=${inst_dir} tools_dir=${tools_dir}
|
2004-05-23 10:09:51 +02:00
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
2005-01-17 22:09:27 +01:00
|
|
|
LINSTDIR= aster/ASTK
|
|
|
|
inst_dir= ${PREFIX}/${LINSTDIR}
|
|
|
|
aster_dir= ${LOCALBASE}/aster/${vaster}
|
2010-03-26 19:30:46 +01:00
|
|
|
S_SCRIPTS= bin/as_run bin/parallel_cp asrun/installation.py \
|
2013-03-19 21:34:59 +01:00
|
|
|
share/codeaster/asrun/data/mpirun_template \
|
2014-08-17 21:51:45 +02:00
|
|
|
etc/profile.csh
|
2010-03-26 19:30:46 +01:00
|
|
|
S_PYLIBS= share/codeaster/asrun/examples/alamain.py \
|
2010-12-29 23:01:55 +01:00
|
|
|
unittest/datafiles/config_serveurs unittest/010_misc.py \
|
2010-08-19 21:27:20 +02:00
|
|
|
unittest/015_package.py unittest/run_test.py
|
2005-01-17 22:09:27 +01:00
|
|
|
C_SCRIPTS= bin/astk bin/bsf
|
2010-03-26 19:30:46 +01:00
|
|
|
tools_dir= ${LOCALBASE}/aster/outils
|
|
|
|
conf_dir= ${WRKSRC}/etc/astkrc
|
2005-01-17 22:09:27 +01:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2003-07-23 13:20:26 +02:00
|
|
|
.if !defined(CLIENT_SEUL)
|
2014-03-18 22:09:03 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}/ASTK_SERV
|
2003-07-23 13:20:26 +02:00
|
|
|
PATCHDIR= ${MASTERDIR}/files
|
2005-01-17 22:09:27 +01:00
|
|
|
PLIST_SUB= ASTKDIR=${LINSTDIR}/ASTK_SERV SERV="" CLIENT="@comment " \
|
|
|
|
vaster=${vaster}
|
2010-03-26 19:30:46 +01:00
|
|
|
PATCH2RM= bin/as_run bin/parallel_cp etc/asrun etc/profile.csh etc/profile.sh \
|
2010-08-19 21:27:20 +02:00
|
|
|
asrun/config.py asrun/installation.py asrun/system.py \
|
|
|
|
asrun/common/sysutils.py asrun/system_command.py
|
2007-07-01 00:47:28 +02:00
|
|
|
. if exists(${LOCALBASE}/sbin/pbs_server)
|
|
|
|
WITH_PBS= yes
|
|
|
|
. endif
|
2009-11-28 11:44:56 +01:00
|
|
|
. if exists(${LOCALBASE}/bin/mpirun)
|
2009-01-14 21:25:30 +01:00
|
|
|
WITH_MPI= yes
|
|
|
|
. endif
|
|
|
|
. if defined(WITH_MPI)
|
|
|
|
RUN_DEPENDS+= ${HOME_MPI}/bin/mpirun:${PORTSDIR}/net/mpich2
|
2009-11-28 11:44:56 +01:00
|
|
|
HOME_MPI= ${LOCALBASE}
|
2009-01-14 21:25:30 +01:00
|
|
|
PLIST_SUB+= MPI=""
|
|
|
|
. else
|
|
|
|
PLIST_SUB+= MPI="@comment "
|
|
|
|
. endif
|
2007-07-01 00:47:28 +02:00
|
|
|
. if defined(WITH_PBS)
|
|
|
|
RUN_DEPENDS+= qsub:${PORTSDIR}/sysutils/torque
|
|
|
|
. endif
|
2003-07-23 13:20:26 +02:00
|
|
|
.else
|
2006-01-16 00:16:31 +01:00
|
|
|
RUN_DEPENDS+= xterm:${PORTSDIR}/x11/xterm \
|
2013-03-19 21:34:59 +01:00
|
|
|
${LOCALBASE}/lib/${TKPNG}/pkgIndex.tcl:${PORTSDIR}/graphics/tkpng
|
|
|
|
TKPNG_VER= 0.9
|
|
|
|
TKPNG= tkpng${TKPNG_VER}
|
2014-03-18 22:09:03 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}/ASTK_CLIENT
|
2003-07-23 13:20:26 +02:00
|
|
|
PATCHDIR= ${MASTERDIR}/files.client
|
2005-01-17 22:09:27 +01:00
|
|
|
PLIST_SUB= ASTKDIR=${LINSTDIR}/ASTK_CLIENT SERV="@comment " CLIENT="" vaster="" \
|
2010-03-26 19:30:46 +01:00
|
|
|
BWidget_DIR=${LINSTDIR}/ASTK_CLIENT/lib/BWidget-${BWidget_VER}
|
|
|
|
PATCH2RM= bin/astk bin/bsf etc/astkrc/outils lib/init.tcl lib/tkselecteur.tcl
|
2003-07-23 13:20:26 +02:00
|
|
|
.endif
|
2004-05-23 10:09:51 +02:00
|
|
|
FILESDIR= ${PATCHDIR}
|
2003-07-23 13:20:26 +02:00
|
|
|
|
2003-12-08 03:07:22 +01:00
|
|
|
SLAVEDIRS= cad/astk-client
|
2003-07-23 13:20:26 +02:00
|
|
|
|
2004-05-23 10:09:51 +02:00
|
|
|
BWidget_VER= 1.7.0
|
2003-07-23 13:20:26 +02:00
|
|
|
|
2006-01-16 00:16:31 +01:00
|
|
|
vaster= STA${ASTER_VER:R}
|
2010-03-26 19:30:46 +01:00
|
|
|
ETCDIR= ${PREFIX}/aster/etc/codeaster
|
2004-05-23 10:09:51 +02:00
|
|
|
|
2006-07-06 21:43:47 +02:00
|
|
|
GIBI= gibi2003
|
2003-07-23 13:20:26 +02:00
|
|
|
|
|
|
|
.if defined(WITH_ZSH)
|
|
|
|
SHIA= zsh
|
|
|
|
.elif defined(WITH_BASH)
|
|
|
|
SHIA= bash
|
|
|
|
.elif defined(WITH_KSH)
|
2003-07-28 07:22:59 +02:00
|
|
|
SHIA= ksh93
|
2003-07-23 13:20:26 +02:00
|
|
|
.elif exists(${LOCALBASE}/bin/zsh)
|
|
|
|
SHIA= zsh
|
|
|
|
.elif exists(${LOCALBASE}/bin/bash)
|
|
|
|
SHIA= bash
|
2003-07-28 07:22:59 +02:00
|
|
|
.elif exists(${LOCALBASE}/bin/ksh93)
|
|
|
|
SHIA= ksh93
|
2003-07-23 13:20:26 +02:00
|
|
|
.else
|
|
|
|
SHIA= zsh
|
|
|
|
.endif
|
2003-07-28 07:22:59 +02:00
|
|
|
SHIADEP= ${SHIA}
|
2012-07-07 17:15:57 +02:00
|
|
|
BASH2RC= asrun/calcul.py share/codeaster/asrun/data/mpirun_template
|
2003-07-23 13:20:26 +02:00
|
|
|
|
|
|
|
.if !defined(WITH_ED)
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
. if exists(${LOCALBASE}/bin/nedit)
|
2003-07-23 13:20:26 +02:00
|
|
|
WITH_ED= nedit
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/bin/nedit:${PORTSDIR}/editors/nedit
|
2005-01-17 22:09:27 +01:00
|
|
|
. elif exists(${LOCALBASE}/bin/gvim)
|
2005-04-27 23:25:05 +02:00
|
|
|
WITH_ED= gvim
|
2003-07-23 13:20:26 +02:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/bin/gvim:${PORTSDIR}/editors/vim
|
2005-01-17 22:09:27 +01:00
|
|
|
. elif exists(${LOCALBASE}/bin/emacs)
|
|
|
|
WITH_ED= emacs
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/bin/emacs:${PORTSDIR}/editors/emacs
|
|
|
|
. elif exists(${LOCALBASE}/bin/xemacs)
|
|
|
|
WITH_ED= xemacs
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/bin/xemacs:${PORTSDIR}/editors/xemacs
|
2008-01-12 17:28:32 +01:00
|
|
|
. elif exists(${LOCALBASE}/bin/gedit)
|
|
|
|
WITH_ED= gedit
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/bin/gedit:${PORTSDIR}/editors/gedit
|
|
|
|
. elif exists(${LOCALBASE}/bin/kwrite)
|
|
|
|
WITH_ED= kwrite
|
2014-03-18 22:09:03 +01:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/bin/kwrite:${PORTSDIR}/editors/kate
|
2008-01-12 17:28:32 +01:00
|
|
|
. elif exists(${LOCALBASE}/bin/xedit)
|
2005-01-17 22:09:27 +01:00
|
|
|
WITH_ED= xedit
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/bin/xedit:${PORTSDIR}/x11/xedit
|
2008-01-12 17:28:32 +01:00
|
|
|
. else
|
|
|
|
WITH_ED= vi
|
2005-01-17 22:09:27 +01:00
|
|
|
. endif
|
2003-07-23 13:20:26 +02:00
|
|
|
.endif
|
|
|
|
|
2005-01-17 22:09:27 +01:00
|
|
|
unamesm= ${OPSYS} ${ARCH}
|
2014-05-05 11:45:36 +02:00
|
|
|
v_ifdef= ${OPSYS:tu}
|
2003-07-23 13:20:26 +02:00
|
|
|
SHELL_INSTALL_ASTER= ${LOCALBASE}/bin/${SHIA}
|
2005-01-17 22:09:27 +01:00
|
|
|
|
|
|
|
.if !defined(PACKAGE_BUILDING)
|
|
|
|
SERVER_NAME!= ${UNAME} -n
|
|
|
|
HOST_NAME!= /bin/hostname -s
|
|
|
|
DOMAIN_NAME= ${SERVER_NAME:S|${HOST_NAME}.||}
|
|
|
|
.else
|
|
|
|
SERVER_NAME= put.your.fdqn
|
|
|
|
HOST_NAME= this-hostname
|
|
|
|
DOMAIN_NAME= your.domain-name
|
|
|
|
.endif
|
2003-07-23 13:20:26 +02:00
|
|
|
|
2003-12-08 03:07:22 +01:00
|
|
|
.if defined(LANG) && ${LANG:Mfr*} != ""
|
|
|
|
ASTK_LANG= FR
|
|
|
|
.else
|
|
|
|
ASTK_LANG= ENG
|
|
|
|
.endif
|
|
|
|
|
2007-02-17 23:54:03 +01:00
|
|
|
pre-configure:
|
|
|
|
${RM} ${PATCH2RM:C|^|${WRKSRC}/|:C|$|.orig|}
|
2003-07-23 13:20:26 +02:00
|
|
|
|
2005-01-17 22:09:27 +01:00
|
|
|
do-configure:
|
2003-07-23 13:20:26 +02:00
|
|
|
.if !defined(CLIENT_SEUL)
|
2005-01-17 22:09:27 +01:00
|
|
|
. for scripts in ${S_SCRIPTS}
|
2010-03-26 19:30:46 +01:00
|
|
|
${REINPLACE_CMD} -e "s|?SHELL_EXECUTION?|${SHELL_INSTALL_ASTER}|" \
|
|
|
|
-e "s|?ASTER_ROOT?|${PREFIX}/aster|" ${WRKSRC}/${scripts}
|
2005-01-17 22:09:27 +01:00
|
|
|
. endfor
|
2010-08-19 21:27:20 +02:00
|
|
|
${REINPLACE_CMD} -e "s|?ASTER_VERSION?|${vaster}|" \
|
2010-03-26 19:30:46 +01:00
|
|
|
-e 's|#?vers : VVV?|vers : ${vaster}|' \
|
|
|
|
${WRKSRC}/etc/aster
|
2010-12-29 23:01:55 +01:00
|
|
|
${REINPLACE_CMD} -e 's|?DEBUGGER_COMMAND_POST?|gdb -batch --command=@D @E @C|'\
|
|
|
|
-e 's|?DEBUGGER_COMMAND?|gdb --dbx --command=@D @E @C|' \
|
|
|
|
${WRKSRC}/etc/asrun
|
2009-01-14 21:25:30 +01:00
|
|
|
. if defined(WITH_MPI)
|
2010-03-26 19:30:46 +01:00
|
|
|
${REINPLACE_CMD} -e "s|?MPIRUN?|${HOME_MPI}/bin/mpirun|" \
|
|
|
|
-e "s|?ASTER_CONFDIR?|${PREFIX}/aster|" \
|
|
|
|
${WRKSRC}/etc/asrun
|
2009-01-14 21:25:30 +01:00
|
|
|
. endif
|
2010-03-26 19:30:46 +01:00
|
|
|
. for sc in asrun aster
|
|
|
|
${REINPLACE_CMD} -e "s|?IFDEF?|${v_ifdef}|" \
|
|
|
|
-e "s|?EDITOR?|${WITH_ED}|" \
|
|
|
|
-e "s|?TERMINAL?|${LOCALBASE}/bin/xterm|" \
|
|
|
|
-e "s|?NODE?|${HOST_NAME}|" \
|
|
|
|
-e "s|LOCALBASE|${LOCALBASE}|" \
|
|
|
|
${WRKSRC}/etc/${sc}
|
|
|
|
. endfor
|
|
|
|
. for sh in sh csh
|
2010-08-19 21:27:20 +02:00
|
|
|
${REINPLACE_CMD} -e "s|?ASTER_ROOT?|${LOCALBASE}/aster|" \
|
2010-03-26 19:30:46 +01:00
|
|
|
-e 's|?HOME_PYTHON?|${PYTHONBASE}|' \
|
|
|
|
-e 's|?ASRUN_SITE_PKG?|${PREFIX}/${LINSTDIR}/ASTK_SERV|' \
|
|
|
|
-e 's|?PYTHON_EXE?|${PYTHON_CMD}|' \
|
|
|
|
-e 's|?HOME_MED?|${LOCALBASE}|' \
|
|
|
|
-e 's|?HOME_HDF?|${LOCALBASE}|' \
|
2013-03-19 21:34:59 +01:00
|
|
|
-e "s|?WISH_EXE?|${WISH}|" \
|
2010-03-26 19:30:46 +01:00
|
|
|
${WRKSRC}/etc/profile.${sh}
|
|
|
|
. endfor
|
2009-01-14 21:25:30 +01:00
|
|
|
. for libs in ${S_PYLIBS}
|
2010-03-26 19:30:46 +01:00
|
|
|
${REINPLACE_CMD} -e "s|/opt/aster/NEW9|${aster_dir}|" \
|
|
|
|
-e "s|/opt/aster/NEW10|${aster_dir}|" \
|
|
|
|
-e "s|/opt/aster/ASTK|${inst_dir}|" \
|
2010-08-19 21:27:20 +02:00
|
|
|
-e "s|/opt/aster/etc|${LOCALBASE}/aster/etc|" \
|
2013-03-19 21:34:59 +01:00
|
|
|
-e "s|/usr/bin/editor|${WITH_ED}|" \
|
|
|
|
-e "s|/usr/bin/nedit2|${WITH_ED}|" \
|
|
|
|
-e "s|/usr/bin/nedit|${WITH_ED}|" \
|
|
|
|
-e "s|/usr/bin/xterm|${LOCALBASE}/bin/xterm|" \
|
2010-03-26 19:30:46 +01:00
|
|
|
-e "s|/opt/aster|${aster_dir}|" ${WRKSRC}/${libs}
|
2005-01-17 22:09:27 +01:00
|
|
|
. endfor
|
|
|
|
. if defined(WITH_PBS)
|
2010-12-29 23:01:55 +01:00
|
|
|
. for cf in etc/asrun unittest/datafiles/config_serveurs
|
2008-01-12 17:28:32 +01:00
|
|
|
${REINPLACE_CMD} -e "s|batch : non|batch : oui|" \
|
2010-03-26 19:30:46 +01:00
|
|
|
${WRKSRC}/${cf}
|
|
|
|
. endfor
|
2005-01-17 22:09:27 +01:00
|
|
|
. endif
|
2010-08-19 21:27:20 +02:00
|
|
|
. if defined(MAKE_JOBS_NUMBER) && ! defined(PACKAGE_BUILDING)
|
|
|
|
${REINPLACE_CMD} \
|
|
|
|
-e "s|%%MAKE_JOBS_NUMBER%%|self.Shell('${ECHO_CMD} ${MAKE_JOBS_NUMBER}', mach, user)|" \
|
|
|
|
${WRKSRC}/asrun/system.py
|
|
|
|
. else
|
|
|
|
${REINPLACE_CMD} -e 's|%%MAKE_JOBS_NUMBER%%|1|' ${WRKSRC}/asrun/system.py
|
|
|
|
. endif
|
|
|
|
${REINPLACE_CMD} -e 's|bash|${SHIA}|' ${WRKSRC}/asrun/system_command.py
|
2012-07-07 17:15:57 +02:00
|
|
|
. for sh in ${BASH2RC}
|
|
|
|
${REINPLACE_CMD} -e 's|/bin/bash|${SHELL_INSTALL_ASTER}|' ${WRKSRC}/${sh}
|
|
|
|
. endfor
|
2010-09-16 23:23:17 +02:00
|
|
|
${REINPLACE_CMD} -e 's|/usr/bin/|${LOCALBASE}/bin/|;s|LINUX|FREEBSD|' \
|
|
|
|
${WRKSRC}/asrun/core/configuration.py
|
2003-07-23 13:20:26 +02:00
|
|
|
.else
|
|
|
|
# CLIENT_SEUL
|
2005-01-17 22:09:27 +01:00
|
|
|
. for scripts in ${C_SCRIPTS}
|
2010-03-26 19:30:46 +01:00
|
|
|
${REINPLACE_CMD} -e "s|?SHELL_EXECUTION?|${SHELL_INSTALL_ASTER}|" \
|
|
|
|
-e "s|?ASTER_ROOT?|${PREFIX}/aster|" \
|
2013-03-19 21:34:59 +01:00
|
|
|
-e "s|wish|${WISH}|;s|%%inst_dir%%|${inst_dir}|" \
|
2010-03-26 19:30:46 +01:00
|
|
|
${WRKSRC}/${scripts}
|
2005-01-17 22:09:27 +01:00
|
|
|
. endfor
|
2010-08-19 21:27:20 +02:00
|
|
|
${REINPLACE_CMD} -e "s|?vaster?|${vaster}|" \
|
2010-03-26 19:30:46 +01:00
|
|
|
-e "s|?TOOLS_DIR?|${tools_dir}|" ${conf_dir}/outils
|
2008-01-12 17:28:32 +01:00
|
|
|
${REINPLACE_CMD} -e "s#?HOME_ASTK?#${inst_dir}#" \
|
2010-03-26 19:30:46 +01:00
|
|
|
-e "s#?TERMINAL?#${LOCALBASE}/bin/xterm#" \
|
2005-01-17 22:09:27 +01:00
|
|
|
-e "s#?FULL_SERVER_NAME?#${SERVER_NAME}#" \
|
|
|
|
-e "s#?SERVER_NAME?#${HOST_NAME}#" \
|
2007-07-01 00:47:28 +02:00
|
|
|
-e "s#?ASTER_ROOT?#${PREFIX}/aster#" \
|
2005-01-17 22:09:27 +01:00
|
|
|
-e "s#?EDITOR?#${WITH_ED}#" ${conf_dir}/config_serveurs
|
2010-03-26 19:30:46 +01:00
|
|
|
${REINPLACE_CMD} -e "s#?TERMINAL?#${LOCALBASE}/bin/xterm#" \
|
2005-01-17 22:09:27 +01:00
|
|
|
-e "s#?ASTER_VERSION?#${ASTER_VER}#" \
|
2003-12-08 03:07:22 +01:00
|
|
|
-e "s#langue : ENG#langue : ${ASTK_LANG}#" \
|
2005-01-17 22:09:27 +01:00
|
|
|
-e "s#?DOMAIN_NAME?#${DOMAIN_NAME}#" \
|
|
|
|
-e "s#?EDITOR?#${WITH_ED}#" ${conf_dir}/prefs
|
2010-03-26 19:30:46 +01:00
|
|
|
${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \
|
|
|
|
${WRKSRC}/lib/tkselecteur.tcl
|
|
|
|
${REINPLACE_CMD} -e "s|%%unamesm%%|${unamesm}|" \
|
|
|
|
${WRKSRC}/lib/init.tcl
|
2003-07-23 13:20:26 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
2014-03-18 22:09:03 +01:00
|
|
|
${MKDIR} ${STAGEDIR}${inst_dir}
|
|
|
|
${CP} -R ${WRKSRC} ${STAGEDIR}${inst_dir}
|
2009-01-14 21:25:30 +01:00
|
|
|
.if !defined(CLIENT_SEUL)
|
2014-05-26 21:20:37 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${inst_dir}/ASTK_SERV/etc/codeaster/astkrc \
|
|
|
|
${STAGEDIR}/${ETCDIR}
|
|
|
|
${TOUCH} ${STAGEDIR}${inst_dir}/ASTK_SERV/etc/codeaster/astkrc/.keep_me
|
2014-03-18 22:09:03 +01:00
|
|
|
${CP} -R ${WRKSRC}/etc/* ${STAGEDIR}${ETCDIR}
|
|
|
|
(cd ${STAGEDIR}${PREFIX} \
|
|
|
|
&& ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
|
|
|
|
-d ${PREFIX} -f aster)
|
|
|
|
(cd ${STAGEDIR}${PREFIX} \
|
|
|
|
&& ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
|
|
|
|
-d ${PREFIX} -f aster)
|
2009-01-14 21:25:30 +01:00
|
|
|
. if defined(WITH_MPI)
|
2014-03-18 22:09:03 +01:00
|
|
|
${ECHO_CMD} "localhost" > ${STAGEDIR}${PREFIX}/aster/aster-mpihosts
|
2009-01-14 21:25:30 +01:00
|
|
|
. endif
|
|
|
|
.endif
|
2003-07-23 13:20:26 +02:00
|
|
|
|
2010-09-16 23:23:17 +02:00
|
|
|
.include "${.CURDIR}/../../french/aster/bsd.aster.mk"
|
2003-07-23 13:20:26 +02:00
|
|
|
.include <bsd.port.post.mk>
|