annotate src/libical.mk @ 3048:5ef49fb3299d

treat gcc and binutils as build tools use a separate target for building the cmake toolchain file don't unpack gcc or binutils if we are using the system compiler
author John W. Eaton <jwe@octave.org>
date Fri, 14 Jun 2013 16:51:29 -0400
parents 951da75fd09c
children 13be64f9f16d
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: 2191
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.
1572
eb54a6ddf734 new package libical
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
3
eb54a6ddf734 new package libical
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
4 PKG := libical
2184
c1915a09ac58 update package libical
Gareth Coco <garethcoco@gmail.com>
parents: 1576
diff changeset
5 $(PKG)_CHECKSUM := 4693cd0438be9f3727146ac1a46aa5b1b93b8c86
1572
eb54a6ddf734 new package libical
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
6 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
eb54a6ddf734 new package libical
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
7 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
eb54a6ddf734 new package libical
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
8 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/freeassociation/$(PKG)/$(PKG)-$($(PKG)_VERSION)/$($(PKG)_FILE)
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
9 $(PKG)_DEPS :=
1572
eb54a6ddf734 new package libical
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
10
eb54a6ddf734 new package libical
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
11 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
12 $(WGET) -q -O- 'http://sourceforge.net/projects/freeassociation/files/$(PKG)/' | \
1572
eb54a6ddf734 new package libical
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
13 $(SED) -n 's,.*/$(PKG)-\([0-9][^"]*\)/".*,\1,p' | \
eb54a6ddf734 new package libical
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
14 head -1
eb54a6ddf734 new package libical
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
15 endef
eb54a6ddf734 new package libical
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
16
eb54a6ddf734 new package libical
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
17 define $(PKG)_BUILD
2184
c1915a09ac58 update package libical
Gareth Coco <garethcoco@gmail.com>
parents: 1576
diff changeset
18 cd '$(1)' && mkdir build
c1915a09ac58 update package libical
Gareth Coco <garethcoco@gmail.com>
parents: 1576
diff changeset
19 cd '$(1)/build' && cmake .. \
c1915a09ac58 update package libical
Gareth Coco <garethcoco@gmail.com>
parents: 1576
diff changeset
20 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
2191
bad1e79c931f Allow parallel builds in libical.
Gareth Coco <garethcoco@gmail.com>
parents: 2184
diff changeset
21 -DSTATIC_LIBRARY=true \
bad1e79c931f Allow parallel builds in libical.
Gareth Coco <garethcoco@gmail.com>
parents: 2184
diff changeset
22 -DHAVE_PTHREAD_H=false \
bad1e79c931f Allow parallel builds in libical.
Gareth Coco <garethcoco@gmail.com>
parents: 2184
diff changeset
23 -DCMAKE_HAVE_PTHREAD_H=false
bad1e79c931f Allow parallel builds in libical.
Gareth Coco <garethcoco@gmail.com>
parents: 2184
diff changeset
24 $(MAKE) -C '$(1)/build' -j '$(JOBS)' ical-header
2184
c1915a09ac58 update package libical
Gareth Coco <garethcoco@gmail.com>
parents: 1576
diff changeset
25 $(MAKE) -C '$(1)/build' -j '$(JOBS)'
2191
bad1e79c931f Allow parallel builds in libical.
Gareth Coco <garethcoco@gmail.com>
parents: 2184
diff changeset
26 $(MAKE) -C '$(1)/build' -j 1 install
2184
c1915a09ac58 update package libical
Gareth Coco <garethcoco@gmail.com>
parents: 1576
diff changeset
27
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
28 '$(MXE_CC)' \
1575
88ff38801bc7 package libical: add test program
Tony Theodore <tonyt@logyst.com>
parents: 1574
diff changeset
29 -W -Wall -Werror -ansi -pedantic \
3014
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
30 '$(2).c' -o '$(HOST_BINDIR)/test-libical.exe' \
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
31 `'$(MXE_PKG_CONFIG)' libical --cflags --libs`
1572
eb54a6ddf734 new package libical
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
32 endef