annotate src/wt.mk @ 2281:158396fb40ff

Some fixes in wt library: * build outside your source directory * boost shared off * added patch to libharu taken from http://redmine.webtoolkit.eu/projects/wt/wiki/LibHaru regards, Luis
author Luis Saavedra <luis94855510@gmail.com>
date Wed, 14 Mar 2012 13:49:25 -0300
parents 06a3683cf20e
children c05109ece25a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2234
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
1 # This file is part of mingw-cross-env.
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
2 # See doc/index.html for further information.
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
3
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
4 # Wt
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
5 PKG := wt
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
6 $(PKG)_IGNORE :=
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
7 $(PKG)_VERSION := 3.2.0
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
8 $(PKG)_CHECKSUM := 38cf20980f16b0970c42ace45fd62edb28b6358b
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
9 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
10 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
11 $(PKG)_WEBSITE := http://witty.sourceforge.net/
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
12 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/witty/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE)
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
13 $(PKG)_DEPS := gcc boost openssl libharu graphicsmagick pango postgresql sqlite qt
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
14
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
15 define $(PKG)_UPDATE
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
16 wget -q -O- 'http://sourceforge.net/projects/witty/files/witty/' | \
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
17 $(SED) -n 's,.*wt-\([0-9][^>]*\)\.tar.*,\1,p' | \
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
18 tail -1
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
19 endef
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
20
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
21 define $(PKG)_BUILD
2281
158396fb40ff Some fixes in wt library:
Luis Saavedra <luis94855510@gmail.com>
parents: 2277
diff changeset
22 # build wt libraries
158396fb40ff Some fixes in wt library:
Luis Saavedra <luis94855510@gmail.com>
parents: 2277
diff changeset
23 mkdir '$(1).build'
158396fb40ff Some fixes in wt library:
Luis Saavedra <luis94855510@gmail.com>
parents: 2277
diff changeset
24 cd '$(1).build' && cmake \
158396fb40ff Some fixes in wt library:
Luis Saavedra <luis94855510@gmail.com>
parents: 2277
diff changeset
25 -DCONFIGDIR='$(PREFIX)/$(TARGET)/etc/wt' \
2277
06a3683cf20e package wt: disable examples, tests, shared libs
Tony Theodore <tonyt@logyst.com>
parents: 2234
diff changeset
26 -DBUILD_EXAMPLES=OFF \
06a3683cf20e package wt: disable examples, tests, shared libs
Tony Theodore <tonyt@logyst.com>
parents: 2234
diff changeset
27 -DBUILD_TESTS=OFF \
06a3683cf20e package wt: disable examples, tests, shared libs
Tony Theodore <tonyt@logyst.com>
parents: 2234
diff changeset
28 -DSHARED_LIBS=OFF \
2281
158396fb40ff Some fixes in wt library:
Luis Saavedra <luis94855510@gmail.com>
parents: 2277
diff changeset
29 -DBOOST_DYNAMIC=OFF \
2234
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
30 -DBOOST_PREFIX='$(PREFIX)/$(TARGET)' \
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
31 -DBOOST_COMPILER=_win32 \
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
32 -DSSL_PREFIX='$(PREFIX)/$(TARGET)' \
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
33 -DOPENSSL_LIBS="`'$(TARGET)-pkg-config' --libs-only-l openssl`" \
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
34 -DGM_PREFIX='$(PREFIX)/$(TARGET)' \
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
35 -DGM_LIBS="`'$(TARGET)-pkg-config' --libs-only-l GraphicsMagick++`" \
2281
158396fb40ff Some fixes in wt library:
Luis Saavedra <luis94855510@gmail.com>
parents: 2277
diff changeset
36 -DPANGO_FT2_LIBS="`'$(TARGET)-pkg-config' --libs-only-l pangoft2`" \
158396fb40ff Some fixes in wt library:
Luis Saavedra <luis94855510@gmail.com>
parents: 2277
diff changeset
37 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
158396fb40ff Some fixes in wt library:
Luis Saavedra <luis94855510@gmail.com>
parents: 2277
diff changeset
38 -DCMAKE_BUILD_TYPE:STRING="Release" \
158396fb40ff Some fixes in wt library:
Luis Saavedra <luis94855510@gmail.com>
parents: 2277
diff changeset
39 '$(1)'
158396fb40ff Some fixes in wt library:
Luis Saavedra <luis94855510@gmail.com>
parents: 2277
diff changeset
40 $(MAKE) -C '$(1).build' -j '$(JOBS)' install VERBOSE=1
2234
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
41 endef