From 826ac6490597d4371d214a0d72b78b4489069054 Mon Sep 17 00:00:00 2001 From: asau Date: Sat, 12 Dec 2009 21:58:18 +0000 Subject: Support staged installation. --- math/quadpack/Makefile | 5 +++-- math/quadpack/files/Makefile | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'math/quadpack') diff --git a/math/quadpack/Makefile b/math/quadpack/Makefile index 612c6fc5164..6567a19761a 100644 --- a/math/quadpack/Makefile +++ b/math/quadpack/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.15 2009/12/03 13:06:55 asau Exp $ +# $NetBSD: Makefile,v 1.16 2009/12/12 22:52:57 asau Exp $ DISTNAME= quadpack-20001130 PKGREVISION= 2 @@ -12,12 +12,13 @@ NO_SRC_ON_FTP= Already in MASTER_SITE_LOCAL USE_LANGUAGES= fortran WRKSRC= ${WRKDIR}/quadpack +PKG_DESTDIR_SUPPORT= user-destdir INSTALLATION_DIRS= lib share/doc/quadpack pre-build: ${CP} ${FILESDIR}/Makefile ${WRKSRC} post-install: - cd ${WRKSRC} && ${INSTALL_DATA} doc readme ${PREFIX}/share/doc/quadpack + cd ${WRKSRC} && ${INSTALL_DATA} doc readme ${DESTDIR}${PREFIX}/share/doc/quadpack .include "../../mk/bsd.pkg.mk" diff --git a/math/quadpack/files/Makefile b/math/quadpack/files/Makefile index a22ea3a0725..7613008036c 100644 --- a/math/quadpack/files/Makefile +++ b/math/quadpack/files/Makefile @@ -21,7 +21,7 @@ lib$(LIB).a: $(OBJS) $(RANLIB) $@ install: lib$(LIB).a - $(BSD_INSTALL_DATA) $? $(LIBDIR) + $(BSD_INSTALL_DATA) $? $(DESTDIR)$(LIBDIR) clean: rm -f *.o lib$(LIB).a -- cgit v1.2.3