2015-10-24 01:13:10 +00:00
|
|
|
# $Id$
|
|
|
|
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
|
|
|
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
|
|
|
|
# Contributor: Denis Martinez <deuns.martinez@gmail.com>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - add -fsigned-char to cflags
|
|
|
|
|
|
|
|
pkgname=wt
|
2016-01-11 19:13:16 +00:00
|
|
|
pkgver=3.3.5
|
|
|
|
_pkgver=3.3.5
|
2016-05-14 15:47:59 +00:00
|
|
|
pkgrel=4
|
2015-10-24 01:13:10 +00:00
|
|
|
pkgdesc="a C++ library and application server for developing and deploying web applications"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://www.webtoolkit.eu/"
|
|
|
|
license=('GPL')
|
|
|
|
depends=('boost-libs' 'libharu' 'graphicsmagick' 'pango' 'zlib')
|
|
|
|
makedepends=('boost' 'cmake' 'postgresql-libs' 'fcgi' 'sqlite' 'mysql++' 'qt4' 'doxygen' 'mesa' 'glu')
|
|
|
|
optdepends=('openssl: for SSL support in built-in webserver'
|
|
|
|
'fcgi: for FastCGI support'
|
|
|
|
'postgresql-libs: for PostgreSQL Dbo support'
|
|
|
|
'sqlite: for Sqlite Dbo support'
|
|
|
|
'mysql++: for the hangman example'
|
|
|
|
'qt4: for the Wt/Qt interopability example (wtwithqt)')
|
|
|
|
backup=('etc/wt/wt_config.xml')
|
2015-11-04 19:07:33 +00:00
|
|
|
source=(https://github.com/kdeforche/wt/archive/${_pkgver}.tar.gz)
|
2016-01-11 19:13:16 +00:00
|
|
|
md5sums=('ccc5a85526104da720f2b9fed4c1db4e')
|
2015-10-24 01:13:10 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd ${srcdir}/${pkgname}-${_pkgver}
|
|
|
|
|
|
|
|
CFLAGS+=" -fsigned-char"
|
|
|
|
CXXFLAGS+=" -fsigned-char"
|
|
|
|
|
|
|
|
[[ -d build ]] && rm -r build
|
|
|
|
mkdir -p build && cd build
|
|
|
|
cmake \
|
|
|
|
-DCONNECTOR_HTTP=ON \
|
|
|
|
-DWT_CPP_11_MODE=-std=c++11 \
|
2015-11-05 06:56:37 +00:00
|
|
|
-DCONFIGDIR=/etc \
|
2015-10-24 01:13:10 +00:00
|
|
|
-DWT_WRASTERIMAGE_IMPLEMENTATION=GraphicsMagick \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DWEBUSER=http \
|
|
|
|
-DWEBGROUP=http \
|
|
|
|
-DUSE_SYSTEM_SQLITE3=ON \
|
|
|
|
-DINSTALL_EXAMPLES=ON \
|
2015-11-04 19:07:33 +00:00
|
|
|
-DBUILD_EXAMPLES=ON \
|
2015-10-24 01:13:10 +00:00
|
|
|
-DINSTALL_FINDWT_CMAKE_FILE=ON \
|
|
|
|
..
|
|
|
|
# build examples again when they are compatible with boost 1.58
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd ${srcdir}/${pkgname}-${_pkgver}/build
|
|
|
|
|
|
|
|
make DESTDIR=${pkgdir} install
|
|
|
|
}
|