Commit c1cdd915 authored by Rafaël Carré's avatar Rafaël Carré

extras/tools: set AUTOCONF variable so automake can find it

use $(AUTOCONF) to make pkg-config, add dependancy on autoconf
parent bdd6d7ca
......@@ -8,6 +8,9 @@ include packages.mak
# common rules
#
AUTOCONF=$(PREFIX)/bin/autoconf
export AUTOCONF
ifeq ($(shell curl --version >/dev/null 2>&1 || echo FAIL),)
download = curl -f -L -- "$(1)" > "$@"
else ifeq ($(shell wget --version >/dev/null 2>&1 || echo FAIL),)
......@@ -159,10 +162,10 @@ DISTCLEAN_PKG += automake-$(AUTOMAKE_VERSION).tar.gz
pkg-config-$(PKGCFG_VERSION).tar.gz:
$(download) $(PKGCFG_URL)
pkgconfig: pkg-config-$(PKGCFG_VERSION).tar.gz
pkgconfig: pkg-config-$(PKGCFG_VERSION).tar.gz .autoconf
$(UNPACK)
$(MOVE)
(cd $@; autoconf)
(cd $@; $(AUTOCONF))
.pkg-config: pkgconfig
(cd pkgconfig; ./configure --prefix=$(PREFIX) --disable-shared --enable-static && make && make install)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment