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

3 4 5
case ${OS} in
Darwin )
	export NO_APPLE_COMMON_CRYPTO=1
gsell's avatar
gsell committed
6 7
	# we use 'asciidoc' from MacPorts
	PATH+=':/opt/local/bin'
8 9
	;;
esac
gsell's avatar
gsell committed
10

gsell's avatar
gsell committed
11
pbuild::configure() {
gsell's avatar
gsell committed
12 13 14
	cd "${MODULE_SRCDIR}"
	"${MODULE_SRCDIR}"/configure \
		--prefix="${PREFIX}" \
15
		--with-tcltk \
gsell's avatar
gsell committed
16 17 18
		|| exit 1
}

gsell's avatar
gsell committed
19
pbuild::build() {
gsell's avatar
gsell committed
20 21
        cd "${MODULE_SRCDIR}"
        make
gsell's avatar
gsell committed
22 23

	make -C contrib/subtree prefix="${prefix}"
gsell's avatar
gsell committed
24 25
}

gsell's avatar
gsell committed
26 27 28
pbuild::install() {
        cd "${MODULE_SRCDIR}"
        make install
gsell's avatar
gsell committed
29 30 31
        make install-doc
	make -C contrib/subtree prefix="${PREFIX}" install
	make -C contrib/subtree prefix="${PREFIX}" install-doc
gsell's avatar
gsell committed
32 33 34 35 36 37
}

pbuild::add_to_group 'Tools'
pbuild::set_runtime_dependencies 'Tcl' 'Tk'
pbuild::set_docfiles 'COPYING' 'README'
pbuild::make_all
gsell's avatar
gsell committed
38 39 40 41 42 43

# Local Variables:
# mode: sh
# sh-basic-offset: 8
# tab-width: 8
# End: