void-packages/srcpkgs/virtuoso/template

68 lines
2.4 KiB
Bash

# Template file for 'virtuoso'
pkgname=virtuoso
version=7.2.5.1
revision=1
archs="x86_64* aarch64* ppc64le*"
wrksrc="${pkgname}-opensource-${version}"
build_style=gnu-configure
configure_args="--enable-static"
hostmakedepends="automake libtool flex gperf net-tools"
makedepends="libressl-devel libldap-devel readline-devel libxml2-devel mit-krb5-devel"
short_desc="Scalable cross-platform server of virtuoso"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="GPL-2"
homepage="http://virtuoso.openlinksw.com/wiki/main/Main/"
distfiles="https://github.com/openlink/virtuoso-opensource/archive/v${version}.tar.gz"
checksum=3e4807e94098b8265f8cf00867d1215bb1e9d0d274878e59a420742d2de471c2
# cannot execute binary file: Exec format error
nocross="https://build.voidlinux.org/builders/armv6l_builder/builds/29187/steps/shell_3/logs/stdio"
case "$XBPS_TARGET_MACHINE" in
*-musl) makedepends+=" libexecinfo-devel"; LDFLAGS+=" -lexecinfo";;
esac
# Reduce amount of warnings spamming the log
CFLAGS="-Wno-unused-function -Wno-unused-variable -Wno-unused-but-set-variable"
CFLAGS+=" -Wno-incompatible-pointer-types -Wno-maybe-uninitialized"
CFLAGS+=" -Wno-pointer-sign -Wno-pointer-compare -Wno-format-truncation"
CFLAGS+=" -Wno-format-overflow -Wno-stringop-truncation -Wno-misleading-indentation"
pre_configure() {
NOCONFIGURE=1 autoreconf -fi
}
do_configure() {
./configure ${configure_args} --without-internal-zlib --with-readline \
--with-layout=debian \
--program-transform-name='s/isql$$/isql-vt/;s/isqlw/isqlw-vt/'
}
post_install() {
# remove conflicts with virtuoso-base
rm ${DESTDIR}/usr/bin/isql{,w-vt}
rm ${DESTDIR}/usr/bin/virtuoso-t
rm ${DESTDIR}/usr/lib/libvirtuoso-t.a
rm ${DESTDIR}/usr/lib/virtodbc.{a,so}
rm ${DESTDIR}/usr/lib/virtodbc_r.{a,so}
rm ${DESTDIR}/usr/lib/virtodbcu.{a,so}
rm ${DESTDIR}/usr/lib/virtodbcu_r.{a,so}
# remove static libs.
rm ${DESTDIR}/usr/lib/virtuoso-opensource-${version%%.*}/hosting/*.a
}
virtuoso-base_package() {
short_desc+=" (very minimal installation)"
pkg_install() {
cd ${wrksrc}/binsrc/virtuoso
make DESTDIR=$PKGDESTDIR install
cd ${wrksrc}/binsrc/driver
make DESTDIR=$PKGDESTDIR install
# Install some useful tools; rename to avoid conflicts with unixodbc
for bin in isql isqlw; do
install -Dm755 ${wrksrc}/binsrc/tests/$bin \
${PKGDESTDIR}/usr/bin/${bin}-vt
done
# Remove static libs and libtool archives.
rm -f ${PKGDESTDIR}/usr/lib/*.{a,la}
}
}