aboutsummaryrefslogtreecommitdiffstats
path: root/include/autotools.mk
Commit message (Collapse)AuthorAgeFilesLines
* include: autotools: Add dummy GTKDOCIZEHauke Mehrtens2023-03-161-1/+2
| | | | | | | | | autoreconf wants to use the gtkdocize tool now if a configure.ac file defines GTK_DOC_CHECk(). OpenWrt does not ship the gtkdocize tool, just use true instead. This fixes the build of some applications like guntls. Fixes: 030447b8f4c7 ("tools/autoconf: bump to 2.71") Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* libiconv-stub: removeRosen Penev2022-07-151-2/+2
| | | | | | No longer used. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* build: autotools: fix cache pathHuangbin Zhan2022-03-281-1/+1
| | | | | | | the cache directory should be autom4te.cache in all $(PKG_AUTOMAKE_PATHS) rather than $(PKG_BUILD_DIR)/autom4te.cache only Signed-off-by: Huangbin Zhan <zhanhb88@gmail.com>
* gettext: remove packageRosen Penev2021-11-201-2/+2
| | | | | | | This package was necessary when uClibc was in the tree. Now that uClibc is gone, this can go too. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* build: prevent dupes in autotools.mkSebastian Kemper2021-03-011-5/+6
| | | | | | | | | | | | | | | | | | | | autotools.mk does not have any protection currently that would prevent it from being sourced multiple times. Note that both package.mk and host-build.mk source autotools.mk. So any package Makefile that includes both will cause hooks to be added twice (at least twice). This is fixed by declaring a new variable, __autotools_inc, and only continuing if this variable doesn't equal 1. The same is done by rules.mk already. Also, this commit does away with an ifneq that checks PKG_FIXUP (instead of HOST_FIXUP) for patch-libtool before adding to the host pre-configure hook. This does not make sense. The second ifneq is amended. The current one manually does what the define patch_libtool_host is already doing. It can just use the define. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
* autotools.mk: fix gettext fixupRosen Penev2021-02-231-1/+1
| | | | | | | | The update to gettext 0.21 broke packages that use autotools and gettext because the sed line was failing with the new version. Fix with a better sed expression. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* build: add support for patching libtool to include ABI version in sonameFelix Fietkau2021-02-151-0/+10
| | | | | | Use the version from PKG_ABI_VERSION Signed-off-by: Felix Fietkau <nbd@nbd.name>
* build: use SPDX license tagsPaul Spooren2021-02-051-5/+2
| | | | | | | | | The license folder is a core part of OpenWrt and all GPL-2.0 licensed. Use SPDX license tags to allow machines to check licenses. Signed-off-by: Paul Spooren <mail@aparcar.org> [rebase, keep some Copyright lines, sharpen commit message] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* autotools.mk: autoreconf: fix missing install-shPetr Štetiar2019-07-261-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I'm trying to create a package for libgpiod, which uses AC_CONFIG_AUX_DIR macro, which is probably leading to the following configure error: autoreconf: running: /openwrt.git/staging_dir/host/bin/libtoolize --force OpenWrt-libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `autostuff'. OpenWrt-libtoolize: linking file `autostuff/ltmain.sh' OpenWrt-libtoolize: putting macros in `m4'. ... configure: error: cannot find install-sh, install.sh, or shtool in autostuff "."/autostuff >From the build output it's clear, that libtoolize isn't installing install-sh symlink, because libtoolize would install install-sh only if it's being run with --install parameter. Corresponding part in libtoolize: if $opt_install; then func_config_update config.guess \ "$pkgdatadir/config" "$auxdir" pkgconfig_header func_config_update config.sub \ "$pkgdatadir/config" "$auxdir" pkgconfig_header func_install_update install-sh \ "$pkgdatadir/config" "$auxdir" pkgconfig_header fi func_ltmain_update ltmain.sh \ "$pkgdatadir/config" "$auxdir" pkgconfig_header Adding --install parameter to libtoolize fixes this build issue: autoreconf: running: /openwrt.git/staging_dir/host/bin/libtoolize --install --force OpenWrt-libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `autostuff'. OpenWrt-libtoolize: linking file `autostuff/config.guess' OpenWrt-libtoolize: linking file `autostuff/config.sub' OpenWrt-libtoolize: linking file `autostuff/install-sh' OpenWrt-libtoolize: linking file `autostuff/ltmain.sh' OpenWrt-libtoolize: putting macros in `m4'. Cc: Felix Fietkau <nbd@nbd.name> Signed-off-by: Petr Štetiar <ynezz@true.cz>
* treewide: fix build depends to refer to source package namesMatthias Schiffer2018-01-131-2/+2
| | | | | | | Build depends must refer to source packages rather than binary package names. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* build: move STAGING_DIR_HOSTPKG and BUILD_DIR_HOST back to a common ↵Matthias Schiffer2017-01-181-1/+1
| | | | | | | | | | | | | directory for all targets Using a single host package staging dir (and build dir) significantly speeds up builds when multiple targets are built in succession, especially for large host packages like NodeJS. $(STAGING_DIR)/host is kept in addition to $(STAGING_DIR_HOSTPKG) in most places; it is still used as destination for host files in Build/InstallDev. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* include/autotools.mk: use STAGING_DIR_HOSTPKG where appropriateMatthias Schiffer2017-01-141-2/+2
| | | | | | | Make sure binaries install to STAGING_DIR_HOSTPKG are still found when this variable is eventually modified. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* autotools: use correct version for gettext FIXUPDirk Neukirchen2016-10-131-1/+1
| | | | | | | 0.19.8.1 gettext-full uses "archive-version" of 0.19.8 to replace makros, leading to breakage of PKG_FIXUP:=gettext-version Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
* include/autotools.mk: fix gettext installation pathFelix Fietkau2016-01-201-2/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48421
* Revert "include/autoconf.mk: decouple host fixups from target fixups"Felix Fietkau2016-01-201-4/+10
| | | | | | This reverts commit r48403 SVN-Revision: 48412
* include/autoconf.mk: decouple host fixups from target fixupsFelix Fietkau2016-01-201-10/+4
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48403
* include: improve 'gettext-version' fixupNicolas Thill2015-01-311-10/+14
| | | | | | | | | | | * enclose the fixup in brackets * match anything in the call to AM_GNU_GETTEXT_VERSION * call it early (before autoreconf if both are specified) * chain a call to autoreconf since it messes with configure.ac Signed-off-by: Nicolas Thill <nico@openwrt.org> SVN-Revision: 44225
* autotools.mk: add a gettext-version PKG_FIXUP (#11236)Jo-Philipp Wich2012-10-101-0/+13
| | | | | | | This fixup aligns the required gettext version in shipped macros to the one available in $(STAGING_DIR_HOST). SVN-Revision: 33708
* autotools.mk: cope with Debian version strings in libtoolJo-Philipp Wich2012-06-111-3/+3
| | | | SVN-Revision: 32207
* autotools.mk: fix autoreconf in subdirectories, thanks field_it for spotting ↵Jo-Philipp Wich2012-01-201-1/+1
| | | | | | this SVN-Revision: 29835
* autotools.mk: link config.rpath before running autoreconf, also touch ↵Jo-Philipp Wich2011-10-161-3/+3
| | | | | | ABOUT-NLS - needed by minidlna CVS version SVN-Revision: 28464
* include: autotools.mk: do not fail in patch-libtool fixup if patch is ↵Jo-Philipp Wich2011-10-111-1/+1
| | | | | | already applied SVN-Revision: 28419
* autotools.mk: implement PKG_FIXUP:=patch-libtool This change allows to apply ↵Jo-Philipp Wich2011-08-011-1/+37
| | | | | | OpenWrt, Buildroot and OE libtool fixes to packages which fail badly at autoreconf. The fixup covers the common libtool versions 1.5, 2.2 and 2.4 and automatically determines the correct version to use. SVN-Revision: 27855
* autotools.mk: disable autoreconf recursion if more than one dir is given in ↵Jo-Philipp Wich2011-04-111-0/+1
| | | | | | PKG_AUTOMAKE_PATHS SVN-Revision: 26589
* add config.rpath and link it in autotools.mk if missing, some packages might ↵Jo-Philipp Wich2011-02-271-0/+2
| | | | | | need it, especially users of lib-link.m4 or iconv.m4 SVN-Revision: 25753
* autotools.mk: -B is not passed on by autoreconf, use -I instead - fixes ↵Jo-Philipp Wich2011-02-021-1/+1
| | | | | | PKG_MACRO_PATHS SVN-Revision: 25312
* autotools.mk: introduce PKG_MACRO_PATHS and HOST_MACRO_PATHS which default ↵Jo-Philipp Wich2010-12-261-4/+7
| | | | | | to ./m4, add LIBTOOL to AM_TOOL_PATHS SVN-Revision: 24830
* autotools.mk: like libintl, make all libtool fixup packages depend on the ↵Jo-Philipp Wich2010-12-191-2/+2
| | | | | | libiconv stub SVN-Revision: 24708
* autotools.mk: add a (dummy) libintl build dependency to any package using ↵Jo-Philipp Wich2010-12-191-2/+2
| | | | | | the libtool fixup SVN-Revision: 24700
* autotools.mk: remove HOST_BUILD_DEPENDS on libtoolJo-Philipp Wich2010-12-181-2/+0
| | | | SVN-Revision: 24676
* autotools.mk: set AUTOPOINT to "true", not all hosts have it install and it ↵Jo-Philipp Wich2010-12-181-1/+2
| | | | | | makes autoreconf fail if not present, it also needs cvs which isn't installed on all hosts either SVN-Revision: 24664
* autotools.mk: touch NEWS, AUTHORS, COPYING and ChangeLog, automake wants themJo-Philipp Wich2010-12-151-0/+1
| | | | SVN-Revision: 24588
* autotools.mk: always pass -I m4, some package don't seem to set correct ↵Jo-Philipp Wich2010-12-151-1/+1
| | | | | | AMFLAGS (or any at all..) SVN-Revision: 24574
* autotools.mk: don't rely on shipped autogen.sh filesJo-Philipp Wich2010-12-151-3/+1
| | | | SVN-Revision: 24573
* autotools.mk: explicately pass toolchain versions of automake, autoconf, ↵Jo-Philipp Wich2010-12-151-2/+12
| | | | | | libtoolize, ... to autoreconf SVN-Revision: 24570
* - implement hooks for hostbuilds - use host build hooks to implement fixups ↵Jo-Philipp Wich2010-12-131-14/+58
| | | | | | for host build - move separator declaration to rules.mk SVN-Revision: 24551
* autotools.mk: add yet another aclocal pathJo-Philipp Wich2010-12-131-0/+1
| | | | SVN-Revision: 24547
* autotools.mk: support autoreconf at different paths, introduce ↵Jo-Philipp Wich2010-12-131-10/+13
| | | | | | PKG_AUTOMAKE_PATHS which defaults to '.' SVN-Revision: 24534
* rework aclocal handling, packages have issues writing through the symlink so ↵Jo-Philipp Wich2010-12-111-0/+1
| | | | | | keep the host aclocal as include path for now SVN-Revision: 24474
* autotools.mk: let PKG_REMOVE_FILES default to aclocal.m4Jo-Philipp Wich2010-12-101-0/+1
| | | | SVN-Revision: 24458
* autotools.mk: remove autom4ate.cache directory when autoreconf-ingJo-Philipp Wich2010-12-101-0/+1
| | | | SVN-Revision: 24434
* support the autoreconf fixup without libtoolFelix Fietkau2010-12-101-0/+5
| | | | SVN-Revision: 24423
* autotools.mk: introduce PKG_REMOVE_FILES to delete certain files after ↵Jo-Philipp Wich2010-12-081-1/+3
| | | | | | applying patches and before doing any fixups SVN-Revision: 24348
* autotools.mk: remove GNUmakefile before running autoreconf (spotted libgcrypt++)Jo-Philipp Wich2010-12-081-0/+1
| | | | SVN-Revision: 24344
* autotools.mk: allow disabling autoreconf, remove libdir fixupJo-Philipp Wich2010-12-081-9/+4
| | | | SVN-Revision: 24321
* autotools.mk: allow autogen.sh / autoreconf to fail (for now)Jo-Philipp Wich2010-12-081-2/+2
| | | | SVN-Revision: 24320
* autotools.mk: if ./autogen.sh exists, call that. Call autoreconfig only if ↵Jo-Philipp Wich2010-12-081-1/+8
| | | | | | configure.in or configure.ac exists SVN-Revision: 24319
* deploy the steamroller tactics and autoreconfigure any package carring the ↵Jo-Philipp Wich2010-12-081-37/+10
| | | | | | libtool fixup, this should solve a number of issues ranging from linking into the host, syntax errors in libtool and missing make targets SVN-Revision: 24317
* re-enable the libtool PKG_BUILD_DEPENDS for PKG_FIXUP and emit a deprecation ↵Jo-Philipp Wich2010-12-041-14/+9
| | | | | | warning. Packages must specify PKG_BUILD_DEPENDS:=libtool SVN-Revision: 24246
* ensure accidentally installed *.la-files (into $STAGING_DIR) are going to be ↵Mirko Vogt2010-12-041-0/+8
| | | | | | removed afterwards - this actually should be done within respective package-Makefiles itself, however they need to stay compatible with libtool v1.5.x which is used in backfire, since it (may) require those files SVN-Revision: 24241