From be7063cfd5e5d0973daf36b4b877953a90328710 Mon Sep 17 00:00:00 2001 From: q3aql Date: Wed, 1 Nov 2023 21:00:33 +0100 Subject: [PATCH] Add Makefile for MacOS Homebrew --- Makefile.macbrew | 93 ++++++++++++++++++++++++++++++++++++++++++++ Makefile.macbrew.arm | 93 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 186 insertions(+) create mode 100755 Makefile.macbrew create mode 100755 Makefile.macbrew.arm diff --git a/Makefile.macbrew b/Makefile.macbrew new file mode 100755 index 0000000..5a8857f --- /dev/null +++ b/Makefile.macbrew @@ -0,0 +1,93 @@ +################################################# +# Installing ks-tools (Linux Homebrew) # +################################################# + +PREFIX=/usr/local + +install: + cp -rf src/ks-upv $(PREFIX)/bin/ks-upv + chmod +x $(PREFIX)/bin/ks-upv + cp -rf src/ks-upa $(PREFIX)/bin/ks-upa + chmod +x $(PREFIX)/bin/ks-upa + cp -rf src/ks-upf $(PREFIX)/bin/ks-upf + chmod +x $(PREFIX)/bin/ks-upf + cp -rf src/ks-upr $(PREFIX)/bin/ks-upr + chmod +x $(PREFIX)/bin/ks-upr + cp -rf src/ks-avi $(PREFIX)/bin/ks-avi + chmod +x $(PREFIX)/bin/ks-avi + cp -rf src/ks-mp4 $(PREFIX)/bin/ks-mp4 + chmod +x $(PREFIX)/bin/ks-mp4 + cp -rf src/ks-mp4k $(PREFIX)/bin/ks-mp4k + chmod +x $(PREFIX)/bin/ks-mp4k + cp -rf src/ks-mp4s $(PREFIX)/bin/ks-mp4s + chmod +x $(PREFIX)/bin/ks-mp4s + cp -rf src/ks-mp4s-folder $(PREFIX)/bin/ks-mp4s-folder + chmod +x $(PREFIX)/bin/ks-mp4s-folder + cp -rf src/ks-av1s-folder $(PREFIX)/bin/ks-av1s-folder + chmod +x $(PREFIX)/bin/ks-av1s-folder + cp -rf src/ks-vob $(PREFIX)/bin/ks-vob + chmod +x $(PREFIX)/bin/ks-vob + cp -rf src/ks-av1 $(PREFIX)/bin/ks-av1 + chmod +x $(PREFIX)/bin/ks-av1 + cp -rf src/ks-av1s $(PREFIX)/bin/ks-av1s + chmod +x $(PREFIX)/bin/ks-av1s + cp -rf src/ks-oga $(PREFIX)/bin/ks-oga + chmod +x $(PREFIX)/bin/ks-oga + cp -rf src/ks-mp3 $(PREFIX)/bin/ks-mp3 + chmod +x $(PREFIX)/bin/ks-mp3 + cp -rf src/ks-oga-album $(PREFIX)/bin/ks-oga-album + chmod +x $(PREFIX)/bin/ks-oga-album + cp -rf src/ks-mp3-album $(PREFIX)/bin/ks-mp3-album + chmod +x $(PREFIX)/bin/ks-mp3-album + cp -rf src/ks-mix $(PREFIX)/bin/ks-mix + chmod +x $(PREFIX)/bin/ks-mix + cp -rf src/ks-crop $(PREFIX)/bin/ks-crop + chmod +x $(PREFIX)/bin/ks-crop + cp -rf src/ks-conf $(PREFIX)/bin/ks-conf + chmod +x $(PREFIX)/bin/ks-conf + cp -rf wrapper/ks-mp4-wrapper $(PREFIX)/bin/ks-mp4-wrapper + chmod +x $(PREFIX)/bin/ks-mp4-wrapper + cp -rf wrapper/ks-mp4k-wrapper $(PREFIX)/bin/ks-mp4k-wrapper + chmod +x $(PREFIX)/bin/ks-mp4k-wrapper + cp -rf wrapper/ks-mp4s-wrapper $(PREFIX)/bin/ks-mp4s-wrapper + chmod +x $(PREFIX)/bin/ks-mp4s-wrapper + cp -rf wrapper/ks-avi-wrapper $(PREFIX)/bin/ks-avi-wrapper + chmod +x $(PREFIX)/bin/ks-avi-wrapper + cp -rf wrapper/ks-vob-wrapper $(PREFIX)/bin/ks-vob-wrapper + chmod +x $(PREFIX)/bin/ks-vob-wrapper + cp -rf wrapper/ks-av1-wrapper $(PREFIX)/bin/ks-av1-wrapper + chmod +x $(PREFIX)/bin/ks-av1-wrapper + cp -rf wrapper/ks-av1s-wrapper $(PREFIX)/bin/ks-av1s-wrapper + chmod +x $(PREFIX)/bin/ks-av1s-wrapper + cp -rf cygwin/cygwin-path $(PREFIX)/bin/cygwin-path + chmod +x $(PREFIX)/bin/cygwin-path + +uninstall: + rm -rf $(PREFIX)/bin/ks-upv + rm -rf $(PREFIX)/bin/ks-upa + rm -rf $(PREFIX)/bin/ks-upf + rm -rf $(PREFIX)/bin/ks-upr + rm -rf $(PREFIX)/bin/ks-avi + rm -rf $(PREFIX)/bin/ks-mp4 + rm -rf $(PREFIX)/bin/ks-mp4k + rm -rf $(PREFIX)/bin/ks-mp4s + rm -rf $(PREFIX)/bin/ks-mp4s-folder + rm -rf $(PREFIX)/bin/ks-av1s-folder + rm -rf $(PREFIX)/bin/ks-vob + rm -rf $(PREFIX)/bin/ks-av1 + rm -rf $(PREFIX)/bin/ks-av1s + rm -rf $(PREFIX)/bin/ks-oga + rm -rf $(PREFIX)/bin/ks-oga-album + rm -rf $(PREFIX)/bin/ks-mp3 + rm -rf $(PREFIX)/bin/ks-mp3-album + rm -rf $(PREFIX)/bin/ks-mix + rm -rf $(PREFIX)/bin/ks-crop + rm -rf $(PREFIX)/bin/ks-conf + rm -rf $(PREFIX)/bin/ks-mp4-wrapper + rm -rf $(PREFIX)/bin/ks-mp4k-wrapper + rm -rf $(PREFIX)/bin/ks-mp4s-wrapper + rm -rf $(PREFIX)/bin/ks-avi-wrapper + rm -rf $(PREFIX)/bin/ks-vob-wrapper + rm -rf $(PREFIX)/bin/ks-av1-wrapper + rm -rf $(PREFIX)/bin/ks-av1s-wrapper + rm -rf $(PREFIX)/bin/cygwin-path diff --git a/Makefile.macbrew.arm b/Makefile.macbrew.arm new file mode 100755 index 0000000..3f70e0c --- /dev/null +++ b/Makefile.macbrew.arm @@ -0,0 +1,93 @@ +################################################# +# Installing ks-tools (Linux Homebrew) # +################################################# + +PREFIX=/opt/homebrew + +install: + cp -rf src/ks-upv $(PREFIX)/bin/ks-upv + chmod +x $(PREFIX)/bin/ks-upv + cp -rf src/ks-upa $(PREFIX)/bin/ks-upa + chmod +x $(PREFIX)/bin/ks-upa + cp -rf src/ks-upf $(PREFIX)/bin/ks-upf + chmod +x $(PREFIX)/bin/ks-upf + cp -rf src/ks-upr $(PREFIX)/bin/ks-upr + chmod +x $(PREFIX)/bin/ks-upr + cp -rf src/ks-avi $(PREFIX)/bin/ks-avi + chmod +x $(PREFIX)/bin/ks-avi + cp -rf src/ks-mp4 $(PREFIX)/bin/ks-mp4 + chmod +x $(PREFIX)/bin/ks-mp4 + cp -rf src/ks-mp4k $(PREFIX)/bin/ks-mp4k + chmod +x $(PREFIX)/bin/ks-mp4k + cp -rf src/ks-mp4s $(PREFIX)/bin/ks-mp4s + chmod +x $(PREFIX)/bin/ks-mp4s + cp -rf src/ks-mp4s-folder $(PREFIX)/bin/ks-mp4s-folder + chmod +x $(PREFIX)/bin/ks-mp4s-folder + cp -rf src/ks-av1s-folder $(PREFIX)/bin/ks-av1s-folder + chmod +x $(PREFIX)/bin/ks-av1s-folder + cp -rf src/ks-vob $(PREFIX)/bin/ks-vob + chmod +x $(PREFIX)/bin/ks-vob + cp -rf src/ks-av1 $(PREFIX)/bin/ks-av1 + chmod +x $(PREFIX)/bin/ks-av1 + cp -rf src/ks-av1s $(PREFIX)/bin/ks-av1s + chmod +x $(PREFIX)/bin/ks-av1s + cp -rf src/ks-oga $(PREFIX)/bin/ks-oga + chmod +x $(PREFIX)/bin/ks-oga + cp -rf src/ks-mp3 $(PREFIX)/bin/ks-mp3 + chmod +x $(PREFIX)/bin/ks-mp3 + cp -rf src/ks-oga-album $(PREFIX)/bin/ks-oga-album + chmod +x $(PREFIX)/bin/ks-oga-album + cp -rf src/ks-mp3-album $(PREFIX)/bin/ks-mp3-album + chmod +x $(PREFIX)/bin/ks-mp3-album + cp -rf src/ks-mix $(PREFIX)/bin/ks-mix + chmod +x $(PREFIX)/bin/ks-mix + cp -rf src/ks-crop $(PREFIX)/bin/ks-crop + chmod +x $(PREFIX)/bin/ks-crop + cp -rf src/ks-conf $(PREFIX)/bin/ks-conf + chmod +x $(PREFIX)/bin/ks-conf + cp -rf wrapper/ks-mp4-wrapper $(PREFIX)/bin/ks-mp4-wrapper + chmod +x $(PREFIX)/bin/ks-mp4-wrapper + cp -rf wrapper/ks-mp4k-wrapper $(PREFIX)/bin/ks-mp4k-wrapper + chmod +x $(PREFIX)/bin/ks-mp4k-wrapper + cp -rf wrapper/ks-mp4s-wrapper $(PREFIX)/bin/ks-mp4s-wrapper + chmod +x $(PREFIX)/bin/ks-mp4s-wrapper + cp -rf wrapper/ks-avi-wrapper $(PREFIX)/bin/ks-avi-wrapper + chmod +x $(PREFIX)/bin/ks-avi-wrapper + cp -rf wrapper/ks-vob-wrapper $(PREFIX)/bin/ks-vob-wrapper + chmod +x $(PREFIX)/bin/ks-vob-wrapper + cp -rf wrapper/ks-av1-wrapper $(PREFIX)/bin/ks-av1-wrapper + chmod +x $(PREFIX)/bin/ks-av1-wrapper + cp -rf wrapper/ks-av1s-wrapper $(PREFIX)/bin/ks-av1s-wrapper + chmod +x $(PREFIX)/bin/ks-av1s-wrapper + cp -rf cygwin/cygwin-path $(PREFIX)/bin/cygwin-path + chmod +x $(PREFIX)/bin/cygwin-path + +uninstall: + rm -rf $(PREFIX)/bin/ks-upv + rm -rf $(PREFIX)/bin/ks-upa + rm -rf $(PREFIX)/bin/ks-upf + rm -rf $(PREFIX)/bin/ks-upr + rm -rf $(PREFIX)/bin/ks-avi + rm -rf $(PREFIX)/bin/ks-mp4 + rm -rf $(PREFIX)/bin/ks-mp4k + rm -rf $(PREFIX)/bin/ks-mp4s + rm -rf $(PREFIX)/bin/ks-mp4s-folder + rm -rf $(PREFIX)/bin/ks-av1s-folder + rm -rf $(PREFIX)/bin/ks-vob + rm -rf $(PREFIX)/bin/ks-av1 + rm -rf $(PREFIX)/bin/ks-av1s + rm -rf $(PREFIX)/bin/ks-oga + rm -rf $(PREFIX)/bin/ks-oga-album + rm -rf $(PREFIX)/bin/ks-mp3 + rm -rf $(PREFIX)/bin/ks-mp3-album + rm -rf $(PREFIX)/bin/ks-mix + rm -rf $(PREFIX)/bin/ks-crop + rm -rf $(PREFIX)/bin/ks-conf + rm -rf $(PREFIX)/bin/ks-mp4-wrapper + rm -rf $(PREFIX)/bin/ks-mp4k-wrapper + rm -rf $(PREFIX)/bin/ks-mp4s-wrapper + rm -rf $(PREFIX)/bin/ks-avi-wrapper + rm -rf $(PREFIX)/bin/ks-vob-wrapper + rm -rf $(PREFIX)/bin/ks-av1-wrapper + rm -rf $(PREFIX)/bin/ks-av1s-wrapper + rm -rf $(PREFIX)/bin/cygwin-path