I am trying to create a package for gobject-introspection which consist of two parts:
- one part used at build time
- one part used at runtime
How-ever I am puzzled with the correct install location of the files whether they are supposed to be installed at
By reading documentation I try to understand the structure and layout, please correct me if I am wrong;
Package/gobject-introspection/installwill install files
staging_dir/target-xxxthis are files to be included in the package as well. This will be the
libffifiles. These are the Runtime files.
Targets for Build time leaves me confused:
Build/InstallDevwill install development (header) files in
Host/Installwill install files in
g-ir-compiler to be installed in
A Makefile called
share/gobject-introspection-1.0/Makefile.introspection is requires by packages like pango, which uses
pkg-config to find such files e.g.:
INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
How-ever during the
autoreconf phase the
PKG_CONFIG_PATH does not include
staging_dir/host/lib/pkgconfig, thus the file cannot be found.
Since the pkg-config files in
staging_dir/target-xxx are prefixed relative to the root of
staging_dir/target-xxx ,unlike those in the
staging_dir/host directory, installing the
staging_dir/target-xxx and using the corresponding *.pc file will cause the path not to be found.
Leaves me puzzled how-to deal with with the particular
pkg-config calls in the makefile, suggestions?