mirror of
https://github.com/rxrbln/t2sde.git
synced 2025-05-08 20:21:59 +08:00
46 lines
1.3 KiB
Plaintext
46 lines
1.3 KiB
Plaintext
# --- T2-COPYRIGHT-BEGIN ---
|
|
# t2/package/*/clearsilver/clearsilver.conf
|
|
# Copyright (C) 2004 - 2025 The T2 SDE Project
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
# --- T2-COPYRIGHT-END ---
|
|
|
|
# permanently disabling ruby beacause of compile errors
|
|
# disabling java and csharp module (mono support not testet till now)
|
|
var_append confopt ' ' "--disable-ruby --disable-java --disable-csharp"
|
|
|
|
# correcting apache path
|
|
if pkginstalled apache; then
|
|
var_append confopt ' ' "--with-apache=$SDECFG_PKG_APACHE_PREFIX"
|
|
var_append CFLAGS ' ' "-I/$SDECFG_PKG_APACHE_PREFIX/include"
|
|
var_append CPPFLAGS ' ' "-I/$SDECFG_PKG_APACHE_PREFIX/include"
|
|
var_append LDFLAGS ' ' "-L/$SDECFG_PKG_APACHE_PREFIX/lib"
|
|
export CPPFLAGS CFLAGS LDFLAGS
|
|
fi
|
|
|
|
if pkginstalled zlib; then
|
|
var_append confopt ' ' "--enable-compression"
|
|
else
|
|
var_append confopt ' ' "--disable-compression"
|
|
fi
|
|
|
|
# perl module
|
|
if pkginstalled perl; then
|
|
var_append confopt ' ' "--enable-perl"
|
|
else
|
|
var_append confopt ' ' "--disable-perl"
|
|
fi
|
|
|
|
# python module
|
|
if pkginstalled python; then
|
|
PYVER="`python -V 2>&1 | sed 's/Python \([0-9]\.[0-9]\).*/\1/'`"
|
|
var_append confopt ' ' "--enable-python"
|
|
var_append confopt ' ' "--with-python=/usr/bin/python$PYVER"
|
|
else
|
|
var_append confopt ' ' "--disable-python"
|
|
fi
|
|
|
|
# gettext
|
|
if pkginstalled gettext; then
|
|
var_append confopt ' ' "--enable-gettext"
|
|
fi
|