mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
libdbi: new recipe (#11311)
Co-authored-by: Joachim Mairböck <j.mairboeck@gmail.com>
This commit is contained in:
75
dev-db/libdbi/libdbi-0.9.0.recipe
Normal file
75
dev-db/libdbi/libdbi-0.9.0.recipe
Normal file
@@ -0,0 +1,75 @@
|
||||
SUMMARY="Database-independent abstraction layer written in C"
|
||||
DESCRIPTION="libdbi implements a database-independent abstraction layer in C, similar to the \
|
||||
DBI/DBD layer in Perl. Writing one generic set of code, programmers can leverage the power of \
|
||||
multiple DBs and multiple simultaneous DB connections by using this framework."
|
||||
HOMEPAGE="https://libdbi.sourceforge.net/"
|
||||
COPYRIGHT="2001-2013, David Parker, Mark Tobenkin, Markus Hoenicka"
|
||||
LICENSE="GNU LGPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://sourceforge.net/projects/libdbi/files/libdbi/libdbi-$portVersion/libdbi-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="dafb6cdca524c628df832b6dd0bf8fabceb103248edb21762c02d3068fca4503"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="1.1.0"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
libdbi$secondaryArchSuffix = $portVersion
|
||||
lib:libdbi$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
libdbi${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libdbi$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
|
||||
REQUIRES_devel="
|
||||
libdbi$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:automake
|
||||
cmd:autoreconf
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
autoreconf -if
|
||||
runConfigure ./configure \
|
||||
--disable-static
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
rm -f $libDir/*.la
|
||||
|
||||
mkdir -p $docDir
|
||||
mv $dataDir/doc/libdbi*/* $docDir
|
||||
rm -rf $dataDir/doc
|
||||
|
||||
mkdir -p $includeDir
|
||||
mv $prefix/include/* $includeDir
|
||||
rm -rf $prefix/include
|
||||
|
||||
prepareInstalledDevelLib libdbi
|
||||
fixPkgconfig
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$documentationDir
|
||||
}
|
||||
Reference in New Issue
Block a user