Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

figlet: Fix manpage packaging #1410

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions makefiles/figlet.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,26 @@ endif

SUBPROJECTS += figlet
FIGLET_VERSION := 2.2.5
DEB_FIGLET_V ?= $(FIGLET_VERSION)
DEB_FIGLET_V ?= $(FIGLET_VERSION)-1

figlet-setup: setup
$(call DOWNLOAD_FILES,$(BUILD_SOURCE),ftp://ftp.figlet.org/pub/figlet/program/unix/figlet-$(FIGLET_VERSION).tar.gz)
$(call EXTRACT_TAR,figlet-$(FIGLET_VERSION).tar.gz,figlet-$(FIGLET_VERSION),figlet)
sed -i '/#include <stdio.h>/a #include <getopt.h>' $(BUILD_WORK)/figlet/figlet.c
sed -e "38s|man|share/man|" -e "s|prefix|PREFIX|g" -i $(BUILD_WORK)/figlet/Makefile

ifneq ($(wildcard $(BUILD_WORK)/figlet/.build_complete),)
figlet:
@echo "Using previously built figlet."
else
figlet: figlet-setup
+$(MAKE) -C $(BUILD_WORK)/figlet \
prefix="$(MEMO_PREFIX)$(MEMO_SUB_PREFIX)" \
CC="$(CC)" \
CFLAGS="$(CFLAGS)" \
LD="$(CC)" \
LDFLAGS="$(LDFLAGS)"
+$(MAKE) -C $(BUILD_WORK)/figlet install \
prefix="$(MEMO_PREFIX)$(MEMO_SUB_PREFIX)" \
PREFIX="$(MEMO_PREFIX)$(MEMO_SUB_PREFIX)" \
DESTDIR="$(BUILD_STAGE)/figlet"
$(call AFTER_BUILD)
endif
Expand Down