build 482 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
	case ${OS} in
	Linux )
		srcdir="${MODULE_SRCDIR}/unix"
		;;
	Darwin )
		srcdir="${MODULE_SRCDIR}/macosx"
		;;
	esac
	"${srcdir}"/configure \
		--prefix="${PREFIX}" \
gsell's avatar
gsell committed
14
		--enable-shared=no \
gsell's avatar
gsell committed
15 16 17
		|| exit 1
}

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

22 23 24
# use system's cc
declare CC=cc

gsell's avatar
gsell committed
25 26 27
pbuild::add_to_group 'Programming'
pbuild::set_docfiles 'license.terms' 'README'
pbuild::make_all