<rpm accept="libdlog" arch="armv7l"/>
<rpm accept="libdlog-devel" arch="armv7l"/>
</target>
+
+ <pkgconfig>
+ <file>dlog.pc</file>
+ </pkgconfig>
+
<necessary>
<file>/usr/include/dlog/dlog.h</file>
<file>/usr/lib/libdlog.so*</file>
<rpm accept="libgthread" arch="armv7l"/>
</target>
+ <pkgconfig>
+ <file>gio-2.0.pc</file>
+ <file>gio-unix-2.0.pc</file>
+ <file>glib-2.0.pc</file>
+ <file>gmodule-2.0.pc</file>
+ <file>gmodule-export-2.0.pc</file>
+ <file>gmodule-no-export-2.0.pc</file>
+ <file>gobject-2.0.pc</file>
+ <file>gthread-2.0.pc</file>
+ </pkgconfig>
+
<necessary>
<file>/usr/include/gio-unix-2.0/gio/gdesktopappinfo.h</file>
<file>/usr/include/gio-unix-2.0/gio/gfiledescriptorbased.h</file>
log "+ destination dierctory : ${dest_dir}"
log "+ xml source file : ${xml_file}"
- local pc_fname="$(xmlstarlet sel -t -v '//rootstrap/@name' ${item}).pc"
- local src_pc_file_path="${src_dir}/usr/lib/pkgconfig/${pc_fname}"
+ local pc_fname=''
+ local src_pc_file_path=''
local dest_pc_path="${dest_dir}/usr/lib/pkgconfig"
+ local pc_fnames=($(xmlstarlet sel -t -v '//rootstrap/pkgconfig/file' ${item}))
- if [[ ! -f "${src_pc_file_path}" ]]; then
- log "+ no pkgconfig file(${src_pc_file_path})"
- return 1
+ if [[ -z ${pc_fnames[@]} ]]; then
+ pc_fnames=("$(xmlstarlet sel -t -v '//rootstrap/@name' ${item}).pc")
fi
- mkdir -p ${dest_pc_path}
- cp -P "${src_pc_file_path}" "${dest_pc_path}/."
+ for pc_fname in ${pc_fnames[@]}; do
+ src_pc_file_path="${src_dir}/usr/lib/pkgconfig/${pc_fname}"
+
+ if [[ ! -f "${src_pc_file_path}" ]]; then
+ log "+ no pkgconfig file(${src_pc_file_path})"
+ return 1
+ fi
+
+ mkdir -p ${dest_pc_path}
+ cp -P "${src_pc_file_path}" "${dest_pc_path}/."
+ done
+
+ return 0
}
function check_prerequisite()