aboutsummaryrefslogtreecommitdiffstats
path: root/testing/wt/APKBUILD
blob: e0916c68b4aefb2c8bbf0770cca7f9fc6899faa4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=wt
pkgver=3.3.4
_pkgver=3.3.4
pkgrel=0
pkgdesc="A C++ library and application server for developing and deploying web applications"
url="http://www.webtoolkit.eu"
arch="all"
license="GPL"
depends=""
depends_dev="zlib-dev boost-dev sqlite-dev mesa-dev glu-dev graphicsmagick-dev 
	openssl-dev pango-dev sqlite-dev fcgi-dev postgresql-dev qt-dev libharu-dev"
makedepends="$depends_dev cmake boost"
install=""
pkgroups="wt"
pkgusers="wt"
subpackages="$pkgname-dev"
source="http://downloads.sourceforge.net/witty/$pkgname-${_pkgver}.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	mkdir -p build && cd build
	cmake \
	      -DCONNECTOR_HTTP=ON \
	      -DWT_CPP_11_MODE=-std=c++11 \
	      -DWT_WRASTERIMAGE_IMPLEMENTATION=GraphicsMagick \
	      -DCMAKE_INSTALL_PREFIX=/usr \
	      -DWEBUSER=$pkgusers \
	      -DWEBGROUP=$pkggroups \
	      -DRUNDIR="$pkgdir"/var/run/wt \
	      -DUSE_SYSTEM_SQLITE3=ON \
	      -DINSTALL_EXAMPLES=ON \
	      -DBUILD_EXAMPLES=OFF \
	      -DINSTALL_FINDWT_CMAKE_FILE=ON \
	..
	make || return 1

}

package() {
	cd "$_builddir"/build
	make DESTDIR=$pkgdir install
	rm -r $pkgdir/usr/cmake
	rm -rf $pkgdir/var/run
}

md5sums="fdbb6042c7d6901e254685966ff55fac  wt-3.3.4.tar.gz"
sha256sums="327f9c64504366e3f2fa2c8f1d1a23efc7b8fba8ace3869de375d668f99ede10  wt-3.3.4.tar.gz"
sha512sums="1deff3fe325b8e009713bcbc388058d025864b3724bf1cf1cb3c36e909520046189d4a13de0adbff5c11d171536819b687d598d125b4041dd78bb4a3c5a6c279  wt-3.3.4.tar.gz"