2021-05-09 02:10:08 -04:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
IFS=. read -r maj min _ < "${0%/*}/version"
|
|
|
|
|
2021-05-11 00:07:37 -04:00
|
|
|
unix/configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--enable-threads \
|
|
|
|
--disable-rpath \
|
|
|
|
--enable-64bit
|
2021-05-09 02:10:08 -04:00
|
|
|
|
|
|
|
make
|
|
|
|
make INSTALL_ROOT="$1" install install-private-headers
|
|
|
|
|
|
|
|
ln -s "/usr/bin/wish${maj}.${min}" "$1/usr/bin/wish"
|
|
|
|
ln -s "/usr/lib/libtk${maj}.${min}.so" "$1/usr/lib/libtk.so"
|
|
|
|
|
|
|
|
# Finish installing private headers.
|
2021-05-11 00:07:37 -04:00
|
|
|
for dir in compat generic generic/ttk unix
|
|
|
|
do
|
|
|
|
install -dm755 "$1/usr/include/tk-private/$dir"
|
|
|
|
install -m644 -t "$1/usr/include/tk-private/$dir" "$dir/"*.h
|
2021-05-09 02:10:08 -04:00
|
|
|
done
|