340b57f8be
- Bump PORTREVISION for all ports depending on libglut since the shlib version number went from 4 to 3. - Bump PORTREVISION for all ports depending on libXaw as libXaw.so.8 isn't installed anymore. - Couple of ports fixes (mostly missing xorg components added to USE_XORG).
58 lines
1.7 KiB
Makefile
58 lines
1.7 KiB
Makefile
# New ports collection makefile for: snns
|
|
# Date created: 2 Febuary 1997
|
|
# Whom: reg@shale.csir.co.za
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
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
|
|
|
|
LIB_DEPENDS= Xaw3d:${PORTSDIR}/x11-toolkits/Xaw3d
|
|
|
|
USE_XORG= x11 xext xt
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --prefix=${PREFIX}/lib/snns --enable-global \
|
|
--build=${CONFIGURE_TARGET}
|
|
|
|
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 ${PREFIX}/bin
|
|
${INSTALL_DATA} ${WRKSRC}/Readme ${PREFIX}/lib/snns
|
|
${INSTALL_DATA} ${WRKSRC}/Readme.license ${PREFIX}/lib/snns
|
|
${INSTALL_DATA} ${WRKSRC}/default.cfg ${PREFIX}/lib/snns
|
|
${INSTALL_DATA} ${WRKSRC}/help.hdoc ${PREFIX}/lib/snns
|
|
.if !defined(NOPORTEXAMPLES)
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
|
|
.endif
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|