extras/tools: Add help2man
authorHugo Beauzée-Luyssen <hugo@beauzee.fr>
Thu, 12 Jul 2018 18:16:46 +0000 (20:16 +0200)
committerHugo Beauzée-Luyssen <hugo@beauzee.fr>
Fri, 13 Jul 2018 09:55:05 +0000 (11:55 +0200)
Which is needed by libtool, and can't be disabled through configure
Building automake is enough, but there are cases where we don't want to
build automake but still build libtool

extras/tools/SHA512SUMS
extras/tools/bootstrap
extras/tools/packages.mak
extras/tools/tools.mak

index 566ff2b..d9dbc4c 100644 (file)
@@ -16,3 +16,4 @@ bbdc23e7772e49da1c7c47e66d4e4efbfbfe9b21dbc59bf3ad9a6e573eecac6c9f52c7f11a64be98
 e9785f3d620a204b7d20222888917dc065c2036cae28667065bf7862dfa1b25235095a12fd04efdbd09bfd17d3452e6b9ef953a8c1137862ff671c97132a082e  flex-2.6.4.tar.gz
 611e573756e3e936ce16b456df9583eb9acae51a0fbd28212444ddc0c1c5ec21e893d7a666bd77ef53423024939291a31dcf86d129126fa707b729d80b24184d  nasm-2.13.03.tar.gz
 073042fa2dc48804c58e76f036130a669e19612c25427b0ab14d0b366b549a63751bf3af03bfd0745d7c4f72497a4b2aab26a3cc6de83189ce111679073878e1  gettext-0.19.8.1.tar.gz
+d24849b93de58b20f518c071687e7bfa653a96600382f36c4cf7fc1047656458f75f093b911b786b18b6931b2453cb60868ecbe07cc7d2984e5981a874b34942  help2man-1.47.6.tar.xz
index 80c248b..72e5d2a 100755 (executable)
@@ -134,6 +134,7 @@ check bison 3.0.0
 check flex
 check_nasm 2.13.01
 check gettext
+check help2man
 
 [ -n "$NEEDED" ] && mkdir -p build/ && echo "To-be-built packages: `echo $NEEDED | sed 's/\.//g'`"
 
index b09f005..b7bb397 100644 (file)
@@ -56,3 +56,6 @@ FLEX_URL=https://github.com/westes/flex/releases/download/v$(FLEX_VERSION)/flex-
 
 GETTEXT_VERSION=0.19.8.1
 GETTEXT_URL=$(GNU)/gettext/gettext-$(GETTEXT_VERSION).tar.gz
+
+HELP2MAN_VERSION=1.47.6
+HELP2MAN_URL=$(GNU)/help2man/help2man-$(HELP2MAN_VERSION).tar.xz
index 1b8cb73..b7129bb 100644 (file)
@@ -92,6 +92,22 @@ CLEAN_FILE += .cmake
 CLEAN_PKG += cmake
 DISTCLEAN_PKG += cmake-$(CMAKE_VERSION).tar.gz
 
+# help2man
+help2man-$(HELP2MAN_VERSION).tar.xz:
+       $(call download_pkg,$(HELP2MAN_URL),help2man)
+
+help2man: help2man-$(HELP2MAN_VERSION).tar.xz
+       $(UNPACK)
+       $(MOVE)
+
+.help2man: help2man
+       (cd $<; ./configure --prefix=$(PREFIX) && $(MAKE) && $(MAKE) install)
+       touch $@
+
+CLEAN_FILE += .help2man
+CLEAN_PKG += help2man
+DISTCLEAN_PKG += help2man-$(HELP2MAN_VERSION).tar.xz
+
 # libtool
 
 libtool-$(LIBTOOL_VERSION).tar.gz:
@@ -104,7 +120,7 @@ libtool: libtool-$(LIBTOOL_VERSION).tar.gz
        $(APPLY) libtool-2.4.6-clang-libs.patch
        $(MOVE)
 
-.libtool: libtool .automake
+.libtool: libtool .automake .help2man
        (cd $<; ./configure --prefix=$(PREFIX) && $(MAKE) && $(MAKE) install)
        ln -sf libtool $(PREFIX)/bin/glibtool
        ln -sf libtoolize $(PREFIX)/bin/glibtoolize