mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-17 01:00:06 +02:00
101 lines
2.4 KiB
Bash
101 lines
2.4 KiB
Bash
SUMMARY="A template engine library written in C"
|
|
DESCRIPTION="This is CTPL version 0.3.4. CTPL (which stands for C Template (Parser) Library) is \
|
|
a template engine library written in C and distributed under the terms of the GNU GPL.
|
|
It allows fast and easy parsing of templates and fine control over template parsing environment."
|
|
HOMEPAGE="https://ctpl.tuxfamily.org"
|
|
COPYRIGHT="2010 Colomban Wendling"
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="2"
|
|
SOURCE_URI="http://download.tuxfamily.org/ctpl/releases/ctpl-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="3a95fdd03437ed3ae222339cb0de2d2c1240d627faa6c77bf46f1a9b761729fb"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
commandBinDir=$binDir
|
|
commandSuffix=$secondaryArchSuffix
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
libVersion="2.2.2"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
ctpl$secondaryArchSuffix = $portVersion
|
|
cmd:ctpl$commandSuffix
|
|
lib:libctpl$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libiconv$secondaryArchSuffix
|
|
lib:libgio_2.0$secondaryArchSuffix
|
|
lib:libglib_2.0$secondaryArchSuffix
|
|
lib:libgobject_2.0$secondaryArchSuffix
|
|
lib:libintl$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
ctpl${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libctpl$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
ctpl$secondaryArchSuffix == $portVersion base
|
|
devel:libffi$secondaryArchSuffix
|
|
devel:libglib_2.0$secondaryArchSuffix
|
|
devel:libpcre$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libiconv$secondaryArchSuffix
|
|
devel:libgio_2.0$secondaryArchSuffix
|
|
devel:libglib_2.0$secondaryArchSuffix
|
|
devel:libgobject_2.0$secondaryArchSuffix
|
|
devel:libintl$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autopoint
|
|
cmd:autoreconf
|
|
cmd:awk
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:gtkdocize
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
defineDebugInfoPackage ctpl$secondaryArchSuffix \
|
|
$libDir/libctpl.so.$libVersion \
|
|
$commandBinDir/ctpl
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -vfi
|
|
runConfigure --omit-dirs binDir \
|
|
./configure --bindir=$commandBinDir \
|
|
--disable-static
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm $libDir/*.la
|
|
|
|
prepareInstalledDevelLib libctpl
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|