217 lines
5.5 KiB
XML
217 lines
5.5 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!-- $Id$ -->
|
|
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
version="1.0">
|
|
|
|
<xsl:output method="text"
|
|
encoding='ISO-8859-1'/>
|
|
|
|
<xsl:template match="/">
|
|
<xsl:apply-templates select="//list"/>
|
|
<xsl:text>comment ""
|
|
|
|
menu "Default package for resolving MTA dependency"
|
|
|
|
choice
|
|
prompt "Mail server"
|
|
config MS_sendmail
|
|
bool "sendmail"
|
|
config MS_postfix
|
|
bool "postfix"
|
|
config MS_exim
|
|
bool "exim"
|
|
endchoice
|
|
config MAIL_SERVER
|
|
string
|
|
default sendmail if MS_sendmail
|
|
default postfix if MS_postfix
|
|
default exim if MS_exim
|
|
|
|
endmenu
|
|
|
|
choice
|
|
prompt "Dependency level"
|
|
default DEPLVL_2
|
|
|
|
config DEPLVL_1
|
|
bool "Required dependencies only"
|
|
|
|
config DEPLVL_2
|
|
bool "Required and recommended dependencies"
|
|
|
|
config DEPLVL_3
|
|
bool "Required, recommended and optional dependencies"
|
|
|
|
endchoice
|
|
config optDependency
|
|
int
|
|
default 1 if DEPLVL_1
|
|
default 2 if DEPLVL_2
|
|
default 3 if DEPLVL_3
|
|
|
|
|
|
config SUDO
|
|
bool "Build as User"
|
|
default y
|
|
help
|
|
Select if sudo will be used (you build as a normal user)
|
|
otherwise sudo is not needed (you build as root)
|
|
|
|
|
|
config WRAP_INSTALL
|
|
bool "Use `porg style' package management"
|
|
default n
|
|
help
|
|
Select if you want the installation commands to be wrapped
|
|
between "wrapInstall '" and "' ; packInstall" functions,
|
|
where wrapInstall is used to set up a LD_PRELOAD library (for
|
|
example using porg), and packInstall makes the package tarball
|
|
|
|
config DEL_LA_FILES
|
|
bool "Remove libtool .la files after package installation"
|
|
default y
|
|
help
|
|
This option should be active on any system mixing libtool
|
|
and meson build systems. ImageMagick .la files are preserved.
|
|
</xsl:text>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="list">
|
|
<xsl:if
|
|
test=".//*[self::package or self::module]
|
|
[(version and not(inst-version)) or
|
|
string(version) != string(inst-version)]">
|
|
<xsl:text>config	MENU_</xsl:text>
|
|
<xsl:value-of select="@id"/>
|
|
<xsl:text>
|
|
bool	"</xsl:text>
|
|
<xsl:value-of select="name"/>
|
|
<xsl:text>"
|
|
default	n
|
|
|
|
menu "</xsl:text>
|
|
<xsl:value-of select="name"/>
|
|
<xsl:text>"
|
|
depends MENU_</xsl:text>
|
|
<xsl:value-of select="@id"/>
|
|
<xsl:text>
|
|
|
|
</xsl:text>
|
|
<xsl:apply-templates select="sublist"/>
|
|
<xsl:text>endmenu
|
|
|
|
</xsl:text>
|
|
</xsl:if>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="sublist">
|
|
<xsl:if
|
|
test=".//*[self::package or self::module]
|
|
[(version and not(inst-version)) or
|
|
string(version) != string(inst-version)]">
|
|
<xsl:text>	config	MENU_</xsl:text>
|
|
<xsl:value-of select="@id"/>
|
|
<xsl:text>
|
|
	bool	"</xsl:text>
|
|
<xsl:value-of select="name"/>
|
|
<xsl:text>"
|
|
	default	n
|
|
|
|
	menu "</xsl:text>
|
|
<xsl:value-of select="name"/>
|
|
<xsl:text>"
|
|
	depends MENU_</xsl:text>
|
|
<xsl:value-of select="@id"/>
|
|
<xsl:text>
|
|
|
|
</xsl:text>
|
|
<xsl:apply-templates select="package"/>
|
|
<xsl:text>	endmenu
|
|
|
|
</xsl:text>
|
|
</xsl:if>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="package">
|
|
<xsl:if
|
|
test="(version and not(inst-version)) or
|
|
string(version) != string(inst-version)">
|
|
<xsl:text>		config	CONFIG_</xsl:text>
|
|
<xsl:value-of select="name"/>
|
|
<xsl:text>
|
|
		bool	"</xsl:text>
|
|
<xsl:value-of select="name"/>
|
|
<xsl:text> </xsl:text>
|
|
<xsl:value-of select="version"/>
|
|
<xsl:if test="inst-version">
|
|
<xsl:text> [Installed </xsl:text>
|
|
<xsl:value-of select="inst-version"/>
|
|
<xsl:text>]</xsl:text>
|
|
</xsl:if>
|
|
<xsl:text>"
|
|
		default	n
|
|
|
|
</xsl:text>
|
|
</xsl:if>
|
|
<xsl:if
|
|
test="not(version) and ./module[not(inst-version) or
|
|
string(version) != string(inst-version)]">
|
|
<xsl:text>		config	MENU_</xsl:text>
|
|
<xsl:value-of select="translate(name,' ','_')"/>
|
|
<xsl:text>
|
|
		bool	"</xsl:text>
|
|
<xsl:value-of select="name"/>
|
|
<xsl:text>"
|
|
		default	n
|
|
|
|
		menu "</xsl:text>
|
|
<xsl:value-of select="name"/>
|
|
<xsl:text>"
|
|
		depends MENU_</xsl:text>
|
|
<xsl:value-of select="translate(name,' ','_')"/>
|
|
<xsl:text>
|
|
|
|
</xsl:text>
|
|
<xsl:apply-templates select="module"/>
|
|
<xsl:text>		endmenu
|
|
|
|
</xsl:text>
|
|
</xsl:if>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="module">
|
|
<xsl:if
|
|
test="not(inst-version) or
|
|
string(version) != string(inst-version)">
|
|
<xsl:text>			config	CONFIG_</xsl:text>
|
|
<xsl:value-of select="name"/>
|
|
<xsl:text>
|
|
			bool	"</xsl:text>
|
|
<xsl:value-of select="name"/>
|
|
<xsl:text> </xsl:text>
|
|
<xsl:value-of select="version"/>
|
|
<xsl:if test="inst-version">
|
|
<xsl:text> [Installed </xsl:text>
|
|
<xsl:value-of select="inst-version"/>
|
|
<xsl:text>]</xsl:text>
|
|
</xsl:if>
|
|
<xsl:text>"
|
|
			default	</xsl:text>
|
|
<xsl:choose>
|
|
<xsl:when test="contains(../name,'xorg')">
|
|
<xsl:text>y
|
|
|
|
</xsl:text>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:text>n
|
|
|
|
</xsl:text>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:if>
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet>
|