|
|
|
@ -2,6 +2,7 @@
|
|
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
|
|
# |
|
|
|
|
# Filename: package/.../kdelibs/parse-config |
|
|
|
|
# Copyright (C) 2009 The OpenSDE Project |
|
|
|
|
# Copyright (C) 2004 - 2006 The T2 SDE Project |
|
|
|
|
# |
|
|
|
|
# More information can be found in the files COPYING and README. |
|
|
|
@ -14,23 +15,20 @@
|
|
|
|
|
|
|
|
|
|
if hasflag KDE; then |
|
|
|
|
if [ "$prefix_auto" = 1 ] ; then |
|
|
|
|
if [ "$pkg" == "arts" ]; then |
|
|
|
|
prefix="${SDECFG_PKG_KDE3_CORE_PREFIX:-opt/kde3}" |
|
|
|
|
if [ "$pkg" == "kdelibs" ]; then |
|
|
|
|
prefix="${SDECFG_PKG_KDE_CORE_PREFIX:-opt/kde}" |
|
|
|
|
else |
|
|
|
|
pkgprefix -t arts |
|
|
|
|
prefix=`pkgprefix arts` |
|
|
|
|
pkgprefix -t kdelibs |
|
|
|
|
prefix=`pkgprefix kdelibs` |
|
|
|
|
fi |
|
|
|
|
set_confopt |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
# make sure the right qt and kde libs are used |
|
|
|
|
pkgprefix -t qt4 |
|
|
|
|
export PATH="$(pkgprefix bindir qt4):$PATH" |
|
|
|
|
export LD_LIBRARY_PATH="$QTDIR/${libdir##*/}:/$prefix/${libdir##*/}:$LD_LIBRARY_PATH" |
|
|
|
|
|
|
|
|
|
# KDE specific configure options |
|
|
|
|
var_append confopt " " "--with-qt-dir=$QTDIR \ |
|
|
|
|
--with-qt-includes=$QTDIR/include \ |
|
|
|
|
--with-qt-libraries=$QTDIR/${libdir##*/}" |
|
|
|
|
|
|
|
|
|
# some feature and optimization settings ... |
|
|
|
|
if pkginstalled openldap; then |
|
|
|
|
pkgprefix -t openldap |
|
|
|
@ -40,7 +38,7 @@ if hasflag KDE; then
|
|
|
|
|
# FIXME: no conditionals? |
|
|
|
|
var_append confopt " " "--with-xinerama --enable-dnotify" |
|
|
|
|
|
|
|
|
|
[ "$SDECFG_PKG_KDE3_ENABLE_FINAL" != "1" ] || |
|
|
|
|
[ "$SDECFG_PKG_KDE_ENABLE_FINAL" != "1" ] || |
|
|
|
|
var_append confopt " " "--enable-final" |
|
|
|
|
|
|
|
|
|
if [ $arch = x86 ]; then |
|
|
|
@ -52,5 +50,5 @@ if hasflag KDE; then
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
# HACK around test for kdelibs |
|
|
|
|
hook_add preconf 3 '[ ! -f configure ] || sed -i "s,grep klineedit,grep KLineEdit," configure' |
|
|
|
|
hook_add preconf 5 "mkdir build; cd build; .. $confopt $extraconfopt" |
|
|
|
|
fi |
|
|
|
|