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
12 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
13 PKG_SOURCE_URL
:=@GNU
/automake
14 PKG_MD5SUM
:=9a1ddb0e053474d9d1105cfe39b0c48d
16 include $(INCLUDE_DIR
)/host-build.mk
18 HOST_CONFIGURE_ARGS
+= \
19 --datarootdir
=$(STAGING_DIR_HOST
)/share \
20 --disable-silent-rules
22 HOST_CONFIGURE_VARS
+= am_cv_prog_PERL_ithreads
=no
25 (cd
$(HOST_BUILD_DIR
); $(AM_TOOL_PATHS
) STAGING_DIR
="" .
/bootstrap.sh
)
26 $(call Host
/Configure
/Default
)
30 # remove old automake resources to avoid version conflicts
31 rm -rf
$(STAGING_DIR_HOST
)/share
/aclocal-
[0-9]*
32 rm -rf
$(STAGING_DIR_HOST
)/share
/automake-
[0-9]*
33 $(MAKE
) -C
$(HOST_BUILD_DIR
) install
34 mv
$(STAGING_DIR_HOST
)/bin
/aclocal
$(STAGING_DIR_HOST
)/bin
/aclocal.real
35 $(INSTALL_BIN
) .
/files
/aclocal
$(STAGING_DIR_HOST
)/bin
36 ln
-sf aclocal
$(STAGING_DIR_HOST
)/bin
/aclocal-1.9
37 ln
-sf aclocal
$(STAGING_DIR_HOST
)/bin
/aclocal-1.10
38 ln
-sf aclocal
$(STAGING_DIR_HOST
)/bin
/aclocal-1.11
39 ln
-sf aclocal
$(STAGING_DIR_HOST
)/bin
/aclocal-1.11
.6
40 ln
-sf aclocal
$(STAGING_DIR_HOST
)/bin
/aclocal-1.15
44 -$(MAKE
) -C
$(HOST_BUILD_DIR
) uninstall
45 $(call Host
/Clean
/Default
)
48 $(eval
$(call HostBuild
))