diff --git a/kde/koffice/koffice.conf b/kde/koffice/koffice.conf index e20eb406c..096721e1b 100644 --- a/kde/koffice/koffice.conf +++ b/kde/koffice/koffice.conf @@ -2,7 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../koffice/koffice.conf -# Copyright (C) 2007 The OpenSDE Project +# Copyright (C) 2007 - 2009 The OpenSDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project # Copyright (C) 1998 - 2004 Clifford Wolf # @@ -15,5 +15,9 @@ # --- SDE-COPYRIGHT-NOTE-END --- var_append confopt ' ' "--enable-pgsql=no" -makeopt="$makeopt"' LIBPYTHON="-ltcl -ltk -lpython2.4"' +if pkginstalled python; then + pyver=$(pkgprefix ver python | cut -d. -f1-2) + + var_append makeopt ' ' "'LIBPYTHON=-ltcl -ltk -lpython$pyver'" +fi