-
Notifications
You must be signed in to change notification settings - Fork 0
/
chafa.mk
31 lines (27 loc) · 1.01 KB
/
chafa.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# This file is part of MXE. See LICENSE.md for licensing information.
PKG := chafa
$(PKG)_WEBSITE := https://hpjansson.org/chafa/
$(PKG)_DESCR := The Chafa terminal graphics package
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.12.5
$(PKG)_CHECKSUM := 0f5490d52a500a6b386f15cc04c6e8702afd0285d422b9575b332e0c683957f2
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.xz
$(PKG)_URL := https://hpjansson.org/chafa/releases/$($(PKG)_FILE)
$(PKG)_DEPS := cc glib
define $(PKG)_UPDATE
$(WGET) -q -O- 'https://hpjansson.org/chafa/releases/' | \
$(SED) -n 's,.*chafa-\([0-9][^"]*\)\.tar.*,\1,p' | \
$(SORT) -rV | \
head -1
endef
define $(PKG)_BUILD
cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/configure' \
$(MXE_CONFIGURE_OPTS) \
--disable-gtk-doc \
--disable-man \
--without-tools \
--without-imagemagick
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' LDFLAGS='-no-undefined'
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
endef