Mercurial > mxe-octave
annotate src/libical.mk @ 3991:1097fc39e9a9
of-io: update to v 2.2.9
* src/of-io.mk: update version, checksum
* build_packages.m: update io version
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Fri, 10 Jul 2015 22:12:05 -0400 |
parents | 13be64f9f16d |
children | d862fd40cc42 |
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 | 3 |
4 PKG := libical | |
3480
13be64f9f16d
move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents:
3048
diff
changeset
|
5 $(PKG)_VERSION := 0.48 |
2184 | 6 $(PKG)_CHECKSUM := 4693cd0438be9f3727146ac1a46aa5b1b93b8c86 |
1572 | 7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
8 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz | |
9 $(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
|
10 $(PKG)_DEPS := |
1572 | 11 |
12 define $(PKG)_UPDATE | |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2365
diff
changeset
|
13 $(WGET) -q -O- 'http://sourceforge.net/projects/freeassociation/files/$(PKG)/' | \ |
1572 | 14 $(SED) -n 's,.*/$(PKG)-\([0-9][^"]*\)/".*,\1,p' | \ |
15 head -1 | |
16 endef | |
17 | |
18 define $(PKG)_BUILD | |
2184 | 19 cd '$(1)' && mkdir build |
20 cd '$(1)/build' && cmake .. \ | |
21 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ | |
2191
bad1e79c931f
Allow parallel builds in libical.
Gareth Coco <garethcoco@gmail.com>
parents:
2184
diff
changeset
|
22 -DSTATIC_LIBRARY=true \ |
bad1e79c931f
Allow parallel builds in libical.
Gareth Coco <garethcoco@gmail.com>
parents:
2184
diff
changeset
|
23 -DHAVE_PTHREAD_H=false \ |
bad1e79c931f
Allow parallel builds in libical.
Gareth Coco <garethcoco@gmail.com>
parents:
2184
diff
changeset
|
24 -DCMAKE_HAVE_PTHREAD_H=false |
bad1e79c931f
Allow parallel builds in libical.
Gareth Coco <garethcoco@gmail.com>
parents:
2184
diff
changeset
|
25 $(MAKE) -C '$(1)/build' -j '$(JOBS)' ical-header |
2184 | 26 $(MAKE) -C '$(1)/build' -j '$(JOBS)' |
2191
bad1e79c931f
Allow parallel builds in libical.
Gareth Coco <garethcoco@gmail.com>
parents:
2184
diff
changeset
|
27 $(MAKE) -C '$(1)/build' -j 1 install |
2184 | 28 |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
29 '$(MXE_CC)' \ |
1575
88ff38801bc7
package libical: add test program
Tony Theodore <tonyt@logyst.com>
parents:
1574
diff
changeset
|
30 -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
|
31 '$(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
|
32 `'$(MXE_PKG_CONFIG)' libical --cflags --libs` |
1572 | 33 endef |