source: trunk/base/src/macports1.0/Makefile @ 65055

Last change on this file since 65055 was 65055, checked in by jmr@…, 11 years ago

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

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1SRCS=           macports.tcl macports_dlist.tcl macports_util.tcl \
2                macports_autoconf.tcl macports_index.tcl macports_fastload.tcl
3OBJS=           macports.o get_systemconfiguration_proxies.o sysctl.o
4SHLIB_NAME=     MacPorts${SHLIB_SUFFIX}
5
6INSTALLDIR=     ${DESTDIR}${datadir}/macports/Tcl/macports1.0
7INSTALLPKGLINK= ${TCL_PACKAGE_DIR}/macports1.0
8
9include ../../Mk/macports.autoconf.mk
10include ../../Mk/macports.tea.mk
11
12ifeq ($(OBJC_RUNTIME), APPLE_RUNTIME)
13        LIBS+= -framework CoreFoundation -framework SystemConfiguration
14endif
15
16test::
17        ${TCLSH} tests/macports_dlist.tcl
18        ${TCLSH} tests/macports_util.tcl
19
20distclean:: clean
21        rm -f macports_autoconf.tcl macports_fastload.tcl ${SHLIB_NAME}
22
23install:: all
24        $(INSTALL) -d -o ${DSTUSR} -g ${DSTGRP} -m ${DSTMODE} ${INSTALLDIR}
25
26        $(SILENT) set -x; for file in ${SRCS}; do \
27                $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 $$file ${INSTALLDIR}/$$file; \
28        done
29
30        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 pkgIndex.tcl ${INSTALLDIR}
31       
32        echo "${TCL_PACKAGE_DIR}" > ${DESTDIR}${prefix}/var/macports/.tclpackage
33        if test -z "${DESTDIR}" && ! test -e "${INSTALLPKGLINK}" && test -w "${TCL_PACKAGE_DIR}"; then \
34                ln -s "${INSTALLDIR}" "${INSTALLPKGLINK}" || true; \
35        fi
Note: See TracBrowser for help on using the repository browser.