27 lines
760 B
Plaintext
27 lines
760 B
Plaintext
# Description: a database access library for C++
|
|
# URL: http://soci.sourceforge.net/
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: boost cmake postgresql zlib
|
|
# Optional: mariadb mysql unixodbc
|
|
|
|
name=libsoci
|
|
version=4.0.2
|
|
release=1
|
|
source=(https://downloads.sourceforge.net/project/soci/soci/soci-$version/soci-$version.tar.gz)
|
|
|
|
build() {
|
|
prt-get isinst ninja && PKGMK_LIBSOCI+=' -G Ninja'
|
|
|
|
cmake -S soci-$version -B build $PKGMK_LIBSOCI \
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
-D WITH_POSTGRESQL=ON \
|
|
-D SOCI_CXX11=ON \
|
|
-D SOCI_TESTS=OFF \
|
|
-Wno-dev
|
|
cmake --build build
|
|
DESTDIR=$PKG cmake --install build
|
|
}
|