Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ################################################################################
- # This file is part of OpenELEC - http://www.openelec.tv
- # Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
- # Copyright (C) 2013 Peter Smorada (smoradap@gmail.com)
- #
- # This Program is free software; you can redistribute it and/or modify
- # it under the terms of the GNU General Public License as published by
- # the Free Software Foundation; either version 2, or (at your option)
- # any later version.
- #
- # This Program is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- # GNU General Public License for more details.
- #
- # You should have received a copy of the GNU General Public License
- # along with OpenELEC.tv; see the file COPYING. If not, write to
- # the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
- # http://www.gnu.org/copyleft/gpl.html
- ################################################################################
- PKG_NAME="wiringPi"
- PKG_VERSION="2.29"
- PKG_REV="1"
- PKG_ARCH="any"
- PKG_LICENSE="LGPL"
- PKG_SITE="http://wiringpi.com/"
- PKG_URL="https://www.dropbox.com/s/okceg3vmo13kyh4/$PKG_NAME-$PKG_VERSION.tar.gz"
- PKG_DEPENDS_TARGET="toolchain"
- PKG_PRIORITY="optional"
- PKG_SECTION="plugin/program"
- PKG_SHORTDESC="Arduino wiring-like library written in C for RaspberryPi."
- PKG_LONGDESC="Arduino wiring-like library written in C for RaspberryPi."
- PKG_IS_ADDON="yes"
- PKG_ADDON_TYPE="xbmc.python.script"
- PKG_ADDON_PROVIDES=""
- #PKG_ADDON_REPOVERSION="4.3"
- PKG_AUTORECONF="no"
- PKG_MAINTAINER="Alexander Pohl (a.h.pohl@gmail.com)"
- pre_configure_target() {
- export WIRINGPI_SUID=0
- export DESTDIR=$(pwd)/.install_pkg/usr
- }
- make_target() {
- CFLAGS="$CFLAGS -I../wiringPi -I../devLib"
- LDFLAGS="$LDFLAGS -L../wiringPi -L../devLib"
- echo "WiringPi Library"
- cd wiringPi
- make static CC=$CC CFLAGS="$CFLAGS"
- echo
- echo "WiringPi Devices Library"
- cd ../devLib
- make static CC=$CC CFLAGS="$CFLAGS"
- echo
- echo "GPIO Utility"
- cd ../gpio
- make CC=$CC CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
- cd ..
- }
- makeinstall_target() {
- : # nothing
- }
- addon() {
- mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/bin
- cp -P $PKG_BUILD/gpio/gpio $ADDON_BUILD/$PKG_ADDON_ID/bin/gpio
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement