arduino: move stuff that don't belong to the main block to do_build().

This commit is contained in:
Juan RP 2015-06-11 10:13:16 +02:00
parent e9ccaedeaf
commit 09c23f4d89

View file

@ -9,18 +9,22 @@ short_desc="IDE for the arduino open-source electronics prototyping platform"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="GPL-2, LGPL-2"
homepage="http://arduino.cc/"
distfiles="https://github.com/arduino/Arduino/archive/${version}.tar.gz
distfiles="
https://github.com/arduino/Arduino/archive/${version}.tar.gz
${SOURCEFORGE_SITE}/astyle/astyle_2.05.1_linux.tar.gz"
checksum="393a8a22b2e6370d0774a4a42c69fd47df9dbfaed6badc6a1d80c559b17e7c4d
checksum="
393a8a22b2e6370d0774a4a42c69fd47df9dbfaed6badc6a1d80c559b17e7c4d
fbdfc6f1966a972d19a215927266c76d4183eee235ed1e2bd7ec551c2a270eac"
. /etc/profile.d/apache-ant.sh
. /etc/profile.d/10_openjdk.sh
CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/lib/jvm/openjdk/include/linux \
-I${XBPS_CROSS_BASE}/usr/lib/jvm/openjdk/include"
nostrip=yes
wrksrc=Arduino-$version
do_build() {
. /etc/profile.d/apache-ant.sh
. /etc/profile.d/10_openjdk.sh
export CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/lib/jvm/openjdk/include/linux"
export CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/lib/jvm/openjdk/include"
mkdir -p build/linux/work/lib
cd ../astyle/build/gcc
make ${makejobs} java