summaryrefslogtreecommitdiff
path: root/math/yorick/Makefile
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2010-02-04 14:51:44 +0000
committerjoerg <joerg@pkgsrc.org>2010-02-04 14:51:44 +0000
commit2e075cf1787b8794e1d31569633e71c27a53d81e (patch)
tree81a3e23530a37cc3cc045606120c4147937974bf /math/yorick/Makefile
parent0a60aa8c1ca56929690908f15846791f81e29a33 (diff)
downloadpkgsrc-2e075cf1787b8794e1d31569633e71c27a53d81e.tar.gz
DESTDIR support
Diffstat (limited to 'math/yorick/Makefile')
-rw-r--r--math/yorick/Makefile19
1 files changed, 10 insertions, 9 deletions
diff --git a/math/yorick/Makefile b/math/yorick/Makefile
index 171754d8ec6..4aa2197325b 100644
--- a/math/yorick/Makefile
+++ b/math/yorick/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.25 2009/06/30 00:07:20 joerg Exp $
+# $NetBSD: Makefile,v 1.26 2010/02/04 15:01:20 joerg Exp $
DISTNAME= yorick-1.6.02
PKGREVISION= 2
@@ -10,12 +10,14 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://yorick.sourceforge.net/
COMMENT= Numerical algebra system (similar to Matlab)
+PKG_DESTDIR_SUPPORT= user-destdir
MAKE_JOBS_SAFE= no
WRKSRC= ${WRKDIR}/yorick-1.6
BUILD_DIRS= ${WRKSRC} ${WRKSRC}/doc
INSTALL_DIRS= ${WRKSRC}
-INSTALLATION_DIRS= ${PKGINFODIR} ${PKGMANDIR}/man1 share/doc share/emacs/site-lisp
+INSTALLATION_DIRS= bin ${PKGINFODIR} ${PKGMANDIR}/man1 share/doc share/emacs/site-lisp
+INSTALL_MAKE_FLAGS+= INSTALL_ROOT=${DESTDIR}
USE_TOOLS+= gmake makeinfo
INFO_FILES= # PLIST
@@ -27,16 +29,15 @@ post-patch:
done
post-install:
- cd ${PREFIX}/bin; for f in yorick gist; do \
- ${LN} -sf ../lib/yorick/1.6/bin/$$f $$f; \
- done
+ ${LN} -sf ../lib/yorick/1.6/bin/yorick ${DESTDIR}${PREFIX}/bin/yorick
+ ${LN} -sf ../lib/yorick/1.6/bin/gist ${DESTDIR}${PREFIX}/bin/gist
cd ${WRKSRC}/doc; for f in yorick.info yorick.info-[0-9]*; do \
${TEST} ! -f "$$f" || \
- ${INSTALL_DATA} "$$f" ${PREFIX}/${PKGINFODIR}; \
+ ${INSTALL_DATA} "$$f" ${DESTDIR}${PREFIX}/${PKGINFODIR}; \
done
- ${INSTALL_MAN} ${WRKSRC}/doc/*.1 ${PREFIX}/${PKGMANDIR}/man1
- cd ${PREFIX}/share/doc && ${LN} -sf ../yorick/1.6/doc yorick
- ${INSTALL_DATA} ${WRKSRC}/emacs/*.el ${PREFIX}/share/emacs/site-lisp
+ ${INSTALL_MAN} ${WRKSRC}/doc/*.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+ ${LN} -sf ../yorick/1.6/doc ${DESTDIR}${PREFIX}/share/doc/yorick
+ ${INSTALL_DATA} ${WRKSRC}/emacs/*.el ${DESTDIR}${PREFIX}/share/emacs/site-lisp
.include "../../x11/libX11/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"