From df65d2972a45c0b9ed597f1aa76eab33078ebebe Mon Sep 17 00:00:00 2001 From: chrox Date: Fri, 15 Apr 2016 01:18:19 +0800 Subject: [PATCH] experimental port to Mac OSX Currently it can open cre-based docs and Djvu docs It still has some problems with PDF docs and the touch input. --- .editorconfig | 4 ++++ .gitignore | 1 + Makefile | 6 +++--- README.md | 14 ++++++++++---- base | 2 +- 5 files changed, 19 insertions(+), 8 deletions(-) diff --git a/.editorconfig b/.editorconfig index 904eab0e8..3db0a7dde 100644 --- a/.editorconfig +++ b/.editorconfig @@ -18,6 +18,10 @@ trim_trailing_whitespace = false indent_style = tab indent_size = 8 +[Makefile.def] +indent_style = tab +indent_size = 4 + [*.{js,css,scss,sass,html,handlebars,tpl}] indent_style = space indent_size = 2 diff --git a/.gitignore b/.gitignore index 8eeaa94e4..9bd3f9bea 100644 --- a/.gitignore +++ b/.gitignore @@ -37,5 +37,6 @@ koreader-kobo-arm-linux-gnueabihf* koreader-emulator-i686-w64-mingw32 koreader-emulator-x86_64-linux-gnu koreader-emulator-x86_64-pc-linux-gnu +koreader-emulator-x86_64-apple-darwin* koreader-pocketbook-arm-obreey-linux-gnueabi koreader-ubuntu-touch-arm-linux-gnueabihf diff --git a/Makefile b/Makefile index e24910c12..c94379363 100644 --- a/Makefile +++ b/Makefile @@ -63,7 +63,7 @@ ifneq ($(or $(EMULATE_READER),$(WIN32)),) cd $(INSTALL_DIR)/koreader/spec/front/unit && test -e data || \ ln -sf ../../test ./data else - cp -rfL $(KOR_BASE)/$(OUTPUT_DIR)/* $(INSTALL_DIR)/koreader/ + $(RCP) -fL $(KOR_BASE)/$(OUTPUT_DIR)/* $(INSTALL_DIR)/koreader/ endif for f in $(INSTALL_FILES); do \ ln -sf ../../$$f $(INSTALL_DIR)/koreader/; \ @@ -77,9 +77,9 @@ ifdef WIN32 cd $(INSTALL_DIR)/koreader && cp ../../$(WIN32_DIR)/*.dll . endif @echo "[*] Install plugins" - cp -r plugins/* $(INSTALL_DIR)/koreader/plugins/ + $(RCP) plugins/* $(INSTALL_DIR)/koreader/plugins/ @echo "[*] Installresources" - cp -rpL resources/fonts/* $(INSTALL_DIR)/koreader/fonts/ + $(RCP) -pL resources/fonts/* $(INSTALL_DIR)/koreader/fonts/ install -d $(INSTALL_DIR)/koreader/{screenshots,data/{dict,tessdata},fonts/host,ota} ifeq ($(or $(EMULATE_READER),$(WIN32)),) @echo "[*] Clean up, remove unused files for releases" diff --git a/README.md b/README.md index 540b4fc94..08108ee48 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,9 @@ KOReader KOReader is a document viewer application, originally created for Kindle e-ink readers. It currently runs on Kindle, Kobo, PocketBook, Ubuntu Touch -and Android (2.3+) devices. Developers can also run Koreader emulator -for development purpose on desktop PC with Linux and Windows operating system. +and Android (2.3+) devices. Developers can also run KOReader emulator +for development purpose on desktop PC with Linux and Windows and +Mac OSX (experimental for now). Main features for users ----------------------- @@ -91,6 +92,11 @@ sudo apt-get install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf sudo apt-get install gcc-mingw-w64-i686 g++-mingw-w64-i686 ``` +Mac OSX users may need to install these tools: +``` +brew install gcc48 nasm binutils libtool autoconf automake sdl2 +``` + A recent version of Android SDK/NDK and `ant` are needed in order to build Koreader for Android devices. ``` @@ -155,10 +161,10 @@ Then, run this command to build installable package for Android: ./kodev release android ``` -For emulating KOReader on Linux and Windows +For emulating KOReader on Linux, Windows and Mac OSX ------------- -To build an emulator on current Linux machine just run: +To build an emulator on current Linux or OSX machine: ``` ./kodev build ``` diff --git a/base b/base index 02c4e24e7..afaf36bc7 160000 --- a/base +++ b/base @@ -1 +1 @@ -Subproject commit 02c4e24e732f4d7009b71c763dbaa503c40365a1 +Subproject commit afaf36bc7aba673a6c4ec8159f79ed8f5d9996ec