summaryrefslogtreecommitdiff
path: root/math/fgmp
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-04 17:57:17 +0000
committerjlam <jlam@pkgsrc.org>2008-03-04 17:57:17 +0000
commita80fd13efc426f96e55870df48a2030daea0f14b (patch)
treeea772f1017a149bdf8c86107c24d16246695614e /math/fgmp
parent31c6c3a796edf9dd9bae5586339c5e2e023ca408 (diff)
downloadpkgsrc-a80fd13efc426f96e55870df48a2030daea0f14b.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'math/fgmp')
-rw-r--r--math/fgmp/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/math/fgmp/Makefile b/math/fgmp/Makefile
index 79ae4f292df..77707648b85 100644
--- a/math/fgmp/Makefile
+++ b/math/fgmp/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2007/03/24 19:21:28 joerg Exp $
+# $NetBSD: Makefile,v 1.3 2008/03/04 18:12:59 jlam Exp $
DISTNAME= fgmp-1.0b5-src-10.10
PKGNAME= fgmp-1.0b5
@@ -9,6 +9,8 @@ MAINTAINER= pkgsrc-user@NetBSD.org
HOMEPAGE= http://hpux.cs.utah.edu/hppd/hpux/Maths/Misc/fgmp-1.0b5/
COMMENT= Minimalist free re-implementation of GNU multi-precision routines
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
USE_LIBTOOL= yes
NO_CONFIGURE= yes
@@ -23,7 +25,8 @@ do-build:
)
do-install:
- cd ${WRKSRC} && ${LIBTOOL} --mode=install ${INSTALL_LIB} libfgmp.la ${PREFIX}/lib
- ${INSTALL_DATA} ${WRKSRC}/gmp.h ${PREFIX}/include/fgmp.h
+ cd ${WRKSRC} && ${LIBTOOL} --mode=install ${INSTALL_LIB} libfgmp.la \
+ ${DESTDIR}${PREFIX}/lib
+ ${INSTALL_DATA} ${WRKSRC}/gmp.h ${DESTDIR}${PREFIX}/include/fgmp.h
.include "../../mk/bsd.pkg.mk"