Commit 6ed34bc6 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Initial commit

parents
all: bc-fix-libmath.h
tar xf bc-1.07.1.tar.gz
@echo "$$LIBMATH" > bc-1.07.1/bc/fix-libmath_h
ln -sv /tools/lib/libncursesw.so.6 /usr/lib/libncursesw.so.6
ln -sfv libncurses.so.6 /usr/lib/libncurses.so
cd bc-1.07.1 && sed -i -e '/flex/s/as_fn_error/: ;; # &/' configure
cd bc-1.07.1 && ./configure --prefix=/usr --with-readline --mandir=/usr/share/man --infodir=/usr/share/info
$(MAKE) -C bc-1.07.1
if [[ ! "$(BUILD_OPTIONS)" =~ no-tests ]] ; then \
cd bc-1.07.1 && echo "quit" | ./bc/bc -l Test/checklib.b ; \
fi
$(MAKE) -C bc-1.07.1 install
rm -rf bc-1.07.1
bc-fix-libmath.h:
define LIBMATH
#!/bin/bash
sed -e '1 s/^/{"/' -e 's/$$/",/' -e '2,$$ s/^/"/' -e '$$ d' -i libmath.h
sed -e '$$ s/$$/0}/' -i libmath.h
endef
export LIBMATH
bin
/usr/bin/.*
info
/usr/share/info/.*
man
/usr/share/man/.*
<project name="bc">
<target name="boot-bc">
<property name="makedir" value="${builddir}/bc-1.07.1"/>
<exec executable="tar" failonerror="true">
<arg line="xf packages/bc/bc-1.07.1.tar.gz -C ${builddir}"/>
</exec>
<exec executable="./configure" dir="${makedir}" failonerror="true">
<env key="CC" value="gcc"/>
<arg line="--prefix=${sysrootdir}/cross-tools"/>
</exec>
<exec executable="make" dir="${makedir}" failonerror="true"/>
<exec executable="make" dir="${makedir}" failonerror="true">
<arg line="install"/>
</exec>
<delete dir="${makedir}"/>
</target>
</project>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment