blob: be206893e49a4561c17719939441c1ca400207a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#!/usr/bin/make -f
include ../source.mk
V = $${OPK_SOURCE\#tcl}
nop:
@:
configure:
TCL_PACKAGE_PATH='$${TCL_LIBRARY}' \
TCL_SHLIB_LD_EXTRAS='-Wl,-soname,$${TCL_LIB_FILE}' \
oh-autoconfigure -s src/unix -B src/unix -- \
--enable-shared \
--enable-threads \
--enable-dll-unloading \
--disable-rpath \
--enable-man-symlinks
touch $@
build: configure
oh-autobuild -s src/unix -B src/unix -- \
TCL_LIBRARY='/usr/share/$(OPK_SOURCE)'
touch $@
install: build
oh-autoinstall -s src/unix -B src/unix -- \
TCL_LIBRARY='/usr/share/$(OPK_SOURCE)' \
MANN_INSTALL_DIR='$$(MAN_INSTALL_DIR)/man3'
# TODO: We might need to edit dest/usr/share/tcl*/tm.tcl.
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
mv dest/usr/lib/$(OPK_HOST_ARCH)/tclConfig.sh \
dest/usr/lib/$(OPK_HOST_ARCH)/tcl$(V)Config.sh
mv dest/usr/lib/$(OPK_HOST_ARCH)/tclooConfig.sh \
dest/usr/lib/$(OPK_HOST_ARCH)/tcloo$(V)Config.sh
mkdir -p dest/usr/share/aclocal
cp src/unix/tcl.m4 dest/usr/share/aclocal/$(OPK_SOURCE).m4
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.
# Also change the .TH macros and cross references in the manual pages.
oh-fixperms
oh-strip
oh-installfiles
|