hyperion: unify rpi build options, fix linker paths
This commit is contained in:
parent
268425a292
commit
a7e0818d14
1 changed files with 8 additions and 4 deletions
|
@ -6,9 +6,10 @@ build_style=cmake
|
|||
configure_args="-DUSE_SYSTEM_PROTO_LIBS=ON -DENABLE_QT5=ON
|
||||
-DPROTOBUF_PROTOC_EXECUTABLE=/usr/bin/protoc -DENABLE_AMLOGIC=ON
|
||||
-DENABLE_X11=ON -DENABLE_SPIDEV=ON -DQT_PREFIX=${XBPS_CROSS_BASE}/usr
|
||||
$(vopt_if dispmanx -DENABLE_DISPMANX=ON -DENABLE_FB=ON)"
|
||||
$(vopt_if rpi -DENABLE_DISPMANX=ON -DENABLE_FB=ON)"
|
||||
hostmakedepends="protobuf qt5-host-tools qt5-qmake"
|
||||
makedepends="libusb-devel protobuf-devel python3-devel qt5-devel $(vopt_if dispmanx rpi-userland-devel)"
|
||||
makedepends="libusb-devel protobuf-devel python3-devel qt5-devel
|
||||
$(vopt_if rpi rpi-userland-devel)"
|
||||
short_desc="Ambient Lighting Software"
|
||||
maintainer="Christian Buschau <christian.buschau@mailbox.org>"
|
||||
license="MIT"
|
||||
|
@ -17,8 +18,11 @@ distfiles="https://github.com/hyperion-project/hyperion/archive/${version}.tar.g
|
|||
checksum=aa2e226f1fe035166379eefef00bf389b36da514739fa24a3608b2ef44fc7b18
|
||||
conf_files="/etc/hyperion/hyperion.config.json"
|
||||
|
||||
build_options="dispmanx"
|
||||
desc_option_dispmanx="Enable the RPI dispmanx grabber (disables FB grabber)"
|
||||
build_options="rpi"
|
||||
|
||||
if [ "$build_option_rpi" ]; then
|
||||
LDFLAGS="-L${XBPS_CROSS_BASE}/opt/vc/lib -Wl,-rpath=/opt/vc/lib"
|
||||
fi
|
||||
|
||||
post_install() {
|
||||
vinstall config/hyperion.config.json.example 0644 etc/hyperion hyperion.config.json
|
||||
|
|
Loading…
Reference in a new issue