mirror of
https://github.com/Syncplay/syncplay
synced 2025-01-24 07:42:46 +00:00
Made installing VLC support optional
This commit is contained in:
parent
53c730c715
commit
d64d74eecf
13
Makefile
13
Makefile
@ -1,5 +1,9 @@
|
|||||||
SINGLE_USER = false
|
SINGLE_USER = false
|
||||||
|
|
||||||
|
ifndef VLC_SUPPORT
|
||||||
|
VLC_SUPPORT = false
|
||||||
|
endif
|
||||||
|
|
||||||
BASE_PATH = /usr
|
BASE_PATH = /usr
|
||||||
LOCAL_PATH = ~/.local
|
LOCAL_PATH = ~/.local
|
||||||
|
|
||||||
@ -34,14 +38,17 @@ client:
|
|||||||
echo '#!/bin/sh\npython -OO $(LIB_PATH)/syncplay/syncplayClient.py "$$@"' > $(BIN_PATH)/syncplay
|
echo '#!/bin/sh\npython -OO $(LIB_PATH)/syncplay/syncplayClient.py "$$@"' > $(BIN_PATH)/syncplay
|
||||||
chmod a+x $(BIN_PATH)/syncplay
|
chmod a+x $(BIN_PATH)/syncplay
|
||||||
cp syncplayClient.py $(LIB_PATH)/syncplay/
|
cp syncplayClient.py $(LIB_PATH)/syncplay/
|
||||||
-mkdir -p $(SHARE_PATH)/vlc/lua/intf/
|
|
||||||
cp resources/syncplay.lua $(SHARE_PATH)/vlc/lua/intf/
|
|
||||||
cp resources/syncplay.desktop $(APP_SHORTCUT_PATH)/
|
cp resources/syncplay.desktop $(APP_SHORTCUT_PATH)/
|
||||||
|
|
||||||
|
ifeq ($(VLC_SUPPORT),true)
|
||||||
|
-mkdir -p $(LIB_PATH)/vlc/lua/intf/
|
||||||
|
cp resources/syncplay.lua $(LIB_PATH)/vlc/lua/intf/
|
||||||
|
endif
|
||||||
|
|
||||||
u-client:
|
u-client:
|
||||||
-rm $(BIN_PATH)/syncplay
|
-rm $(BIN_PATH)/syncplay
|
||||||
-rm $(LIB_PATH)/syncplay/syncplayClient.py
|
-rm $(LIB_PATH)/syncplay/syncplayClient.py
|
||||||
-rm $(SHARE_PATH)/vlc/lua/intf/syncplay.lua
|
-rm $(LIB_PATH)/vlc/lua/intf/syncplay.lua
|
||||||
-rm $(APP_SHORTCUT_PATH)/syncplay.desktop
|
-rm $(APP_SHORTCUT_PATH)/syncplay.desktop
|
||||||
|
|
||||||
server:
|
server:
|
||||||
|
Loading…
Reference in New Issue
Block a user