summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rwxr-xr-xbuild20
1 files changed, 13 insertions, 7 deletions
diff --git a/build b/build
index 821fbf7..fa1ca7c 100755
--- a/build
+++ b/build
@@ -28,20 +28,26 @@ install: build
oh-autoinstall -s src/unix -B src/unix -- \
TCL_LIBRARY='/usr/share/tcltk/$(OPK_SOURCE)' \
MANN_INSTALL_DIR='$$(MAN_INSTALL_DIR)/man3'
+ # Move tcl*Config.sh.
+ mkdir -p dest/usr/lib/$(OPK_HOST_ARCH)/$(OPK_SOURCE)
+ mv dest/usr/lib/$(OPK_HOST_ARCH)/tcl*Config.sh \
+ dest/usr/lib/$(OPK_HOST_ARCH)/$(OPK_SOURCE)
+ # Move bundled modules.
mv dest/usr/share/tcltk/tcl8/*/* dest/usr/share/tcltk/$(OPK_SOURCE)
rmdir dest/usr/share/tcltk/tcl8/* dest/usr/share/tcltk/tcl8
+ # Rename tcl.pc.
+ mv dest/usr/lib/$(OPK_HOST_ARCH)/pkgconfig/tcl.pc \
+ dest/usr/lib/$(OPK_HOST_ARCH)/pkgconfig/$(OPK_SOURCE).pc
+ # Install tcl.m4.
+ mkdir -p dest/usr/share/aclocal
+ cp src/unix/tcl.m4 dest/usr/share/aclocal/$(OPK_SOURCE).m4
+ # Install private headers.
for dir in generic unix compat libtommath; do \
mkdir -p dest/usr/include/$(OPK_SOURCE)/tcl-private/$${dir}; \
cp src/$${dir}/*.h \
dest/usr/include/$(OPK_SOURCE)/tcl-private/$${dir}; \
done
- mv dest/usr/lib/$(OPK_HOST_ARCH)/pkgconfig/tcl.pc \
- dest/usr/lib/$(OPK_HOST_ARCH)/pkgconfig/$(OPK_SOURCE).pc
- mkdir -p dest/usr/lib/$(OPK_HOST_ARCH)/$(OPK_SOURCE)
- mv dest/usr/lib/$(OPK_HOST_ARCH)/tcl*Config.sh \
- dest/usr/lib/$(OPK_HOST_ARCH)/$(OPK_SOURCE)
- mkdir -p dest/usr/share/aclocal
- cp src/unix/tcl.m4 dest/usr/share/aclocal/$(OPK_SOURCE).m4
+ # Rename tclsh.1.
mv dest/usr/share/man/man1/tclsh.1 dest/usr/share/man/man1/tclsh.$(V).1
# TODO: Rename ".3" and ".n" manual pages to have a ".3tcl" extension.
# This requires some thought about handling links.