blob: fd5c75eed1b2ead268df96e158f2361201c3ef6e (
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
|
# This file is part of MXE.
# See index.html for further information.
PKG := wt
$(PKG)_IGNORE :=
$(PKG)_VERSION := 3.3.1
$(PKG)_CHECKSUM := 0ae889c1411864d783962d4878b90efbce7f3382
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/witty/$($(PKG)_FILE)
$(PKG)_DEPS := gcc boost openssl libharu graphicsmagick pango postgresql qt sqlite
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://sourceforge.net/projects/witty/files/wt/' | \
$(SED) -n 's,.*<a href="/projects/witty/files/wt/\([0-9][^>]*\)/.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
# build wt libraries
mkdir '$(1).build'
cd '$(1).build' && cmake \
-DCONFIGDIR='$(PREFIX)/$(TARGET)/etc/wt' \
-DBUILD_EXAMPLES=OFF \
-DBUILD_TESTS=OFF \
-DSHARED_LIBS=OFF \
-DBOOST_DYNAMIC=OFF \
-DBOOST_PREFIX='$(PREFIX)/$(TARGET)' \
-DBOOST_COMPILER=_win32 \
-DSSL_PREFIX='$(PREFIX)/$(TARGET)' \
-DOPENSSL_LIBS="`'$(TARGET)-pkg-config' --libs-only-l openssl`" \
-DGM_PREFIX='$(PREFIX)/$(TARGET)' \
-DGM_LIBS="`'$(TARGET)-pkg-config' --libs-only-l GraphicsMagick++`" \
-DPANGO_FT2_LIBS="`'$(TARGET)-pkg-config' --libs-only-l pangoft2`" \
-DENABLE_QT4=ON \
-DWT_CMAKE_FINDER_INSTALL_DIR='/lib/wt' \
-DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
'$(1)'
$(MAKE) -C '$(1).build' -j '$(JOBS)' install VERBOSE=1
endef
$(PKG)_BUILD_x86_64-w64-mingw32 =
|