2003-07-23 14:18:27 +02:00
|
|
|
# Ports collection Makefile for: Eficas
|
|
|
|
# Date created: Jul 07 2003
|
|
|
|
# Whom: thierry@pompo.net
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2003-12-11 00:09:50 +01:00
|
|
|
PORTNAME= eficas
|
2010-12-29 23:01:53 +01:00
|
|
|
DISTVERSION= 2.1.1-1
|
2012-05-25 03:50:36 +02:00
|
|
|
PORTREVISION= 2
|
2008-01-12 17:28:27 +01:00
|
|
|
CATEGORIES= french cad
|
2003-07-23 14:18:27 +02:00
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
|
|
COMMENT= ASter Command FIle Editor
|
|
|
|
|
2010-08-19 21:27:24 +02:00
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/Pmw:${PORTSDIR}/x11-toolkits/py-Pmw \
|
2003-07-23 14:18:27 +02:00
|
|
|
${PYTHON_SITELIBDIR}/mx:${PORTSDIR}/lang/py-mx-base \
|
2010-08-19 21:27:24 +02:00
|
|
|
${PYNUMPY} \
|
2003-07-23 14:18:27 +02:00
|
|
|
${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
|
|
|
|
|
|
|
|
USE_PYTHON= yes
|
|
|
|
REINPLACE_ARGS= -i ""
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
2010-09-16 23:23:32 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2006-01-16 00:16:11 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}
|
2003-12-11 00:09:50 +01:00
|
|
|
|
2003-07-23 14:18:27 +02:00
|
|
|
LEFICASDIR?= apps/${PORTNAME}
|
|
|
|
EFICASDIR= ${PREFIX}/${LEFICASDIR}
|
2010-12-29 23:01:53 +01:00
|
|
|
PLIST_SUB= EFICASDIR=${LEFICASDIR}
|
2006-01-16 00:16:11 +01:00
|
|
|
SUB_FILES= eficas
|
|
|
|
SUB_LIST= EFICASDIR=${EFICASDIR} PYTHON_CMD=${PYTHON_CMD}
|
2003-07-23 14:18:27 +02:00
|
|
|
|
2003-12-08 03:07:22 +01:00
|
|
|
.if defined(LANG) && ${LANG:Mfr*} != ""
|
|
|
|
EF_LANG= fr
|
|
|
|
.else
|
|
|
|
EF_LANG= ang
|
|
|
|
.endif
|
|
|
|
|
2011-01-02 18:43:45 +01:00
|
|
|
.if !defined(WITHOUT_QT)
|
2010-03-26 19:30:44 +01:00
|
|
|
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/PyQt4/QtGui.so:${PORTSDIR}/x11-toolkits/py-qt4-gui \
|
|
|
|
${PYTHON_SITELIBDIR}/PyQt4/QtAssistant.so:${PORTSDIR}/devel/py-qt4-assistant
|
2009-01-14 21:25:23 +01:00
|
|
|
SUB_FILES+= qtEficas
|
2010-12-29 23:01:53 +01:00
|
|
|
PLIST_SUB+= QT4=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= QT4="@comment "
|
2009-01-14 21:25:23 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
FIXSHTK= bureau.py cataediteur.py panels.py
|
2010-03-26 19:30:44 +01:00
|
|
|
FIXSHQT4= typeNode.py
|
|
|
|
FIXBASH= cataSTA9/Macro/macr_ecre_calc_ops.py cataSTA10/Macro/macr_ecre_calc_ops.py
|
2003-07-23 14:18:27 +02:00
|
|
|
|
2005-01-17 22:09:10 +01:00
|
|
|
pre-configure:
|
2008-01-12 17:28:27 +01:00
|
|
|
${RM} ${WRKSRC}/convert/Parserv5/Translate.py.orig
|
|
|
|
${RM} -r ${WRKSRC}/Pmw # Use our ported Pmw
|
2010-03-26 19:30:44 +01:00
|
|
|
.for tk in TK QT4
|
2009-01-14 21:25:23 +01:00
|
|
|
. for FILE in ${FIXSH${tk}}
|
|
|
|
${REINPLACE_CMD} -e "s|/usr/bin/sh|/bin/sh|" ${WRKSRC}/Interface${tk}/${FILE}
|
|
|
|
. endfor
|
2008-01-12 17:28:27 +01:00
|
|
|
.endfor
|
|
|
|
${REINPLACE_CMD} -e "s#lang='fr'#lang='${EF_LANG}'#" \
|
2003-12-08 03:07:22 +01:00
|
|
|
${WRKSRC}/Aster/prefs.py
|
2008-01-12 17:28:27 +01:00
|
|
|
${REINPLACE_CMD} -e "s#os.path.join(rep_cata,'..','Doc')#\"${DOCSDIR}\"#" \
|
2010-12-29 23:01:53 +01:00
|
|
|
-e "s#os.path.join(initialdir,'../Pmw')#'${PYTHON_SITELIBDIR}/Pmw'#" \
|
2003-07-23 14:18:27 +02:00
|
|
|
${WRKSRC}/Aster/editeur.ini
|
2010-03-26 19:30:44 +01:00
|
|
|
.for cata in ${FIXBASH}
|
|
|
|
${REINPLACE_CMD} -e "s|'/bin/bash'|'${LOCALBASE}/bin/bash'|" \
|
|
|
|
${WRKSRC}/Aster/Cata/${cata}
|
|
|
|
.endfor
|
2011-01-02 18:43:45 +01:00
|
|
|
${REINPLACE_CMD} -e 's|QListBoxItem\*|QListWidgetItem*|' ${WRKSRC}/InterfaceQT4/*.py
|
2003-07-23 14:18:27 +02:00
|
|
|
|
|
|
|
do-install:
|
2009-06-21 19:46:46 +02:00
|
|
|
${MKDIR} ${EFICASDIR}
|
|
|
|
${CP} -R ${WRKSRC}/* ${EFICASDIR}
|
2010-08-19 21:27:24 +02:00
|
|
|
${FIND} ${EFICASDIR} -name CMakeFiles -delete
|
2010-12-29 23:01:53 +01:00
|
|
|
${FIND} ${EFICASDIR} -name CVS | ${XARGS} ${RM} -rf
|
2003-07-23 14:18:27 +02:00
|
|
|
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${EFICASDIR}
|
|
|
|
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${EFICASDIR}
|
2009-06-21 19:46:46 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/eficas ${PREFIX}/bin
|
2011-01-02 18:43:45 +01:00
|
|
|
.if !defined(WITHOUT_QT)
|
2009-06-21 19:46:46 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/qtEficas ${PREFIX}/bin
|
2003-12-08 03:07:22 +01:00
|
|
|
.endif
|
2003-07-23 14:18:27 +02:00
|
|
|
|
2009-06-21 19:46:46 +02:00
|
|
|
post-install:
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
@${ECHO_MSG}
|
|
|
|
|
2010-09-16 23:23:32 +02:00
|
|
|
.include "${.CURDIR}/../../french/aster/bsd.aster.mk"
|
2003-07-23 14:18:27 +02:00
|
|
|
.include <bsd.port.mk>
|