void-packages/srcpkgs/virtuoso/template

57 lines
1.8 KiB
Plaintext
Raw Normal View History

2013-06-26 09:38:24 +02:00
# Template file for 'virtuoso'
pkgname=virtuoso
2013-07-26 19:35:38 +02:00
version=6.1.7
2013-06-26 09:38:24 +02:00
revision=1
build_style=gnu-configure
wrksrc="${pkgname}-opensource-${version}"
hostmakedepends="flex gperf net-tools"
makedepends="libldap-devel readline-devel libxml2-devel openssl-devel mit-krb5-devel"
short_desc="A scalable cross-platform server of virtuoso"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="http://virtuoso.openlinksw.com/wiki/main/Main/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-opensource-${version}.tar.gz"
2013-07-26 19:35:38 +02:00
checksum=c82c1ee90810db5ccd725f7d0d68b42aa6db9a1c8bf6fe2a4dd0ca91a271aa7f
2013-06-26 09:38:24 +02:00
if [ "$CROSS_BUILD" ]; then
makedepends+=" libfl-devel"
fi
2013-07-27 03:58:57 +02:00
do_configure() {
./configure ${configure_args} --without-internal-zlib --with-readline \
--with-layout=debian --program-transform-name='s/isql$$/isql-vt/;s/isqlw/isqlw-vt/'
}
2013-06-26 09:38:24 +02:00
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}
}
}
virtuoso_package() {
pkg_install() {
vmove all
# remove conflicts with virtuoso-base
2013-07-27 03:58:57 +02:00
rm ${PKGDESTDIR}/usr/bin/isql{,w-vt}
2013-06-26 09:38:24 +02:00
rm ${PKGDESTDIR}/usr/bin/virtuoso-t
rm ${PKGDESTDIR}/usr/lib/libvirtuoso-t.a
rm ${PKGDESTDIR}/usr/lib/virtodbc.{a,so}
rm ${PKGDESTDIR}/usr/lib/virtodbc_r.{a,so}
rm ${PKGDESTDIR}/usr/lib/virtodbcu.{a,so}
rm ${PKGDESTDIR}/usr/lib/virtodbcu_r.{a,so}
# remove static libs.
rm -f ${PKGDESTDIR}/usr/lib/virtuoso/hosting/*.a
}
}