mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
liblangtag: add recipe.
This commit is contained in:
72
app-text/liblangtag/liblangtag-0.6.2.recipe
Normal file
72
app-text/liblangtag/liblangtag-0.6.2.recipe
Normal file
@@ -0,0 +1,72 @@
|
||||
SUMMARY="Language tags identification library"
|
||||
DESCRIPTION="liblangtag is an interface library to access/deal with tags for \
|
||||
identifying languages, which is described in RFC 5646."
|
||||
HOMEPAGE="http://tagoh.bitbucket.org/liblangtag"
|
||||
COPYRIGHT="Akira Tagoh"
|
||||
LICENSE="GNU LGPL v3
|
||||
MPL v2.0"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://bitbucket.org/tagoh/liblangtag/downloads/liblangtag-$portVersion.tar.bz2"
|
||||
CHECKSUM_SHA256="d6242790324f1432fb0a6fae71b6851f520b2c5a87675497cf8ea14c2924d52e"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 ?x86_64"
|
||||
SECONDARY_ARCHITECTURES="?x86"
|
||||
|
||||
|
||||
PROVIDES="
|
||||
liblangtag$secondaryArchSuffix = $portVersion
|
||||
lib:liblangtag$secondaryArchSuffix = 1.4.1 compat >= 1
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libxml2$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
liblangtag${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:liblangtag$secondaryArchSuffix = 1.4.1 compat >= 1
|
||||
"
|
||||
REQUIRES_devel="
|
||||
liblangtag$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libxml2$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:awk
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PATCH()
|
||||
{
|
||||
sed -i 's/HAVE_INTROSPECTION/ENABLE_GOBJECT/' liblangtag-gobject/Makefile.am
|
||||
}
|
||||
|
||||
BUILD()
|
||||
{
|
||||
runConfigure ./configure --enable-introspection=no --disable-modules
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
rm $libDir/liblangtag.la
|
||||
|
||||
prepareInstalledDevelLibs liblangtag
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel $developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user