[42978] trunk/base/Makefile.in
blb at macports.org
blb at macports.org
Tue Dec 2 17:29:51 PST 2008
Revision: 42978
http://trac.macports.org/changeset/42978
Author: blb at macports.org
Date: 2008-12-02 17:29:51 -0800 (Tue, 02 Dec 2008)
Log Message:
-----------
base/Makefile.in - make sure install of setupenv.bash respects DESTDIR; only
run upgrade_sources_conf_default.tcl and dep_map_clean.tcl when not
installing into some sort of destroot (as in, DESTDIR isn't set)
Modified Paths:
--------------
trunk/base/Makefile.in
Modified: trunk/base/Makefile.in
===================================================================
--- trunk/base/Makefile.in 2008-12-03 01:28:29 UTC (rev 42977)
+++ trunk/base/Makefile.in 2008-12-03 01:29:51 UTC (rev 42978)
@@ -37,11 +37,14 @@
include Mk/macports.subdir.mk
install::
- $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 setupenv.bash ${datadir}/macports/
+ $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 setupenv.bash $(DESTDIR)${datadir}/macports/
+# Only run these scripts when not building in a destroot
+ifeq ($(DESTDIR),)
# Add [default] tag to the central MacPorts repository, if it isn't already
$(TCLSH) src/upgrade_sources_conf_default.tcl ${prefix}
# Remove duplicate entries from the dependency map (could occur with 1.6 and earlier):
$(TCLSH) src/dep_map_clean.tcl ${TCL_PACKAGE_DIR}
+endif
@echo ""; echo "Congratulations, you have successfully installed the MacPorts system. To get the Portfiles and update the system, run:"; echo ""
@echo "sudo port -v selfupdate"; echo ""
@echo "Please read \"man port\", the MacPorts guide at http://guide.macports.org/ and Wiki at http://trac.macports.org/ for full documentation."; echo ""
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081202/4a4cc57c/attachment.html>
More information about the macports-changes
mailing list