syncplay/GNUmakefile
Etoh eafd4b3ad0
Re-base action_windows to 1.6.9 (#451)
* Create pythonpackage.yml

* Update pythonpackage.yml

* Update pythonpackage.yml

* Update pythonpackage.yml

* Update pythonpackage.yml

* Update pythonpackage.yml

* Update pythonpackage.yml

* Update pythonpackage.yml

* Update pythonpackage.yml

* Update pythonpackage.yml

* Update pythonpackage.yml

* Update pythonpackage.yml

* Update pythonpackage.yml

* Update pythonpackage.yml

* Update pythonpackage.yml

* Do not show playback speed change notifications in OSD

* Upbuild and remove debug message

* Strip quotation marks from per-player arguments (#226)

* Delete unmaintained changelog.

Removing old and unmaintained changelog file.

* Add more MPC-HC paths (#398)

* Migrate from AppVeyor to GitHub Actions (#399)

* Disable AppVeyor

* Actions: disable other jobs

* Actions: implement windows job

* Use requirements

* Typo in version parser

* Replace type nul for PowerShell

* Change Python version to 3.7

* buildPy2exe: exclude tcl and tkinter

* buildPy2exe: rename zip archive to include extension

* Actions for Windows: build on Python 3.8

* Re-enable build flow for other platforms

* Remove AppVeyor configuration file

* Add manpages courtesy of Bruno Kleinert #387

* Install the manpages.

* Separate debian package artifacts

Make it so that server and full packages are separate artifacts in CI rather than single zip containing both.

* Fix server deb deployment name in CI workflow

* Fix package filename for debs

* Update mpv json ipc vendor code

Update to version 1.1.13 to hopefully address #322 fully.

* Update setup.py for vendor code of mpv jsonipc

* Build AppImage on Ubuntu 18.04

Temporary workaround for AppImage built on Ubuntu 20.04 crashing with segmentation fault. #401

* Update python_mpv_jsonipc to 1.1.13 keeping our changes

* Remove the AppVeyor badge as we stopped using it.

* Improve playlist advancement for VLC and mpv (#334) (#397)

* Advance playlist on end of file in mpv and VLC
* Update duration for streams to fix playlist advancement (#334)

* Add notice for Python in third party collection file (#404)

* Add notice for Python in third party collection file

* Convert third party notices file to plain text

* Adapt codebase to third party notices format change

* Mark as beta 1 (release 97)

* Mark as 1.6.8 final (build 98)

* Update pt_BR translation, fix typo (#422)

* Bundle libgthread-2.0.so.0 into AppImage

* add libxcb manually

* Add missing libxcb-util to build environment

* Enable GitHub Actions on pull requests

* Bundle libxcb1 into AppImage to fix #380

* Send 32-bit/64-bit context when updating

* Upver to 1.6.9 release 99

* Remove references to IRC (#430)

* Add reference to GitHub discussions

* Update issue templates

* Revert "Merge branch 'master' into master"

This reverts commit 173007e9b17c3cf7d658e12f1220bb1a3af743e6, reversing
changes made to 6105da870a4560c47ee54d7de21f2e1ccec1bcef.

Co-authored-by: Daniel Wróbel <wrobel.dan@gmail.com>
Co-authored-by: Alberto Sottile <alby128@gmail.com>
Co-authored-by: Daniel Wróbel <1662391+daniel-123@users.noreply.github.com>
Co-authored-by: Atílio Antônio <atiliodadalto@hotmail.com>
Co-authored-by: Teoh Han Hui <teohhanhui@gmail.com>
Co-authored-by: Alberto Sottile <asottile@gmail.com>
Co-authored-by: Assistant <assistant.moetron@gmail.com>
2021-08-02 20:46:30 +01:00

113 lines
3.5 KiB
Makefile

SINGLE_USER = false
ifeq ($(shell uname)),FreeBSD)
BSD = true
endif
ifeq ($(shell uname)),NetBSD)
BSD = true
endif
ifeq ($(shell uname)),OpenBSD)
BSD = true
endif
ifeq ($(shell uname)),DragonFly)
BSD = true
endif
ifeq ($(SINGLE_USER),false)
ifneq ($(BSD),true)
PREFIX ?= /usr
VLC_LIB_PATH = ${PREFIX}/lib
VLC_LIB_PATH64 = ${PREFIX}/lib/x86_64-linux-gnu
else
PREFIX ?= /usr/local
VLC_LIB_PATH = ${PREFIX}/lib
VLC_LIB_PATH64 = ${PREFIX}/lib
endif
else
PREFIX = ${HOME}/.local
VLC_LIB_PATH = ${HOME}/.local/share
VLC_LIB_PATH64 = ${HOME}/.local/share
endif
BIN_PATH = ${DESTDIR}${PREFIX}/bin
LIB_PATH = ${DESTDIR}${PREFIX}/lib
APP_SHORTCUT_PATH = ${DESTDIR}${PREFIX}/share/applications
SHARE_PATH = ${DESTDIR}${PREFIX}/share
common:
-mkdir -p $(LIB_PATH)/syncplay/syncplay/resources/lua/intf
-mkdir -p $(APP_SHORTCUT_PATH)
-mkdir -p $(SHARE_PATH)/pixmaps/
-mkdir -p $(SHARE_PATH)/icons/
-mkdir -p $(SHARE_PATH)/man/man1/
cp -r syncplay $(LIB_PATH)/syncplay/
chmod 755 $(LIB_PATH)/syncplay/
cp -r syncplay/resources/hicolor $(SHARE_PATH)/icons/
cp -r syncplay/resources/*.png $(LIB_PATH)/syncplay/syncplay/resources/
cp -r syncplay/resources/*.lua $(LIB_PATH)/syncplay/syncplay/resources/
cp -r syncplay/resources/lua/intf/*.lua $(LIB_PATH)/syncplay/syncplay/resources/lua/intf/
cp syncplay/resources/hicolor/128x128/apps/syncplay.png $(SHARE_PATH)/pixmaps/
u-common:
-rm -rf $(LIB_PATH)/syncplay
-rm $(SHARE_PATH)/icons/hicolor/*/apps/syncplay.png
-rm $(SHARE_PATH)/pixmaps/syncplay.png
-rm $(SHARE_PATH)/man/man1/syncplay.1.gz
client:
-mkdir -p $(BIN_PATH)
cp syncplayClient.py $(BIN_PATH)/syncplay
sed -i -e '/# libpath/ a\import site\nsite.addsitedir\("${PREFIX}/lib/syncplay"\)' $(BIN_PATH)/syncplay
chmod 755 $(BIN_PATH)/syncplay
cp syncplayClient.py $(LIB_PATH)/syncplay/
cp syncplay/resources/syncplay.desktop $(APP_SHORTCUT_PATH)/
gzip docs/syncplay.1 --stdout > $(SHARE_PATH)/man/man1/syncplay.1.gz
ifeq ($(SINGLE_USER),false)
chmod 755 $(APP_SHORTCUT_PATH)/syncplay.desktop
endif
u-client:
-rm $(BIN_PATH)/syncplay
-rm $(LIB_PATH)/syncplay/syncplayClient.py
-rm ${DESTDIR}$(VLC_LIB_PATH)/vlc/lua/intf/syncplay.lua
-rm ${DESTDIR}$(VLC_LIB_PATH64)/vlc/lua/intf/syncplay.lua
-rm $(APP_SHORTCUT_PATH)/syncplay.desktop
-rm $(SHARE_PATH)/man/man1/syncplay.1.gz
server:
-mkdir -p $(BIN_PATH)
cp syncplayServer.py $(BIN_PATH)/syncplay-server
sed -i -e '/# libpath/ a\import site\nsite.addsitedir\("${PREFIX}/lib/syncplay"\)' $(BIN_PATH)/syncplay-server
chmod 755 $(BIN_PATH)/syncplay-server
cp syncplayServer.py $(LIB_PATH)/syncplay/
cp syncplay/resources/syncplay-server.desktop $(APP_SHORTCUT_PATH)/
gzip docs/syncplay-server.1 --stdout > $(SHARE_PATH)/man/man1/syncplay-server.1.gz
ifeq ($(SINGLE_USER),false)
chmod 755 $(APP_SHORTCUT_PATH)/syncplay-server.desktop
endif
u-server:
-rm $(BIN_PATH)/syncplay-server
-rm $(LIB_PATH)/syncplay/syncplayServer.py
-rm $(APP_SHORTCUT_PATH)/syncplay-server.desktop
-rm $(SHARE_PATH)/man/man1/syncplay-server.1.gz
warnings:
ifeq ($(SINGLE_USER),true)
@echo -e "\n**********\n**********\n \nRemeber to add ${HOME}/.local/bin to your \$$PATH with 'echo \"export PATH=\$$PATH:${HOME}/.local/bin\" >> ${HOME}/.profile' \nThis will take effect after you logoff.\n \n**********\n**********\n"
endif
install-client: common client warnings
uninstall-client: u-client u-common
install-server: common server warnings
uninstall-server: u-server u-common
install: common client server warnings
uninstall: u-client u-server u-common