Lines Matching +full:autotools +full:- +full:build +full:- +full:and +full:- +full:test
2 # Autotools package infrastructure
5 # package .mk files for autotools packages. It should be used for all
6 # packages that use the autotools as their build system.
11 # In terms of implementation, this autotools infrastructure requires
18 # build the package, instead of the default autotools behaviour. The
25 # Utility function to upgrade config.sub and config.guess files
27 # argument 1 : directory into which config.guess and config.sub need
28 # to be updated. Note that config.sub and config.guess are searched
33 for i in $$(find $(1) -name $$file); do \
42 # tests cannot be done in a cross-compilation context. This function
47 AUTOCONF_AC_CHECK_FILE_VAL = ac_cv_file_$(subst -,_,$(subst /,_,$(subst .,_,$(1))))
50 # Hook to update config.sub and config.guess if needed
53 @$(call MESSAGE,"Updating config.sub and config.guess")
58 # Hook to patch libtool to make it work properly for cross-compilation
62 $(Q)for i in `find $($(PKG)_DIR) -name ltmain.sh`; do \
63 ltmain_version=`sed -n '/^[ \t]*VERSION=/{s/^[ \t]*VERSION=//;p;q;}' $$i | \
64 sed -e 's/\([0-9]*\.[0-9]*\).*/\1/' -e 's/\"//'`; \
65 ltmain_patchlevel=`sed -n '/^[ \t]*VERSION=/{s/^[ \t]*VERSION=//;p;q;}' $$i | \
66 sed -e 's/\([0-9]*\.[0-9]*\.*\)\([0-9]*\).*/\2/' -e 's/\"//'`; \
67 if test $${ltmain_version} = '1.5'; then \
68 patch -i support/libtool/buildroot-libtool-v1.5.patch $${i}; \
69 elif test $${ltmain_version} = "2.2"; then\
70 patch -i support/libtool/buildroot-libtool-v2.2.patch $${i}; \
71 elif test $${ltmain_version} = "2.4"; then\
72 if test $${ltmain_patchlevel:-0} -gt 2; then\
73 patch -i support/libtool/buildroot-libtool-v2.4.4.patch $${i}; \
75 patch -i support/libtool/buildroot-libtool-v2.4.patch $${i}; \
87 support/scripts/fix-configure-powerpc64.sh $($(PKG)_DIR)
107 # inner-autotools-package -- defines how the configuration, compilation and
108 # installation of an autotools package should be done, implements a
109 # few hooks to tune the build process for autotools specifities and
121 define inner-autotools-package
173 # .mk file. And take care of the differences between host and target
181 (cd $$($$(PKG)_SRCDIR) && rm -rf config.cache && \
187 --target=$$(GNU_TARGET_NAME) \
188 --host=$$(GNU_TARGET_NAME) \
189 --build=$$(GNU_HOST_NAME) \
190 --prefix=/usr \
191 --exec-prefix=/usr \
192 --sysconfdir=/etc \
193 --localstatedir=/var \
194 --program-prefix="" \
195 --disable-gtk-doc \
196 --disable-gtk-doc-html \
197 --disable-doc \
198 --disable-docs \
199 --disable-documentation \
200 --with-xmlto=no \
201 --with-fop=no \
202 $$(if $$($$(PKG)_OVERRIDE_SRCDIR),,--disable-dependency-tracking) \
203 --enable-ipv6 \
216 (cd $$($$(PKG)_SRCDIR) && rm -rf config.cache; \
223 --prefix="$$(HOST_DIR)" \
224 --sysconfdir="$$(HOST_DIR)/etc" \
225 --localstatedir="$$(HOST_DIR)/var" \
226 --enable-shared --disable-static \
227 --disable-gtk-doc \
228 --disable-gtk-doc-html \
229 --disable-doc \
230 --disable-docs \
231 --disable-documentation \
232 --disable-debug \
233 --with-xmlto=no \
234 --with-fop=no \
235 --disable-nls \
236 $$(if $$($$(PKG)_OVERRIDE_SRCDIR),,--disable-dependency-tracking) \
250 $(2)_DEPENDENCIES += host-gettext
257 $(2)_DEPENDENCIES += host-automake host-autoconf host-libtool
269 # Must be added after other pre-configure hooks that might regenerate the
270 # configure script and overwrite the changes made here.
276 # Build step. Only define it if not already defined by the package .mk
282 …$$(TARGET_MAKE_ENV) $$($$(PKG)_MAKE_ENV) $$($$(PKG)_MAKE) $$($$(PKG)_MAKE_OPTS) -C $$($$(PKG)_SRCD…
286 $$(HOST_MAKE_ENV) $$($$(PKG)_MAKE_ENV) $$($$(PKG)_MAKE) $$($$(PKG)_MAKE_OPTS) -C $$($$(PKG)_SRCDIR)
297 …$$(HOST_MAKE_ENV) $$($$(PKG)_MAKE_ENV) $$($$(PKG)_MAKE) $$($$(PKG)_INSTALL_OPTS) -C $$($$(PKG)_SRC…
307 …$$(TARGET_MAKE_ENV) $$($$(PKG)_MAKE_ENV) $$($$(PKG)_MAKE) $$($$(PKG)_INSTALL_STAGING_OPTS) -C $$($…
317 …$$(TARGET_MAKE_ENV) $$($$(PKG)_MAKE_ENV) $$($$(PKG)_MAKE) $$($$(PKG)_INSTALL_TARGET_OPTS) -C $$($$…
323 $(call inner-generic-package,$(1),$(2),$(3),$(4))
328 # autotools-package -- the target generator macro for autotools packages
331 autotools-package = $(call inner-autotools-package,$(pkgname),$(call UPPERCASE,$(pkgname)),$(call U…
332 host-autotools-package = $(call inner-autotools-package,host-$(pkgname),$(call UPPERCASE,host-$(pkg…