PORTNAME= snns PORTVERSION= 4.3 PORTREVISION= 1 CATEGORIES= math MASTER_SITES= http://www.ra.cs.uni-tuebingen.de/downloads/SNNS/ DISTNAME= SNNSv${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Fully featured neural network simulator WWW= https://www.ra.cs.uni-tuebingen.de/SNNS/ LIB_DEPENDS= libXaw3d.so:x11-toolkits/Xaw3d USES= xorg USE_XORG= x11 xext xt HAS_CONFIGURE= yes CONFIGURE_ARGS= --prefix=${PREFIX}/lib/snns --enable-global \ --build=${CONFIGURE_TARGET} MAKE_JOBS_UNSAFE= yes OPTIONS_DEFINE= EXAMPLES .include post-extract: .for file in config.guess config.sub @${CP} -f ${TEMPLATES}/${file} ${WRKSRC}/configuration .endfor post-patch: @${FIND} ${WRKSRC} -name "Makefile" -print0 | ${XARGS} -0 \ ${REINPLACE_CMD} -e 's|mkdir $$(|${MKDIR} $$(|g' @${FIND} ${WRKSRC}/xgui/sources -name "*.c" -print0 | ${XARGS} -0 \ ${REINPLACE_CMD} -e 's|X11/Xaw/|X11/Xaw3d/|g' @${ECHO_CMD} '#!/bin/sh' > ${WRKDIR}/snns @${ECHO_CMD} '' >> ${WRKDIR}/snns @${ECHO_CMD} 'XGUILOADPATH=${PREFIX}/lib/snns' >> ${WRKDIR}/snns @${ECHO_CMD} 'export XGUILOADPATH' >> ${WRKDIR}/snns @${ECHO_CMD} 'PATH=$${PATH}:${PREFIX}/lib/snns/bin' >> ${WRKDIR}/snns @${ECHO_CMD} 'export DPATH' >> ${WRKDIR}/snns @${ECHO_CMD} '' >> ${WRKDIR}/snns @${ECHO_CMD} '${PREFIX}/lib/snns/bin/xgui' >> ${WRKDIR}/snns post-install: ${INSTALL_SCRIPT} ${WRKDIR}/snns ${STAGEDIR}${PREFIX}/bin ${INSTALL_DATA} ${WRKSRC}/Readme ${STAGEDIR}${PREFIX}/lib/snns ${INSTALL_DATA} ${WRKSRC}/Readme.license ${STAGEDIR}${PREFIX}/lib/snns ${INSTALL_DATA} ${WRKSRC}/default.cfg ${STAGEDIR}${PREFIX}/lib/snns ${INSTALL_DATA} ${WRKSRC}/help.hdoc ${STAGEDIR}${PREFIX}/lib/snns .if ${PORT_OPTIONS:MEXAMPLES} @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} .endif .include