Misc install fixes

git-svn-id: https://svn.macports.org/repository/macports/branches/bigmove/base@213 d073be05-634f-4543-b044-5fe20cf6d1d6
This commit is contained in:
Landon Fuller
2002-08-21 05:17:08 +00:00
parent e76a180aa2
commit 2de47b4bde
3 changed files with 3 additions and 22 deletions
+1 -22
View File
@@ -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"
}
+1
View File
@@ -9,6 +9,7 @@ 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
+1
View File
@@ -8,6 +8,7 @@ clean:
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}