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
:=af6ba39142220687c500f79b4aa2f181d9b24e4f8d8ec497cea4ba26c64bedaf
17 PKG_MAINTAINER
:=Heinrich Schuchardt
<xypron.glpk@gmx.de
>
18 PKG_LICENSE
:=GPL-3.0
-or-later
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/automake
28 URL
:=https
://www.gnu.org
/software
/automake
/
29 DEPENDS
:=+autoconf
+perlbase-thread
+perlbase-attributes
32 define Package
/automake
/description
33 Automake is a tool for automatically generating Makefile.in files compliant
34 with the GNU Coding Standards.
37 FIX_PATHS
= $(SED
) '1c \#!/usr/bin/perl' -e
's| /[^ ]*/bin/perl| /usr/bin/perl|g'
39 AM_VERSION
:=$(word 1,$(subst .
, ,$(PKG_VERSION
))).
$(word 2,$(subst .
, ,$(PKG_VERSION
)))
41 define Package
/automake
/install
42 $(INSTALL_DIR
) $(1)/usr
/bin
43 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/automake-
$(AM_VERSION
) \
44 $(1)/usr
/bin
/automake-
$(AM_VERSION
)
45 $(LN
) automake-
$(AM_VERSION
) $(1)/usr
/bin
/automake
46 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/aclocal-
$(AM_VERSION
) \
47 $(1)/usr
/bin
/aclocal-
$(AM_VERSION
)
48 $(LN
) aclocal-
$(AM_VERSION
) $(1)/usr
/bin
/aclocal
49 $(FIX_PATHS
) $(1)/usr
/bin
/automake-
$(AM_VERSION
)
50 $(FIX_PATHS
) $(1)/usr
/bin
/aclocal-
$(AM_VERSION
)
51 $(INSTALL_DIR
) $(1)/usr
/share
/automake-
$(AM_VERSION
)
54 automake-
$(AM_VERSION
) automake-
$(AM_VERSION
)/Automake \
55 automake-
$(AM_VERSION
)/am aclocal \
56 aclocal-
$(AM_VERSION
) aclocal-
$(AM_VERSION
)/internal \
58 $(INSTALL_DIR
) $(1)/usr
/share
/$$$$dir; \
59 for file in
$$$$(cd
$(PKG_INSTALL_DIR
) && \
60 find usr
/share
/$$$$dir -maxdepth
1 -type f
); do \
61 $(INSTALL_DATA
) $$(PKG_INSTALL_DIR
)/$$$$file \
67 $(eval
$(call BuildPackage
,automake
))