2 # Copyright (C) 2006-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
10 PKG_CPE_ID
:=cpe
:/a
:gnu
:automake
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
14 PKG_SOURCE_URL
:=@GNU
/automake
15 PKG_HASH
:=af6ba39142220687c500f79b4aa2f181d9b24e4f8d8ec497cea4ba26c64bedaf
17 include $(INCLUDE_DIR
)/host-build.mk
19 HOST_CONFIGURE_ARGS
+= \
20 --datarootdir
=$(STAGING_DIR_HOST
)/share \
21 --disable-silent-rules
23 HOST_CONFIGURE_VARS
+= \
24 PERL
="/usr/bin/env perl" \
25 am_cv_prog_PERL_ithreads
=no
28 (cd
$(HOST_BUILD_DIR
); $(AM_TOOL_PATHS
) STAGING_DIR
="" .
/bootstrap
)
29 $(call Host
/Configure
/Default
)
33 # remove old automake resources to avoid version conflicts
34 rm -rf
$(STAGING_DIR_HOST
)/share
/aclocal-
[0-9]*
35 rm -rf
$(STAGING_DIR_HOST
)/share
/automake-
[0-9]*
36 $(MAKE
) -C
$(HOST_BUILD_DIR
) install
37 mv
$(STAGING_DIR_HOST
)/bin
/aclocal
$(STAGING_DIR_HOST
)/bin
/aclocal.real
38 $(INSTALL_BIN
) .
/files
/aclocal
$(STAGING_DIR_HOST
)/bin
39 ln
-sf aclocal
$(STAGING_DIR_HOST
)/bin
/aclocal-1.9
40 ln
-sf aclocal
$(STAGING_DIR_HOST
)/bin
/aclocal-1.10
41 ln
-sf aclocal
$(STAGING_DIR_HOST
)/bin
/aclocal-1.11
42 ln
-sf aclocal
$(STAGING_DIR_HOST
)/bin
/aclocal-1.11
.6
43 ln
-sf aclocal
$(STAGING_DIR_HOST
)/bin
/aclocal-1.15
47 -$(MAKE
) -C
$(HOST_BUILD_DIR
) uninstall
48 $(call Host
/Clean
/Default
)
51 $(eval
$(call HostBuild
))