devel/autoconf: add new package (closes #2190)
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 26 Dec 2015 23:18:52 +0000 (00:18 +0100)
committerMichael Heimpold <mhei@heimpold.de>
Sun, 27 Dec 2015 11:24:33 +0000 (12:24 +0100)
This patch provides package autoconf.

Autoconf is required to generated the configure script of autotools
projects.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
[Fixed commit summary (first line of commit message)]

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
devel/autoconf/Makefile [new file with mode: 0644]

diff --git a/devel/autoconf/Makefile b/devel/autoconf/Makefile
new file mode 100644 (file)
index 0000000..35af2db
--- /dev/null
@@ -0,0 +1,69 @@
+#
+# Copyright (C) 2015 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=autoconf
+PKG_VERSION:=2.69
+PKG_RELEASE:=1
+
+PKG_SOURCE_URL:=@GNU/autoconf
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_MD5SUM:=82d05e03b93e45f5a39b828dc9c6c29b
+PKG_MAINTAINER:=Heinrich Schuchardt <xypron.glpk@gmx.de>
+PKG_LICENSE:=GPL-3.0+
+
+PKG_INSTALL:=1
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/autoconf
+  SECTION:=devel
+  CATEGORY:=Development
+  TITLE:=autoconf
+  URL:=https://www.gnu.org/software/autoconf/
+  DEPENDS:=+m4 +perl +perlbase-data +perlbase-file +perlbase-getopt \
+  +perlbase-dynaloader +perlbase-text
+endef
+
+define Package/autoconf/description
+  Autoconf is an extensible package of M4 macros that produce shell scripts to
+  automatically configure software source code packages.
+endef
+
+define Build/Install
+       $(SED) 's/@PERL@/\/usr\/bin\/perl/g' $(PKG_BUILD_DIR)/bin/Makefile.in
+       $(call Build/Install/Default)
+endef
+
+define Package/autoconf/install
+       $(INSTALL_DIR) $(1)/usr/bin
+       $(SED) 's|$(STAGING_DIR_HOST)|/usr|g' $(PKG_INSTALL_DIR)/usr/bin/autom4te
+       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
+       $(INSTALL_DIR) $(1)/usr/share/autoconf
+       $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/autoconf/INSTALL \
+       $(1)/usr/share/autoconf/
+       $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/autoconf/autom4te.cfg \
+       $(1)/usr/share/autoconf/
+       $(INSTALL_DIR) $(1)/usr/share/autoconf/Autom4te
+       $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/autoconf/Autom4te/* \
+       $(1)/usr/share/autoconf/Autom4te/
+       $(INSTALL_DIR) $(1)/usr/share/autoconf/autoconf
+       $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/autoconf/autoconf/* \
+       $(1)/usr/share/autoconf/autoconf/
+       $(INSTALL_DIR) $(1)/usr/share/autoconf/autoscan
+       $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/autoconf/autoscan/* \
+       $(1)/usr/share/autoconf/autoscan/
+       $(INSTALL_DIR) $(1)/usr/share/autoconf/autotest
+       $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/autoconf/autotest/* \
+       $(1)/usr/share/autoconf/autotest/
+       $(INSTALL_DIR) $(1)/usr/share/autoconf/m4sugar
+       $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/autoconf/m4sugar/* \
+       $(1)/usr/share/autoconf/m4sugar/
+endef
+
+$(eval $(call BuildPackage,autoconf))