arduino: move stuff that don't belong to the main block to do_build().
This commit is contained in:
parent
e9ccaedeaf
commit
09c23f4d89
1 changed files with 10 additions and 6 deletions
|
@ -9,18 +9,22 @@ short_desc="IDE for the arduino open-source electronics prototyping platform"
|
||||||
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
||||||
license="GPL-2, LGPL-2"
|
license="GPL-2, LGPL-2"
|
||||||
homepage="http://arduino.cc/"
|
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"
|
${SOURCEFORGE_SITE}/astyle/astyle_2.05.1_linux.tar.gz"
|
||||||
checksum="393a8a22b2e6370d0774a4a42c69fd47df9dbfaed6badc6a1d80c559b17e7c4d
|
checksum="
|
||||||
|
393a8a22b2e6370d0774a4a42c69fd47df9dbfaed6badc6a1d80c559b17e7c4d
|
||||||
fbdfc6f1966a972d19a215927266c76d4183eee235ed1e2bd7ec551c2a270eac"
|
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
|
nostrip=yes
|
||||||
wrksrc=Arduino-$version
|
wrksrc=Arduino-$version
|
||||||
|
|
||||||
do_build() {
|
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
|
mkdir -p build/linux/work/lib
|
||||||
cd ../astyle/build/gcc
|
cd ../astyle/build/gcc
|
||||||
make ${makejobs} java
|
make ${makejobs} java
|
||||||
|
|
Loading…
Reference in a new issue