Add to HOST_SHARED_MIME_INFO_DEPENDENCIES the missing dependencies
host-libxml2 and host-libglib2.
Also remove from SHARED_MIME_INFO_DEPENDENCIES dependencies already
present in HOST_SHARED_MIME_INFO_DEPENDENCIES.
Fix build failure:
configure: error: Package requirements ( libxml-2.0 >= 2.4 glib-2.0 >= 2.6.0) were not met
Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
To be consistent with the recent change of FOO_MAKE_OPT into FOO_MAKE_OPTS,
make the same change for FOO_CONF_OPT.
Sed command used:
find * -type f | xargs sed -i 's#_CONF_OPT\>#&S#g'
Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Finally get rid of all := used for variable definitions in packages,
as we suggest in our manual and during the review of new packages.
While I was at it, I also sometimes added a few missing new lines
between the header and the first variable definition.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Thanks to the pkgparentdir and pkgname functions, we can rewrite the
AUTOTARGETS macro in a way that avoids the need for each package to
repeat its name and the directory in which it is present.
[Peter: pkgdir->pkgparentdir]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Need to use $(MAKE1) as parallel builds appear to be broken.
Signed-off-by: Sven Neumann <s.neumann@raumfeld.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
We don't want to use 'make DESTDIR=$(TARGET_DIR) install' as we only
want the MIME database to be installed on the target. So we simply
override the target installation command.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Real targets should not depend on phony targets, otherwise they get
rebuilt everytime.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
When installing shared-mime-info on the target, we runn
update-mime-database, which has been built previously by building and
installing shared-mime-info for the host. However, for
update-mime-database (host version) to run properly, we must pass the
appropriate LD_LIBRARY_PATH variable.
We re-use the existing $(HOST_MAKE_ENV) variable to pass all the
appropriate variables.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Ensures that the hook isn't run every time. Also use the real stamp
file from the host build instead of host-share-mime-info as dependency,
as otherwise the target is always considered out-of-date.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
We have been passing -q to ./configure when using 'make -s' for
packages using Makefile.autotools.in for some time. Do the same
for packages using autotools, but not using the
Makefile.autotools.in infrastructure, taking care to not do it
for packages with hand written configure scripts.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
A C library will have been built by the toolchain makefiles, so there is no
need for packages to explicitly depend on uclibc.
Signed-off-by: Will Newton <will.newton@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
The shared-mime-info package contains the core database of common
types and the update-mime-database command used to extend it.
The only thing that is actually needed in the target is the file
mime.cache. In order to generate that file, shared-mime-info is
installed into the staging-dir. The idea is that other packages might
add more mime-info files and these should be collected in
staging-dir. From there the mime.cache file is created using tools
installed in host-dir and copied to target.
From Sven Neumann <s.neumann@raumfeld.com>
Modifications by Thomas Petazzoni :
* Add a patch to the main Makefile.am so that the $(XMLLINT) variable
is used instead of hardcoding xmllint
* Apply the patch in the host build of shared-mime-info
* In the target build, pass an XMLLINT environment variable so that
the xmllint binary isn't searched in $(STAGING_DIR) but in
$(HOST_DIR)
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>