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
19 PKG_CPE_ID
:=cpe
:/a
:gnu
:automake
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/automake
29 URL
:=https
://www.gnu.org
/software
/automake
/
30 DEPENDS
:=+autoconf
+perlbase-thread
+perlbase-attributes
33 define Package
/automake
/description
34 Automake is a tool for automatically generating Makefile.in files compliant
35 with the GNU Coding Standards.
38 FIX_PATHS
= $(SED
) '1c \#!/usr/bin/perl' -e
's| /[^ ]*/bin/perl| /usr/bin/perl|g'
40 AM_VERSION
:=$(word 1,$(subst .
, ,$(PKG_VERSION
))).
$(word 2,$(subst .
, ,$(PKG_VERSION
)))
42 define Package
/automake
/install
43 $(INSTALL_DIR
) $(1)/usr
/bin
44 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/automake-
$(AM_VERSION
) \
45 $(1)/usr
/bin
/automake-
$(AM_VERSION
)
46 $(LN
) automake-
$(AM_VERSION
) $(1)/usr
/bin
/automake
47 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/aclocal-
$(AM_VERSION
) \
48 $(1)/usr
/bin
/aclocal-
$(AM_VERSION
)
49 $(LN
) aclocal-
$(AM_VERSION
) $(1)/usr
/bin
/aclocal
50 $(FIX_PATHS
) $(1)/usr
/bin
/automake-
$(AM_VERSION
)
51 $(FIX_PATHS
) $(1)/usr
/bin
/aclocal-
$(AM_VERSION
)
52 $(INSTALL_DIR
) $(1)/usr
/share
/automake-
$(AM_VERSION
)
55 automake-
$(AM_VERSION
) automake-
$(AM_VERSION
)/Automake \
56 automake-
$(AM_VERSION
)/am aclocal \
57 aclocal-
$(AM_VERSION
) aclocal-
$(AM_VERSION
)/internal \
59 $(INSTALL_DIR
) $(1)/usr
/share
/$$$$dir; \
60 for file in
$$$$(cd
$(PKG_INSTALL_DIR
) && \
61 find usr
/share
/$$$$dir -maxdepth
1 -type f
); do \
62 $(INSTALL_DATA
) $$(PKG_INSTALL_DIR
)/$$$$file \
68 $(eval
$(call BuildPackage
,automake
))