#!/usr/bin/make -f include ../source.mk TCL_V = $$(sed -n 's/Tcl-Version: //p' ../substvars) VVV = $(OPK_SOURCE_VERSION_UPSTREAM) VV = $$(printf '%s\n' '$(VVV)' | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$$/\1/') V = $$(printf '%s\n' '$(VVV)' | sed 's/^\([0-9][0-9]*\).*$$/\1/') SONAME = libexpect.so.$(VV) 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$(VVV)/libexpect$(VVV).so \ dest/usr/lib/$(OPK_HOST_ARCH)/libexpect.so.$(VVV) [ 'x$(VVV)' != 'x$(VV)' ] && \ ln -sf libexpect.so.$(VVV) \ dest/usr/lib/$(OPK_HOST_ARCH)/libexpect.so.$(VV) ln -sf libexpect.so.$(VV) \ dest/usr/lib/$(OPK_HOST_ARCH)/libexpect.so.$(V) ln -sf libexpect.so.$(V) \ 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$(VVV) dest/usr/share/tcltk mv dest/usr/bin/mkpasswd dest/usr/bin/mkpasswd.expect oh-fixperms oh-strip oh-installfiles oh-shlibdeps