summaryrefslogtreecommitdiff
path: root/recipes-ruby/ruby-serialport
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-ruby/ruby-serialport')
-rw-r--r--recipes-ruby/ruby-serialport/ruby-serialport_1.3.1.bb (renamed from recipes-ruby/ruby-serialport/ruby-serialport_1.1.0.bb)10
1 files changed, 6 insertions, 4 deletions
diff --git a/recipes-ruby/ruby-serialport/ruby-serialport_1.1.0.bb b/recipes-ruby/ruby-serialport/ruby-serialport_1.3.1.bb
index a020f90..d06be09 100644
--- a/recipes-ruby/ruby-serialport/ruby-serialport_1.1.0.bb
+++ b/recipes-ruby/ruby-serialport/ruby-serialport_1.3.1.bb
@@ -9,16 +9,18 @@ DEPENDS = "ruby"
PR = "r2"
-# tag v1.1.0
-SRCREV = "709e385f6d20aaadc7f3252af59250336d27e607"
+# tag v1.3.0
+SRCREV = "2781dbb1ffbf33d7c65478aa25dad5f954d0d3bf"
SRC_URI = "git://github.com/hparra/ruby-serialport.git;protocol=git"
S = "${WORKDIR}/git"
+B = "${S}"
do_compile() {
- ${CC} ${CFLAGS} ${LDFLAGS} -Iext/native -I${STAGING_INCDIR}/ruby-1.9.1 -I${STAGING_INCDIR}/ruby-1.9.1/arm-linux-eabi -c ext/native/*.c
- ${CC} ${CFLAGS} ${LDFLAGS} --shared -o ext/native/serialport.so serialport.o posix_serialport_impl.o
+ rp=$(ls -d ${STAGING_INCDIR}/ruby-* | head -1)
+ ${CC} -v ${CFLAGS} ${LDFLAGS} -Iext/native -I${rp} -I${rp}/arm-linux-gnueabi -c ext/native/*.c
+ ${CC} -v ${CFLAGS} ${LDFLAGS} --shared -o ext/native/serialport.so serialport.o posix_serialport_impl.o
}
do_install() {