Advertisement
Guest User

wiringPi openelec addon

a guest
Oct 17th, 2015
356
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 KB | None | 0 0
  1. ################################################################################
  2. # This file is part of OpenELEC - http://www.openelec.tv
  3. # Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
  4. # Copyright (C) 2013 Peter Smorada (smoradap@gmail.com)
  5. #
  6. # This Program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2, or (at your option)
  9. # any later version.
  10. #
  11. # This Program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with OpenELEC.tv; see the file COPYING. If not, write to
  18. # the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
  19. # http://www.gnu.org/copyleft/gpl.html
  20. ################################################################################
  21.  
  22. PKG_NAME="wiringPi"
  23. PKG_VERSION="2.29"
  24. PKG_REV="1"
  25. PKG_ARCH="any"
  26. PKG_LICENSE="LGPL"
  27. PKG_SITE="http://wiringpi.com/"
  28. PKG_URL="https://www.dropbox.com/s/okceg3vmo13kyh4/$PKG_NAME-$PKG_VERSION.tar.gz"
  29. PKG_DEPENDS_TARGET="toolchain"
  30. PKG_PRIORITY="optional"
  31. PKG_SECTION="plugin/program"
  32. PKG_SHORTDESC="Arduino wiring-like library written in C for RaspberryPi."
  33. PKG_LONGDESC="Arduino wiring-like library written in C for RaspberryPi."
  34. PKG_IS_ADDON="yes"
  35. PKG_ADDON_TYPE="xbmc.python.script"
  36. PKG_ADDON_PROVIDES=""
  37. #PKG_ADDON_REPOVERSION="4.3"
  38. PKG_AUTORECONF="no"
  39. PKG_MAINTAINER="Alexander Pohl (a.h.pohl@gmail.com)"
  40.  
  41. pre_configure_target() {
  42. export WIRINGPI_SUID=0
  43. export DESTDIR=$(pwd)/.install_pkg/usr
  44. }
  45.  
  46. make_target() {
  47. CFLAGS="$CFLAGS -I../wiringPi -I../devLib"
  48. LDFLAGS="$LDFLAGS -L../wiringPi -L../devLib"
  49.  
  50. echo "WiringPi Library"
  51. cd wiringPi
  52. make static CC=$CC CFLAGS="$CFLAGS"
  53.  
  54. echo
  55. echo "WiringPi Devices Library"
  56. cd ../devLib
  57. make static CC=$CC CFLAGS="$CFLAGS"
  58.  
  59. echo
  60. echo "GPIO Utility"
  61. cd ../gpio
  62. make CC=$CC CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
  63. cd ..
  64. }
  65.  
  66. makeinstall_target() {
  67. : # nothing
  68. }
  69.  
  70. addon() {
  71. mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/bin
  72. cp -P $PKG_BUILD/gpio/gpio $ADDON_BUILD/$PKG_ADDON_ID/bin/gpio
  73. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement