source: trunk/base/src/port/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.0 KB
Line 
1INSTALLDIR=     ${DESTDIR}${prefix}
2TOPSRCDIR=      ../..
3SCRIPTS=        portmirror portindex port
4
5edit = sed \
6        -e 's,@TCLSH\@,$(TCLSH),g' \
7        -e 's,@macports_tcl_dir\@,$(macports_tcl_dir),g'
8
9include ../../Mk/macports.autoconf.mk
10
11.PHONY: mkdirs
12
13all: ${SCRIPTS}
14
15portmirror: portmirror.tcl ../../Mk/macports.autoconf.mk
16        ${edit} portmirror.tcl > $@
17
18portindex: portindex.tcl ../../Mk/macports.autoconf.mk
19        ${edit} portindex.tcl > $@
20
21port: port.tcl ../../Mk/macports.autoconf.mk
22        ${edit} port.tcl > $@
23
24mkdirs:
25        cat ../../doc/prefix.mtree | $(MTREE) -U -d -e -p ${INSTALLDIR} > /dev/null
26
27clean:
28        rm -f ${SCRIPTS}
29
30test:
31
32distclean: clean
33
34install: all mkdirs
35        $(INSTALL) -d -o ${DSTUSR} -g ${DSTGRP} -m ${DSTMODE} ${INSTALLDIR}/bin
36        $(INSTALL) -d -o ${DSTUSR} -g ${DSTGRP} -m ${DSTMODE} ${INSTALLDIR}/var/macports
37        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 555 port portindex portmirror ${INSTALLDIR}/bin/
38        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 port-help.tcl  ${INSTALLDIR}/var/macports/
39        cd ${INSTALLDIR}/bin && $(LN_S) -f port portf
Note: See TracBrowser for help on using the repository browser.