Mercurial > mxe-octave
annotate src/libical.mk @ 2353:99516e73b368
Move doc/index.html -> index.html
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Thu, 29 Mar 2012 12:14:15 +0200 |
parents | f48c5b085a38 |
children | b5321bdec505 |
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 |
2184 | 4 # libical |
1572 | 5 PKG := libical |
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) | |
2191
bad1e79c931f
Allow parallel builds in libical.
Gareth Coco <garethcoco@gmail.com>
parents:
2184
diff
changeset
|
10 $(PKG)_DEPS := gcc |
1572 | 11 |
12 define $(PKG)_UPDATE | |
13 wget -q -O- 'http://sourceforge.net/projects/freeassociation/files/$(PKG)/' | \ | |
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 |
1575
88ff38801bc7
package libical: add test program
Tony Theodore <tonyt@logyst.com>
parents:
1574
diff
changeset
|
29 '$(TARGET)-gcc' \ |
88ff38801bc7
package libical: add test program
Tony Theodore <tonyt@logyst.com>
parents:
1574
diff
changeset
|
30 -W -Wall -Werror -ansi -pedantic \ |
88ff38801bc7
package libical: add test program
Tony Theodore <tonyt@logyst.com>
parents:
1574
diff
changeset
|
31 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-libical.exe' \ |
1576
f421ea8f1ff3
package libical: use $(TARGET)-pkg-config for test program
Tony Theodore <tonyt@logyst.com>
parents:
1575
diff
changeset
|
32 `'$(TARGET)-pkg-config' libical --cflags --libs` |
1572 | 33 endef |