void-packages/srcpkgs/virtuoso/template

51 lines
1.6 KiB
Text
Raw Normal View History

2013-06-26 07:38:24 +00:00
# Template file for 'virtuoso'
pkgname=virtuoso
version=6.1.8
revision=1
2013-06-26 07:38:24 +00:00
build_style=gnu-configure
wrksrc="${pkgname}-opensource-${version}"
hostmakedepends="flex gperf net-tools"
makedepends="libressl-devel libldap-devel readline-devel>=6.3 libxml2-devel mit-krb5-devel"
2013-06-26 07:38:24 +00:00
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"
checksum=08d05c6165117de0370e81aa89ddab618e645b5110be301f72e6ffea7044ca50
2013-06-26 07:38:24 +00:00
2013-07-27 01:58:57 +00: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-07-27 01:58:57 +00:00
}
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/hosting/*.a
}
2013-06-26 07:38:24 +00: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}
}
}