2 # Copyright (C) 2015-2016 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
/automake
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
16 PKG_HASH
:=ccc459de3d710e066ab9e12d2f119bd164a08c9341ca24ba22c9adaa179eedd0
18 PKG_MAINTAINER
:=Heinrich Schuchardt
<xypron.glpk@gmx.de
>
19 PKG_LICENSE
:=GPL-3.0
-or-later
20 PKG_CPE_ID
:=cpe
:/a
:gnu
:automake
25 include $(INCLUDE_DIR
)/package.mk
27 define Package
/automake
31 URL
:=https
://www.gnu.org
/software
/automake
/
32 DEPENDS
:=+autoconf
+perlbase-thread
+perlbase-attributes
35 define Package
/automake
/description
36 Automake is a tool for automatically generating Makefile.in files compliant
37 with the GNU Coding Standards.
40 FIX_PATHS
= $(SED
) '1c \#!/usr/bin/perl' -e
's| /[^ ]*/bin/perl| /usr/bin/perl|g'
42 AM_VERSION
:=$(word 1,$(subst .
, ,$(PKG_VERSION
))).
$(word 2,$(subst .
, ,$(PKG_VERSION
)))
44 define Package
/automake
/install
45 $(INSTALL_DIR
) $(1)/usr
/bin
46 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/automake-
$(AM_VERSION
) \
47 $(1)/usr
/bin
/automake-
$(AM_VERSION
)
48 $(LN
) automake-
$(AM_VERSION
) $(1)/usr
/bin
/automake
49 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/aclocal-
$(AM_VERSION
) \
50 $(1)/usr
/bin
/aclocal-
$(AM_VERSION
)
51 $(LN
) aclocal-
$(AM_VERSION
) $(1)/usr
/bin
/aclocal
52 $(FIX_PATHS
) $(1)/usr
/bin
/automake-
$(AM_VERSION
)
53 $(FIX_PATHS
) $(1)/usr
/bin
/aclocal-
$(AM_VERSION
)
54 $(INSTALL_DIR
) $(1)/usr
/share
/automake-
$(AM_VERSION
)
57 automake-
$(AM_VERSION
) automake-
$(AM_VERSION
)/Automake \
58 automake-
$(AM_VERSION
)/am aclocal \
59 aclocal-
$(AM_VERSION
) aclocal-
$(AM_VERSION
)/internal \
61 $(INSTALL_DIR
) $(1)/usr
/share
/$$$$dir; \
62 for file in
$$$$(cd
$(PKG_INSTALL_DIR
) && \
63 find usr
/share
/$$$$dir -maxdepth
1 -type f
); do \
64 $(INSTALL_DATA
) $$(PKG_INSTALL_DIR
)/$$$$file \
70 $(eval
$(call BuildPackage
,automake
))