Ignore:
Timestamp:
Mar 20, 2010, 2:28:09 PM (11 years ago)
Author:
jmr@…
Message:

install macports1.0 next to the other Tcl packages and just put a link in the Tcl package dir if possible (#12943)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/macports1.0/Makefile

    r64998 r65055  
    44SHLIB_NAME=     MacPorts${SHLIB_SUFFIX}
    55
    6 INSTALLDIR=     ${DESTDIR}${TCL_PACKAGE_DIR}/macports1.0
     6INSTALLDIR=     ${DESTDIR}${datadir}/macports/Tcl/macports1.0
     7INSTALLPKGLINK= ${TCL_PACKAGE_DIR}/macports1.0
    78
    89include ../../Mk/macports.autoconf.mk
     
    2728        done
    2829
     30        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 pkgIndex.tcl ${INSTALLDIR}
     31       
    2932        echo "${TCL_PACKAGE_DIR}" > ${DESTDIR}${prefix}/var/macports/.tclpackage
    30 
    31         $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 pkgIndex.tcl ${INSTALLDIR}
     33        if test -z "${DESTDIR}" && ! test -e "${INSTALLPKGLINK}" && test -w "${TCL_PACKAGE_DIR}"; then \
     34                ln -s "${INSTALLDIR}" "${INSTALLPKGLINK}" || true; \
     35        fi
Note: See TracChangeset for help on using the changeset viewer.