mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
Add alarm/kodi-rbp-addon-visualization-spectrum
This commit is contained in:
parent
19fcf9fd5e
commit
c1359aaf24
1 changed files with 56 additions and 0 deletions
56
alarm/kodi-rbp-addon-visualization-spectrum/PKGBUILD
Normal file
56
alarm/kodi-rbp-addon-visualization-spectrum/PKGBUILD
Normal file
|
@ -0,0 +1,56 @@
|
|||
# $Id: PKGBUILD 195229 2016-11-09 18:46:09Z idevolder $
|
||||
# Maintainer: BlackEagle <ike.devolder@gmail.com>>
|
||||
|
||||
# ALARM: Oleg Rakhmanov <oleg [at] archlinuxarm [dot] org>
|
||||
# - Use CFLAGS, CXXFLAGS, CPPFLAGS, LDFLAGS from kodi-rbp
|
||||
# - DUSE_LTO=0
|
||||
# - Use -DOPENGL_INCLUDE_DIR=OPENGL_INCLUDE_DIR-NOTFOUND to disable OPENGL
|
||||
# - Provide path to opengles{gl,egl} libraries for rpi
|
||||
|
||||
buildarch=20
|
||||
|
||||
pkgname=kodi-rbp-addon-visualization-spectrum
|
||||
_commit=73c8786
|
||||
pkgver=20161206.73c8786
|
||||
pkgrel=1
|
||||
pkgdesc="Spectrum visualizer for Kodi on raspberry pi"
|
||||
arch=('armv6h' 'armv7h')
|
||||
url='https://github.com/notspiff/visualization.spectrum'
|
||||
license=('GPL')
|
||||
groups=('kodi-rbp-addons' 'kodi-rbp-addons-visualization')
|
||||
depends=('kodi-rbp')
|
||||
makedepends=('git' 'cmake')
|
||||
source=("$pkgname::git://github.com/notspiff/visualization.spectrum.git#commit=$_commit")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd "$pkgname"
|
||||
git log -1 --date=short --format="%cd.%h" | tr -d '-'
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$pkgname"
|
||||
|
||||
FLAGS="-Ofast -fexcess-precision=fast -mfloat-abi=hard -mabi=aapcs-linux -pipe -fstack-protector --param=ssp-buffer-size=4\
|
||||
-I/opt/vc/include/ -I/opt/vc/include/IL -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
|
||||
[[ $CARCH == "armv6h" ]] && export CFLAGS="$FLAGS -mcpu=arm1176jzf-s -mtune=arm1176jzf-s -mfpu=vfp" && export CXXFLAGS="$FLAGS -mcpu=arm1176jzf-s -mtune=arm1176jzf-s -mfpu=vfp"
|
||||
[[ $CARCH == "armv7h" ]] && export CFLAGS="$FLAGS -mcpu=cortex-a7 -mtune=cortex-a7 -mfpu=neon-vfpv4 -mvectorize-with-neon-quad" && export CXXFLAGS="$FLAGS -mcpu=cortex-a7 -mtune=cortex-a7 -mfpu=neon-vfpv4 -mvectorize-with-neon-quad"
|
||||
|
||||
|
||||
cmake \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DBUILD_SHARED_LIBS=1 \
|
||||
-DUSE_LTO=0 \
|
||||
-DOPENGL_INCLUDE_DIR=OPENGL_INCLUDE_DIR-NOTFOUND \
|
||||
-DOPENGLES2_INCLUDE_DIRS=/opt/vc/include \
|
||||
-DOPENGLES2_gl_LIBRARY=/opt/vc/lib/libbrcmGLESv2.so \
|
||||
-DOPENGLES2_egl_LIBRARY=/opt/vc/lib/libbrcmEGL.so
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$pkgname"
|
||||
make DESTDIR="$pkgdir/" install
|
||||
}
|
||||
|
Loading…
Reference in a new issue