build 556 Bytes
Newer Older
gsell's avatar
gsell committed
1
#!/usr/bin/env modbuild
gsell's avatar
gsell committed
2

gsell's avatar
gsell committed
3
pbuild::configure() {
gsell's avatar
gsell committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
	case ${OS} in
	Linux )
		srcdir="${MODULE_SRCDIR}/unix"
		;;
	Darwin )
		srcdir="${MODULE_SRCDIR}/macosx"
		;;
	esac
	"${srcdir}"/configure \
		--prefix="${PREFIX}" \
		--with-tcl=${TCL_PREFIX}/lib \
		--enable-shared=no \
		|| exit 1
}

gsell's avatar
gsell committed
19
pbuild::post_install() {
gsell's avatar
gsell committed
20 21 22 23 24 25 26
	:
	#{ cd "${PREFIX}"/bin && rm -f tclsh && ln -fs tclsh${V%.*} tclsh; };
}

# use system's cc
declare CC=cc

gsell's avatar
gsell committed
27 28 29 30
pbuild::add_to_group 'Programming'
pbuild::set_build_dependencies 'Tcl'
pbuild::set_docfiles 'license.terms' 'README'
pbuild::make_all