29 lines
871 B
Makefile
Executable File
29 lines
871 B
Makefile
Executable File
#!/usr/bin/make -f
|
|
|
|
# Enable NEON for armhf builds
|
|
include /usr/share/dpkg/architecture.mk
|
|
ifeq ($(DEB_HOST_ARCH), armhf)
|
|
export DEB_CFLAGS_MAINT_APPEND = -mfpu=neon
|
|
export DEB_CXXFLAGS_MAINT_APPEND = -mfpu=neon
|
|
endif
|
|
|
|
%:
|
|
dh $@
|
|
|
|
override_dh_auto_build:
|
|
dh_auto_build --max-parallel=8
|
|
|
|
override_dh_auto_configure:
|
|
qmake6 PREFIX=/usr 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
|
|
|
|
override_dh_install:
|
|
dh_install
|
|
|
|
# Rename moonlight to moonlight-qt to avoid conflicting with moonlight-embedded
|
|
mv debian/moonlight-qt/usr/bin/moonlight debian/moonlight-qt/usr/bin/moonlight-qt
|
|
sed -i 's/Exec=moonlight/Exec=moonlight-qt/g' debian/moonlight-qt/usr/share/applications/com.moonlight_stream.Moonlight.desktop
|