pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/flex Added support for installation to DESTDIR.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d94531984a6f
branches:  trunk
changeset: 529414:d94531984a6f
user:      heinz <heinz%pkgsrc.org@localhost>
date:      Sun Jun 03 22:57:25 2007 +0000

description:
Added support for installation to DESTDIR.

diffstat:

 devel/flex/Makefile |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r de99d4ea9d1f -r d94531984a6f devel/flex/Makefile
--- a/devel/flex/Makefile       Sun Jun 03 22:40:25 2007 +0000
+++ b/devel/flex/Makefile       Sun Jun 03 22:57:25 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2007/03/07 16:50:13 rillig Exp $
+# $NetBSD: Makefile,v 1.24 2007/06/03 22:57:25 heinz Exp $
 
 DISTNAME=              flex-2.5.33
 PKGREVISION=           2
@@ -9,6 +9,8 @@
 HOMEPAGE=              http://www.gnu.org/software/flex/
 COMMENT=               Fast clone of lex(1), the lexical scanner generator
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 GNU_CONFIGURE=         YES
 USE_TOOLS+=            bison gm4:run makeinfo
 MAKE_JOBS_SAFE=                no
@@ -26,7 +28,7 @@
 .endif
 
 post-install:
-       cd ${PREFIX}/bin && ln -s flex flex++
+       cd ${DESTDIR:Q}${PREFIX:Q}/bin && ln -s flex flex++
 
 .include "../../devel/gettext-lib/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index