build-scripts reviewed
This commit is contained in:
@@ -1,16 +1,23 @@
|
||||
#!/usr/bin/env modbuild
|
||||
|
||||
SOURCE_URL="ftp://ftp.tcl.tk/pub/tcl/tcl8_6/tcl$V-src.tar.gz"
|
||||
pbuild::set_download_url "ftp://ftp.tcl.tk/pub/tcl/tcl8_6/tcl$V-src.tar.gz"
|
||||
|
||||
|
||||
# use system's cc
|
||||
declare CC=cc
|
||||
|
||||
pbuild::add_to_group 'Programming'
|
||||
pbuild::install_docfiles 'license.terms' 'README'
|
||||
|
||||
pbuild::pre_configure_Linux() {
|
||||
srcdir="${SRC_DIR}/unix"
|
||||
}
|
||||
|
||||
pbuild::pre_configure_Darwin() {
|
||||
srcdir="${SRC_DIR}/macosx"
|
||||
}
|
||||
|
||||
pbuild::configure() {
|
||||
case ${OS} in
|
||||
Linux )
|
||||
srcdir="${SRC_DIR}/unix"
|
||||
;;
|
||||
Darwin )
|
||||
srcdir="${SRC_DIR}/macosx"
|
||||
;;
|
||||
esac
|
||||
"${srcdir}"/configure \
|
||||
--prefix="${PREFIX}" \
|
||||
--enable-shared=no \
|
||||
@@ -20,10 +27,3 @@ pbuild::configure() {
|
||||
pbuild::post_install() {
|
||||
{ cd "${PREFIX}"/bin && rm -f tclsh && ln -fs tclsh${V%.*} tclsh; };
|
||||
}
|
||||
|
||||
# use system's cc
|
||||
declare CC=cc
|
||||
|
||||
pbuild::add_to_group 'Programming'
|
||||
pbuild::install_docfiles 'license.terms' 'README'
|
||||
pbuild::make_all
|
||||
|
||||
Reference in New Issue
Block a user