mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
enca: added a recipe for version 1.15
This commit is contained in:
78
app-i18n/enca/enca-1.15.recipe
Normal file
78
app-i18n/enca/enca-1.15.recipe
Normal file
@@ -0,0 +1,78 @@
|
||||
SUMMARY="An Extremely Naive Charset Analyser library."
|
||||
DESCRIPTION="
|
||||
Enca is an Extremely Naive Charset Analyser. It detects character set and \
|
||||
encoding of text files and can also convert them to other encodings using \
|
||||
either a built-in converter or external libraries and tools like libiconv,\
|
||||
librecode, or cstocs."
|
||||
HOMEPAGE="http://cihar.com/software/enca/"
|
||||
COPYRIGHT="
|
||||
2000-2003 David Necas (Yeti)
|
||||
2009-2013 Michal Cihar
|
||||
"
|
||||
LICENSE="GNU GPL v2"
|
||||
SRC_URI="http://dl.cihar.com/enca/enca-$portVersion.tar.bz2"
|
||||
CHECKSUM_SHA256="bba29ceb57e7989b89a5a28a97573ae55f46b40fb96f18d83a1d08a205752bc6"
|
||||
REVISION="1"
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
PROVIDES="
|
||||
enca$secondaryArchSuffix = $portVersion compat >= 1
|
||||
lib:libenca$secondaryArchSuffix = 0.5.1 compat >= 0
|
||||
"
|
||||
if [ -z "$secondaryArchSuffix" ]; then
|
||||
PROVIDES="$PROVIDES
|
||||
cmd:enca
|
||||
cmd:enconv
|
||||
"
|
||||
fi
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix >= $haikuVersion
|
||||
lib:libiconv$secondaryArchSuffix
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
devel:libiconv$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:automake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:libtoolize
|
||||
cmd:make
|
||||
cmd:gettext
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
autoreconf -fi
|
||||
runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
if [ -n "$secondaryArchSuffix" ]; then
|
||||
rm -rf $binDir $documentationDir
|
||||
fi
|
||||
prepareInstalledDevelLibs libenca
|
||||
fixPkgconfig
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
# ----- devel package -------------------------------------------------------
|
||||
|
||||
PROVIDES_devel="
|
||||
enca${secondaryArchSuffix}_devel = $portVersion compat >= 1
|
||||
devel:libenca$secondaryArchSuffix = 0.5.1 compat >= 0
|
||||
"
|
||||
REQUIRES_devel="
|
||||
enca$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
Reference in New Issue
Block a user