You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
2.0 KiB

# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../skalibs/skaware-conf.in
# Copyright (C) 2011 - 2013 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
# do not run the useless configure script dummy
runconf=0
skaware_conf() {
# configure build environment
echo "$CC" > conf-compile/conf-cc
echo "$CC" > conf-compile/conf-ld
echo "$CC" > conf-compile/conf-dynld
echo "$STRIP -R .note -R .comment -R .note.GNU-stack" > conf-compile/conf-stripbins
echo "$STRIP -x -R .note -R .comment -R .note.GNU-stack" > conf-compile/conf-striplibs
# do not use slashpackage style fs layout if FHS is used
if pkginstalled fhs; then
local flag_slashpackage="conf-compile/flag-slashpackage"
[ -f $flag_slashpackage ] && rm -vf $flag_slashpackage
echo "$root$sysconfdir" > conf-compile/conf-etc
echo "$root$mandir" > conf-compile/conf-man
echo "$root$bindir" > conf-compile/conf-install-command
echo "$root$libdir" > conf-compile/conf-install-library
echo "$root$libdir" > conf-compile/conf-install-library.so
echo "$root$includedir" > conf-compile/conf-install-include
echo "$root$libdir/sysdeps" > conf-compile/conf-install-sysdeps
# configure packages that depend on skalibs
if [ ! $pkg = "skalibs" ]; then
pkgprefix -t skalibs
echo "$( pkgprefix -r includedir skalibs )" > conf-compile/path-include
echo "$( pkgprefix -r libdir skalibs )" > conf-compile/path-library
echo "$( pkgprefix -r libdir skalibs )" > conf-compile/path-library.so
echo "$( pkgprefix -r libdir skalibs )/sysdeps" > conf-compile/import
fi
fi
}
hook_add preconf 1 'skaware_conf'