summaryrefslogtreecommitdiff
path: root/math/snns/Makefile
blob: 479bd97bcf3dd4365aef8f79f29619bd5b474e38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# $NetBSD: Makefile,v 1.22 2011/02/28 14:52:55 wiz Exp $

DISTNAME=	SNNSv4.2
PKGNAME=	snns-4.2
PKGREVISION=	2
CATEGORIES=	misc
MASTER_SITES=	http://www-ra.informatik.uni-tuebingen.de/downloads/SNNS/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www-ra.informatik.uni-tuebingen.de/SNNS/
COMMENT=	Software simulator for neural networks

PKG_DESTDIR_SUPPORT=	user-destdir

GNU_CONFIGURE=	YES
CONFIGURE_ARGS+=	--enable-global

XGUILOADPATH=	${PREFIX}/share/snns

INSTALLATION_DIRS+=	share/snns share/doc/snns \
			share/examples/snns

INSTALL_TARGET=		install install-man
INSTALL_MAKE_FLAGS+=	INSTALLDIR=${DESTDIR}${PREFIX} \
			MANDIR=${DESTDIR}${PREFIX}/${PKGMANDIR}

post-install:
	${INSTALL_DATA} ${WRKSRC}/help.hdoc ${DESTDIR}${XGUILOADPATH}
	${INSTALL_DATA} ${WRKSRC}/default.cfg ${DESTDIR}${XGUILOADPATH}
	for i in `ls -1 ${WRKSRC}/tools/doc`; do \
		${INSTALL_DATA} ${WRKSRC}/tools/doc/$$i \
			${DESTDIR}${PREFIX}/share/doc/snns; \
	done
	for i in `ls -1 ${WRKSRC}/examples`; do \
		${INSTALL_DATA} ${WRKSRC}/examples/$$i \
		    ${DESTDIR}${PREFIX}/share/examples/snns; \
	done

.include "../../x11/libXaw/buildlink3.mk"
.include "../../x11/libXpm/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"