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.

61 lines
2.0 KiB

# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../clearsilver/clearsilver.conf
# Copyright (C) 2006 - 2011 The OpenSDE Project
# Copyright (C) 2004 - 2006 The T2 SDE 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 ---
# permanently disabling ruby beacause of compile errors
# disabling java and csharp module (mono support not testet till now)
var_append extraconfopt " " "--disable-ruby --disable-java --disable-csharp"
# correcting apache path
if pkginstalled apache; then
pkgprefix -t apache
var_append extraconfopt ' ' "--with-apache=$root/$( pkgprefix apache )"
var_append CFLAGS ' ' "-I$root$( pkgprefix includedir apache )"
var_append CPPFLAGS ' ' "-I$root$( pkgprefix includedir apache )"
var_append LDFLAGS ' ' "-L$root$( pkgprefix libdir apache )"
export CPPFLAGS CFLAGS LDFLAGS
fi
if pkginstalled zlib; then
pkgprefix -t zlib
var_append extraconfopt " " "--enable-compression"
var_append LDFLAGS ' ' "-L$root$( pkgprefix libdir zlib )"
export LDFLAGS
else
var_append extraconfopt " " "--disable-compression"
fi
# perl module
if pkginstalled perl; then
var_append extraconfopt " " "--enable-perl"
var_append makeopt " " "PERL_BUILD_OPTIONS='INSTALLDIRS=vendor'"
else
var_append extraconfopt " " "--disable-perl"
fi
# python module
if pkginstalled python; then
pkgprefix -t python
PYVER=$( pkgprefix ver python | cut -d'.' -f1,2 )
var_append extraconfopt " " "--enable-python"
var_append extraconfopt " " "--with-python=/usr/bin/python$PYVER"
else
var_append extraconfopt " " "--disable-python"
fi
# gettext
if pkginstalled gettext; then
var_append extraconfopt " " "--enable-gettext"
fi