Skip to content
Permalink
Browse files

Merge in "bigmove" reorg branch. System now requires bsdmake && bsdma…

…ke install

and installs itself and its TCL libraries in /usr/local/share , /System/Library/Tcl/8.3, and /usr/local/bin

git-svn-id: https://svn.macports.org/repository/macports/trunk/base@214 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
landonf committed Aug 21, 2002
1 parent a3d0c80 commit 6d8ff5fdff391820513120019da9933fa3c2b34f

This file was deleted.

This file was deleted.

This file was deleted.

@@ -0,0 +1,2 @@
SUBDIR= src
.include <bsd.subdir.mk>
@@ -0,0 +1,4 @@
TCLPKG= darwinports1.0 port1.0 pextlib1.0
SUBDIR= ${TCLPKG} portbuild

.include <bsd.subdir.mk>
@@ -0,0 +1,10 @@
all:

clean:
rm -f pkgIndex.tcl

install:
mkdir -p /System/Library/Tcl/8.3/darwinports1.0
${.CURDIR}/../pkg_mkindex.tcl ${.CURDIR}
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} darwinports.tcl /System/Library/Tcl/8.3/darwinports1.0
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} pkgIndex.tcl /System/Library/Tcl/8.3/darwinports1.0
@@ -8,19 +8,6 @@ set bootstrap_options "sysportpath libpath auto_path"
set portinterp_options "sysportpath portpath auto_path portconf"
set uniqid 0

# XXX not portable
proc ccextension {file} {
if {[regexp {([A-Za-z]+).c} [file tail $file] match name] == 1} {
set objfile [file join [file dirname $file] $name.dylib]
if {[file exists $objfile]} {
if {[file mtime $file] <= [file mtime $objfile]} {
return
}
}
exec cc -dynamiclib $file -o $objfile -ltcl
}
}

proc init {args} {
global auto_path env bootstrap_options sysportpath portconf

@@ -46,19 +33,11 @@ proc init {args} {
}

if ![info exists libpath] {
set libpath [file join $sysportpath Tcl]
set libpath /usr/local/share/darwinports/Tcl
}

if [file isdirectory $libpath] {
lappend auto_path $libpath
foreach dir [glob -nocomplain -directory $libpath -types d *] {
if [file isdirectory $dir] {
foreach srcfile [glob -nocomplain -directory $dir -types f *.c] {
ccextension $srcfile
}
catch {pkg_mkIndex $dir *.tcl *.so *.dylib} result
}
}
} else {
return -code error "Library directory '$libpath' must exist"
}
@@ -0,0 +1,17 @@
SRCS= Pextlib.c strsed.c
LIB= Pextlib
SHLIB_NAME= Pextlib.dylib
NOPROFILE= TRUE
LDADD+= -ltcl
INSTALLDIR= /usr/local/share/darwinports/Tcl/pextlib1.0

install:
mkdir -p ${INSTALLDIR}
${.CURDIR}/../pkg_mkindex.tcl ${.CURDIR}
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} ${SHLIB_NAME} ${INSTALLDIR}
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} pkgIndex.tcl ${INSTALLDIR}

afterclean:
rm -f pkgIndex.tcl

.include <bsd.lib.mk>
File renamed without changes.
@@ -31,6 +31,13 @@

/*
* $Log: strsed.c,v $
* Revision 1.2 2002/08/21 05:22:12 landonf
* Merge in "bigmove" reorg branch. System now requires bsdmake && bsdmake install
* and installs itself and its TCL libraries in /usr/local/share , /System/Library/Tcl/8.3, and /usr/local/bin
*
* Revision 1.1.2.1 2002/08/20 21:50:51 landonf
* Move and seperate Tcl/port1.0
*
* Revision 1.1 2002/08/20 10:06:08 jkh
* Add in-place string sed function, strsed
*
@@ -0,0 +1,8 @@
#!/usr/bin/env tclsh
if {$argc < 1} {
puts "Usage: $argv0 <directory list>"
exit
}
foreach dir $argv {
pkg_mkIndex $dir *.tcl *.dylib
}
@@ -0,0 +1,21 @@
INSTALLDIR= /usr/local/share/darwinports/Tcl/port1.0

all:

clean:
rm -f pkgIndex.tcl

install:
mkdir -p ${INSTALLDIR}
${.CURDIR}/../pkg_mkindex.tcl ${.CURDIR}
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} pkgIndex.tcl ${INSTALLDIR}
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} port.tcl ${INSTALLDIR}
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} portchecksum.tcl ${INSTALLDIR}
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} portconfigure.tcl ${INSTALLDIR}
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} portextract.tcl ${INSTALLDIR}
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} portfetch.tcl ${INSTALLDIR}
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} portmain.tcl ${INSTALLDIR}
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} portmake.tcl ${INSTALLDIR}
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} portpatch.tcl ${INSTALLDIR}
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} portui.tcl ${INSTALLDIR}
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} portutil.tcl ${INSTALLDIR}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,6 @@
all:

clean:

install:
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} portbuild.tcl /usr/local/bin/portbuild
File renamed without changes.

0 comments on commit 6d8ff5f

Please sign in to comment.
You can’t perform that action at this time.