Builds utf8proc
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
||||
/prebuilt
|
||||
/libevent-*
|
||||
/ncurses-*
|
||||
/utf8proc-*
|
||||
|
||||
39
Makefile
39
Makefile
@@ -23,7 +23,15 @@ NCURSES_LIB = $(BUILD_PREBUILT_DEP)/lib/libncurses.a
|
||||
NCURSES_MAK = $(NCURSES)/Makefile
|
||||
NCURSES_A = $(NCURSES)/lib/libncurses.a
|
||||
|
||||
TMUX := tmux-$(TMUX_VERSION).musl-bin.tar.gz
|
||||
UTF8PROC = utf8proc-$(UTF8PROC_VERSION)
|
||||
UTF8PROC_TGZ = $(UTF8PROC).tar.gz
|
||||
UTF8PROC_URL = https://github.com/JuliaLang/utf8proc/archive/v$(UTF8PROC_VERSION).tar.gz
|
||||
UTF8PROC_LIB = $(BUILD_PREBUILT_DEP)/lib/utf8proc.a
|
||||
UTF8PROC_MAK = $(UTF8PROC)/build/Makefile
|
||||
UTF8PROC_A = $(UTF8PROC)/build/libutf8proc.a
|
||||
UTF8PROC_H = $(UTF8PROC)/utf8proc.h
|
||||
|
||||
TMUX := tmux-$(TMUX_VERSION).musl-bin.tar.gz
|
||||
|
||||
help: ## Display this help message
|
||||
@echo "Tmux: v$(TMUX_VERSION)"
|
||||
@@ -36,11 +44,38 @@ help: ## Display this help message
|
||||
$(lastword $(MAKEFILE_LIST))
|
||||
|
||||
clean: ## Remove all build and dist directories
|
||||
-rm -rf prebuilt $(LIBEVENT) $(NCURSES)
|
||||
-rm -rf prebuilt $(LIBEVENT) $(NCURSES) $(UTF8PROC)
|
||||
|
||||
tmux: ## Build static tmux archive
|
||||
$(MAKE) $(TMUX)
|
||||
|
||||
####
|
||||
#### UTF8Proc
|
||||
####
|
||||
utf8proc: ## Download and build the UTF8Proc library
|
||||
$(MAKE) $(UTF8PROC_LIB)
|
||||
|
||||
$(UTF8PROC_LIB): $(UTF8PROC_A) $(BUILD_PREBUILT_DEP)
|
||||
cp -v $(UTF8PROC_A) $(BUILD_PREBUILT_DEP)/lib
|
||||
cp -v $(UTF8PROC_H) $(BUILD_PREBUILT_DEP)/include
|
||||
|
||||
$(UTF8PROC_A): $(UTF8PROC_MAK)
|
||||
cd $(UTF8PROC)/build \
|
||||
&& cmake --build .
|
||||
|
||||
$(UTF8PROC_MAK): $(UTF8PROC)
|
||||
mkdir -p $(UTF8PROC)/build
|
||||
cd $(UTF8PROC)/build \
|
||||
&& cmake .. \
|
||||
-DCMAKE_INSTALL_PREFIX="$(BUILD_PREBUILT_DEP)" \
|
||||
-DBUILD_SHARED_LIBS=OFF
|
||||
|
||||
$(UTF8PROC): $(UTF8PROC_TGZ)
|
||||
tar xzf $(UTF8PROC_TGZ)
|
||||
|
||||
$(UTF8PROC_TGZ):
|
||||
curl -Lk $(UTF8PROC_URL) -o $@
|
||||
|
||||
####
|
||||
#### Ncurses
|
||||
####
|
||||
|
||||
Reference in New Issue
Block a user