Build RPi packages with GL Slow option
This commit is contained in:
3
debian/rules
vendored
3
debian/rules
vendored
@@ -3,6 +3,9 @@ export QT_SELECT := qt5
|
||||
%:
|
||||
dh $@
|
||||
|
||||
override_dh_auto_configure:
|
||||
qmake EXTRA_CONFIG moonlight-qt.pro
|
||||
|
||||
override_dh_shlibdeps:
|
||||
# Override package dependency error for /usr/lib/aarch64-linux-gnu/tegra/libnvbuf_utils.so
|
||||
dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
|
||||
|
||||
@@ -16,9 +16,11 @@ VERSION=`cat app/version.txt`
|
||||
if [ "$TARGET" == "rpi" ]; then
|
||||
EXTRA_BUILD_DEPS="libraspberrypi-dev | rbp-userland-dev-osmc"
|
||||
EXTRA_DEPS="libraspberrypi0 | rbp-userland-osmc"
|
||||
EXTRA_CONFIG="CONFIG+=glslow"
|
||||
elif [ "$TARGET" == "rpi64" ]; then
|
||||
EXTRA_BUILD_DEPS=""
|
||||
EXTRA_DEPS=""
|
||||
EXTRA_CONFIG="CONFIG+=glslow"
|
||||
elif [ "$TARGET" == "l4t" ]; then
|
||||
EXTRA_BUILD_DEPS=""
|
||||
elif [ "$TARGET" == "desktop" ]; then
|
||||
@@ -51,6 +53,10 @@ sed -i "s/EXTRA_BUILD_DEPS/$EXTRA_BUILD_DEPS/g" debian/control
|
||||
sed -i "s/EXTRA_DEPS/$EXTRA_DEPS/g" debian/control
|
||||
cat debian/control
|
||||
|
||||
# Patch the rules file with target-specific config options
|
||||
sed -i "s/EXTRA_CONFIG/$EXTRA_CONFIG/g" debian/rules
|
||||
cat debian/rules
|
||||
|
||||
# Build the package
|
||||
debuild -us -uc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user