From 50513d5d5238ab12e0e327b93bf433d7d288aeeb Mon Sep 17 00:00:00 2001
From: Erwin Lansing <erwin@FreeBSD.org>
Date: Fri, 4 Aug 2006 12:34:50 +0000
Subject: Add support for DESTDIR part I.

This commit should largele be a NOOP as it only adds support
for DESTDIR undefined. This does allow us to start testing
ports with DESTDIR set, but this is as of yet not supported.

Although this has been extensively tested on pointyhat, this
is a very intrusive change and some cases may have been
overlooked. Please contact Gabor and me if you find any.

PR:             100555
Submitted by:   gabor
Sponsored by:   Google Summer of Code 2006
---
 lang/perl5.8/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'lang/perl5.8')

diff --git a/lang/perl5.8/Makefile b/lang/perl5.8/Makefile
index ab06bbd8d440..4a7cf88df437 100644
--- a/lang/perl5.8/Makefile
+++ b/lang/perl5.8/Makefile
@@ -119,7 +119,7 @@ PLIST_SUB+=		NEED_USE_PERL="@comment "
 .if defined(WITH_GDBM)
 MAN3+=	GDBM_File.3
 .endif
-MAN3PREFIX=	${PREFIX}/lib/perl5/${PERL_VER}/perl
+MAN3PREFIX=	${TARGETDIR}/lib/perl5/${PERL_VER}/perl
 
 test:
 	@(cd ${WRKSRC}; make test)
-- 
cgit v1.2.3