mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
55 lines
1.8 KiB
Bash
55 lines
1.8 KiB
Bash
# Maintainer: BlackEagle <ike.devolder@gmail.com>>
|
|
|
|
# ALARM: Oleg Rakhmanov <oleg [at] archlinuxarm [dot] org>
|
|
# - Use CFLAGS, CXXFLAGS, CPPFLAGS, LDFLAGS from kodi-imx
|
|
# - Use -DLINUX flag to avoid "unrecognised platform" error
|
|
# - DUSE_LTO=0
|
|
# - Use -DOPENGL_INCLUDE_DIR=OPENGL_INCLUDE_DIR-NOTFOUND to disable OPENGL
|
|
# - Provide path to opengles{gl,egl} libraries for imx
|
|
|
|
buildarch=4
|
|
|
|
pkgname=kodi-imx-addon-visualization-shadertoy
|
|
_commit=e88fd6e
|
|
pkgver=20161121.e88fd6e
|
|
pkgrel=2
|
|
pkgdesc="Shadertoy visualizer for Kodi on imx platform"
|
|
arch=('armv7h')
|
|
url='https://github.com/notspiff/visualization.shadertoy'
|
|
license=('GPL')
|
|
groups=('kodi-imx-addons' 'kodi-imx-addons-visualization')
|
|
depends=('kodi-imx' 'p8-platform' 'imx-gpu-viv-fb')
|
|
makedepends=('git' 'cmake')
|
|
source=("$pkgname::git://github.com/notspiff/visualization.shadertoy.git#commit=$_commit")
|
|
sha256sums=('SKIP')
|
|
|
|
pkgver() {
|
|
cd "$pkgname"
|
|
git log -1 --date=short --format="%cd.%h" | tr -d '-'
|
|
}
|
|
|
|
build() {
|
|
cd "$pkgname"
|
|
|
|
CFLAGS="-DLINUX -Ofast -mfloat-abi=hard -mfpu=neon -mtls-dialect=gnu -march=armv7-a -mtune=cortex-a9 -pipe -fstack-protector --param=ssp-buffer-size=4 -I/opt/fsl/include"
|
|
CXXFLAGS="${CFLAGS}"
|
|
CPPFLAGS+=" -I/opt/fsl/include"
|
|
LDFLAGS+=" -Wl,-rpath,/opt/fsl/lib -L/opt/fsl/lib"
|
|
|
|
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_DIR=/opt/fsl/include \
|
|
-DOPENGLES2_gl_LIBRARY=/opt/fsl/lib/libGLESv2.so \
|
|
-DOPENGLES2_egl_LIBRARY=/opt/fsl/lib/libEGL.so
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$pkgname"
|
|
make DESTDIR="$pkgdir/" install
|
|
}
|
|
|