annotate src/wt.mk @ 3012:100e618349f7

Improve handling of prefix directories by defining HOST_PREFIX and BUILD_TOOLS_PREFIX variables in top-level Makefile.
author John W. Eaton <jwe@octave.org>
date Sun, 02 Jun 2013 10:31:04 -0400
parents 11504b1a840f
children 951da75fd09c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2333
f653602a0500 Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents: 2282
diff changeset
1 # This file is part of MXE.
2353
99516e73b368 Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents: 2349
diff changeset
2 # See index.html for further information.
2234
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 PKG := wt
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
5 $(PKG)_IGNORE :=
2839
11504b1a840f update package wt
Mark Brand <mabrand@mabrand.nl>
parents: 2781
diff changeset
6 $(PKG)_CHECKSUM := d3870671a303d64878a1c9fe22765a643e515051
2234
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
8 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
2781
095252f38f87 update package wt
Mark Brand <mabrand@mabrand.nl>
parents: 2707
diff changeset
9 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/witty/$($(PKG)_FILE)
2282
c05109ece25a package wt: remove qt dep - only used in examples
Tony Theodore <tonyt@logyst.com>
parents: 2281
diff changeset
10 $(PKG)_DEPS := gcc boost openssl libharu graphicsmagick pango postgresql sqlite
2234
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
11
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
12 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2410
diff changeset
13 $(WGET) -q -O- 'http://sourceforge.net/projects/witty/files/witty/' | \
2234
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
14 $(SED) -n 's,.*wt-\([0-9][^>]*\)\.tar.*,\1,p' | \
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
15 tail -1
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
16 endef
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
17
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
18 define $(PKG)_BUILD
2281
158396fb40ff Some fixes in wt library:
Luis Saavedra <luis94855510@gmail.com>
parents: 2277
diff changeset
19 # build wt libraries
158396fb40ff Some fixes in wt library:
Luis Saavedra <luis94855510@gmail.com>
parents: 2277
diff changeset
20 mkdir '$(1).build'
158396fb40ff Some fixes in wt library:
Luis Saavedra <luis94855510@gmail.com>
parents: 2277
diff changeset
21 cd '$(1).build' && cmake \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2839
diff changeset
22 -DCONFIGDIR='$(HOST_PREFIX)/etc/wt' \
2277
06a3683cf20e package wt: disable examples, tests, shared libs
Tony Theodore <tonyt@logyst.com>
parents: 2234
diff changeset
23 -DBUILD_EXAMPLES=OFF \
06a3683cf20e package wt: disable examples, tests, shared libs
Tony Theodore <tonyt@logyst.com>
parents: 2234
diff changeset
24 -DBUILD_TESTS=OFF \
06a3683cf20e package wt: disable examples, tests, shared libs
Tony Theodore <tonyt@logyst.com>
parents: 2234
diff changeset
25 -DSHARED_LIBS=OFF \
2281
158396fb40ff Some fixes in wt library:
Luis Saavedra <luis94855510@gmail.com>
parents: 2277
diff changeset
26 -DBOOST_DYNAMIC=OFF \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2839
diff changeset
27 -DBOOST_PREFIX='$(HOST_PREFIX)' \
2234
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
28 -DBOOST_COMPILER=_win32 \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2839
diff changeset
29 -DSSL_PREFIX='$(HOST_PREFIX)' \
2234
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
30 -DOPENSSL_LIBS="`'$(TARGET)-pkg-config' --libs-only-l openssl`" \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2839
diff changeset
31 -DGM_PREFIX='$(HOST_PREFIX)' \
2234
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
32 -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
33 -DPANGO_FT2_LIBS="`'$(TARGET)-pkg-config' --libs-only-l pangoft2`" \
2410
cbcb88df00f6 package wt: add cmake finder install directory
Luis Saavedra <luis94855510@gmail.com>
parents: 2365
diff changeset
34 -DWT_CMAKE_FINDER_INSTALL_DIR='/lib/wt' \
2281
158396fb40ff Some fixes in wt library:
Luis Saavedra <luis94855510@gmail.com>
parents: 2277
diff changeset
35 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
158396fb40ff Some fixes in wt library:
Luis Saavedra <luis94855510@gmail.com>
parents: 2277
diff changeset
36 '$(1)'
158396fb40ff Some fixes in wt library:
Luis Saavedra <luis94855510@gmail.com>
parents: 2277
diff changeset
37 $(MAKE) -C '$(1).build' -j '$(JOBS)' install VERBOSE=1
2234
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
38 endef