2 # Copyright (C) 2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE_URL
:=@GNU
/autoconf
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
16 PKG_HASH
:=fa9e227860d9d845c0a07f63b88c8d7a2ae1aa2345fb619384bb8accc19fecc6
18 PKG_MAINTAINER
:=Heinrich Schuchardt
<xypron.glpk@gmx.de
>
19 PKG_LICENSE
:=GPL-3.0
-or-later
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/autoconf
30 URL
:=https
://www.gnu.org
/software
/autoconf
/
31 DEPENDS
:=+m4
+perl
+perlbase-data
+perlbase-file
+perlbase-getopt \
32 +perlbase-dynaloader
+perlbase-text
35 define Package
/autoconf
/description
36 Autoconf is an extensible package of M4 macros that produce
shell scripts to
37 automatically configure software source code packages.
40 CONFIGURE_VARS
+= M4
=m4 EMACS
=no
42 FIX_PATHS
= $(SED
) '1c \#!/usr/bin/perl' -e
's| /[^ ]*/bin/perl| /usr/bin/perl|g'
44 define Package
/autoconf
/install
45 $(INSTALL_DIR
) $(1)/usr
/bin
46 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
/
47 grep
-rEl
"#\!.*perl" $(1)/usr
/bin
/ | xargs
$(FIX_PATHS
)
48 $(INSTALL_DIR
) $(1)/usr
/share
/autoconf
49 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/share
/autoconf
/INSTALL \
50 $(1)/usr
/share
/autoconf
/
51 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/share
/autoconf
/autom4te.cfg \
52 $(1)/usr
/share
/autoconf
/
53 $(INSTALL_DIR
) $(1)/usr
/share
/autoconf
/Autom4te
54 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/share
/autoconf
/Autom4te
/* \
55 $(1)/usr
/share
/autoconf
/Autom4te
/
56 $(INSTALL_DIR
) $(1)/usr
/share
/autoconf
/autoconf
57 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/share
/autoconf
/autoconf
/* \
58 $(1)/usr
/share
/autoconf
/autoconf
/
59 $(INSTALL_DIR
) $(1)/usr
/share
/autoconf
/autoscan
60 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/share
/autoconf
/autoscan
/* \
61 $(1)/usr
/share
/autoconf
/autoscan
/
62 $(INSTALL_DIR
) $(1)/usr
/share
/autoconf
/autotest
63 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/share
/autoconf
/autotest
/* \
64 $(1)/usr
/share
/autoconf
/autotest
/
65 $(INSTALL_DIR
) $(1)/usr
/share
/autoconf
/m4sugar
66 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/share
/autoconf
/m4sugar
/* \
67 $(1)/usr
/share
/autoconf
/m4sugar
/
70 $(eval
$(call BuildPackage
,autoconf
))