blob: 0740378691a1c2df9793bf2134461060c83bd637 (
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
|
#!/usr/bin/make -f
include ../source.mk
TCL_V = $$(sed -n 's/Tcl-Version: //p' ../substvars)
V = $(OPK_SOURCE_VERSION_UPSTREAM)
V_M = $$(printf '%s\n' '$(V)' | sed 's/\..*$$//')
SONAME = libexpect.so.$(OPK_SOURCE_VERSION_UPSTREAM)
nop:
@:
configure:
tcl="/usr/lib/$(OPK_HOST_ARCH)/tcl$(TCL_V)"; \
oh-autoconfigure -- \
--enable-shared \
--enable-threads \
--disable-rpath \
--with-tcl="$${tcl}" \
--with-tclinclude=/usr/include/tcl$(TCL_V)
touch $@
build: configure
oh-autobuild -- \
LDFLAGS_DEFAULT='-Wl,--export-dynamic -Wl,-soname=$(SONAME)'
touch $@
install: build
oh-autoinstall
mv dest/usr/lib/$(OPK_HOST_ARCH)/expect$(V)/libexpect$(V).so \
dest/usr/lib/$(OPK_HOST_ARCH)/libexpect.so.$(V)
ln -sf libexpect.so.$(V) \
dest/usr/lib/$(OPK_HOST_ARCH)/libexpect.so.$(V_M)
ln -sf libexpect.so.$(V_M) \
dest/usr/lib/$(OPK_HOST_ARCH)/libexpect.so
# Move pkgIndex.tcl.
mkdir -p dest/usr/share/tcltk
mv dest/usr/lib/$(OPK_HOST_ARCH)/expect$(V) dest/usr/share/tcltk
mv dest/usr/bin/mkpasswd dest/usr/bin/mkpasswd.expect
oh-fixperms
oh-strip
oh-installfiles
oh-shlibdeps
|