summaryrefslogtreecommitdiffstats
path: root/build
blob: 72c5072e7740ca1642eacaa920f75359a31f17b1 (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
#!/usr/bin/make -f

include ../source.mk

TCL_V = $$(sed -n 's/Tcl-Version: //p' ../substvars)

nop:
	@:

configure:
	# Temporary hack for bootstrap on Debian.
	tcl="/usr/lib/$(OPK_HOST_ARCH)/tcl$(TCL_V)"; \
	[ -f /etc/debian_version ] && tcl="/usr/lib/tcl$(TCL_V)"; \
	oh-autoconfigure -- \
		--enable-shared \
		--enable-threads \
		--disable-rpath \
		--with-tcl="$${tcl}"
	touch $@

build: configure
	oh-autobuild -- \
		SONAME='libexpect.so.$(OPK_SOURCE_VERSION_UPSTREAM)'
	touch $@

install: build
	oh-autoinstall
	oh-fixperms
	oh-strip
	oh-installfiles