summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2009-02-23 18:14:20 +0000
committerjoerg <joerg@pkgsrc.org>2009-02-23 18:14:20 +0000
commit793ee1315144e0abc5cff4066f78938192477e00 (patch)
treec5c51ba8a3fbddc662776cb1f0b4bd9402c403e6 /math
parent9bd5be9d4c0a57ab7fb1c9eb565764095cf149ca (diff)
downloadpkgsrc-793ee1315144e0abc5cff4066f78938192477e00.tar.gz
DESTDIR support
Diffstat (limited to 'math')
-rw-r--r--math/snns/Makefile36
1 files changed, 20 insertions, 16 deletions
diff --git a/math/snns/Makefile b/math/snns/Makefile
index f088dbc3ac2..604b27b836d 100644
--- a/math/snns/Makefile
+++ b/math/snns/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2008/11/10 17:21:37 wiz Exp $
+# $NetBSD: Makefile,v 1.21 2009/02/23 18:14:20 joerg Exp $
DISTNAME= SNNSv4.2
PKGNAME= snns-4.2
@@ -10,27 +10,31 @@ MAINTAINER= wulf@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_DIR} ${XGUILOADPATH};
- ${INSTALL_DATA_DIR} ${PREFIX}/share/snns;
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/snns;
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/snns;
- ${INSTALL_DATA} ${WRKSRC}/help.hdoc ${XGUILOADPATH};
- ${INSTALL_DATA} ${WRKSRC}/default.cfg ${XGUILOADPATH};
- cd ${WRKSRC} && ${MAKE} install-man;
- for i in `ls -1 ${WRKSRC}/tools/doc`; do \
- ${INSTALL_DATA} ${WRKSRC}/tools/doc/$$i \
- ${PREFIX}/share/doc/snns; \
- done
- for i in `ls -1 ${WRKSRC}/examples`; do \
- ${INSTALL_DATA} ${WRKSRC}/examples/$$i \
- ${PREFIX}/share/examples/snns; \
- done
+ ${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"