[Midnightbsd-cvs] mports [17495] trunk/Mk/bsd.mport.mk: add destdir support
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Fri Sep 26 07:24:56 EDT 2014
Revision: 17495
http://svnweb.midnightbsd.org/mports/?rev=17495
Author: laffer1
Date: 2014-09-26 07:24:55 -0400 (Fri, 26 Sep 2014)
Log Message:
-----------
add destdir support
Modified Paths:
--------------
trunk/Mk/bsd.mport.mk
Modified: trunk/Mk/bsd.mport.mk
===================================================================
--- trunk/Mk/bsd.mport.mk 2014-09-26 11:20:52 UTC (rev 17494)
+++ trunk/Mk/bsd.mport.mk 2014-09-26 11:24:55 UTC (rev 17495)
@@ -64,6 +64,14 @@
.include "${MPORTCOMPONENTS}/commands.mk"
+.if defined(DESTDIR) && !empty(DESTDIR) && !defined(CHROOTED) && \
+ !defined(BEFOREPORTMK) && !defined(INOPTIONSMK)
+
+.include ${PORTSDIR}/Mk/components/destdir.mk
+
+.else
+
+
# Figure out where the local mtree file is
.if !defined(MTREE_FILE) && !defined(NO_MTREE)
.if ${PREFIX} == /usr
@@ -4326,4 +4334,7 @@
.endif
+
+.endif
+
# End of post-makefile section.
More information about the Midnightbsd-cvs
mailing list