blob: a4c7990969ecc172f276a22d479105d9fde3193b (
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
|
# This file is part of mingw-cross-env.
# See doc/index.html for further information.
# Wt
PKG := wt
$(PKG)_IGNORE :=
$(PKG)_VERSION := 3.2.0
$(PKG)_CHECKSUM := 38cf20980f16b0970c42ace45fd62edb28b6358b
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE := http://witty.sourceforge.net/
$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/witty/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS := gcc boost openssl libharu graphicsmagick pango postgresql sqlite qt
define $(PKG)_UPDATE
wget -q -O- 'http://sourceforge.net/projects/witty/files/witty/' | \
$(SED) -n 's,.*wt-\([0-9][^>]*\)\.tar.*,\1,p' | \
tail -1
endef
define $(PKG)_BUILD
mkdir '$(1)/build'
cd '$(1)/build' && cmake .. \
-DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
-DCMAKE_BUILD_TYPE:STRING="Release" \
-DBUILD_EXAMPLES=OFF \
-DBUILD_TESTS=OFF \
-DSHARED_LIBS=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`"
$(MAKE) -C '$(1)/build' -j '$(JOBS)' install VERBOSE=1
endef
|