2012-07-05 07:47:50 +08:00
#
# Platform Packages for Chakra, part of chakra-project.org
#
# maintainer abveritas@chakra-project.org
pkgname = virtuoso
2013-01-10 11:41:18 +08:00
pkgver = 6.1.6
pkgrel = 1
arch = ( 'x86_64' )
2012-07-05 07:47:50 +08:00
pkgdesc = 'A scalable cross-platform server that combines SQL/RDF/XML Data Management with Web Application Server and Web Services Platform functionality'
url = 'http://virtuoso.openlinksw.com/wiki/main/Main/'
license = ( 'GPL' )
depends = ( 'libldap' )
2012-07-07 01:57:27 +08:00
makedepends = ( 'bison' 'flex' 'gperf' 'gawk' 'm4' 'openssl' 'zlib' 'python2' 'unixodbc' 'libiodbc' )
2012-07-05 07:47:50 +08:00
options = ( '!libtool' )
2013-01-10 11:41:18 +08:00
source = ( " http://downloads.sourceforge.net/ ${ pkgname } / ${ pkgname } -opensource- ${ pkgver } .tar.gz " )
md5sums = ( '3991149c570f3738c3e819ce603e487f' )
2012-07-05 07:47:50 +08:00
build( ) {
2013-01-10 11:41:18 +08:00
cd ${ srcdir } /virtuoso-opensource-${ pkgver }
2012-07-05 07:47:50 +08:00
2012-07-07 01:57:27 +08:00
CFLAGS = " $CFLAGS -I/usr/include/libiodbc "
CXXFLAGS = " $CXXFLAGS -I/usr/include/libiodbc/ "
LDFLAGS = " $LDFLAGS -L/usr/include/libiodbc/ "
2012-07-05 07:47:50 +08:00
./autogen.sh
2012-07-07 01:57:27 +08:00
./configure --without-internal-zlib \
--prefix= /usr \
2012-07-05 07:47:50 +08:00
--localstatedir= /var \
--sysconfdir= /etc \
--disable-rendezvous \
--disable-hslookup \
2012-07-07 01:57:27 +08:00
--disable-all-vads \
--disable-static \
--enable-python \
--with-iodbc= /usr/include/libiodbc/
2012-07-05 07:47:50 +08:00
make
}
package( ) {
# install server
2013-01-10 11:41:18 +08:00
cd ${ srcdir } /virtuoso-opensource-${ pkgver } /binsrc/virtuoso
2012-07-05 07:47:50 +08:00
make DESTDIR = ${ pkgdir } install
# install driver
2013-01-10 11:41:18 +08:00
cd ${ srcdir } /virtuoso-opensource-${ pkgver } /binsrc/driver
2012-07-05 07:47:50 +08:00
make DESTDIR = ${ pkgdir } install
2012-07-07 01:57:27 +08:00
# Install some useful tools; rename to avoid conflicts
for bin in isql isqlw; do
2013-01-10 11:41:18 +08:00
install -Dm755 ${ srcdir } /virtuoso-opensource-${ pkgver } /binsrc/tests/$bin \
${ pkgdir } /usr/bin/$bin -vt
2012-07-07 01:57:27 +08:00
done
2012-07-05 07:47:50 +08:00
}