Mercurial > mxe-octave
annotate src/libical.mk @ 2525:4d0f3a9da57e
all packages: use $(WGET) portability variable
author | Tony Theodore <tonyt@logyst.com> |
---|---|
date | Wed, 09 May 2012 01:16:05 +1000 |
parents | b5321bdec505 |
children | 100e618349f7 |
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 | |
2184 | 5 $(PKG)_CHECKSUM := 4693cd0438be9f3727146ac1a46aa5b1b93b8c86 |
1572 | 6 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
7 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz | |
8 $(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
|
9 $(PKG)_DEPS := gcc |
1572 | 10 |
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 | 13 $(SED) -n 's,.*/$(PKG)-\([0-9][^"]*\)/".*,\1,p' | \ |
14 head -1 | |
15 endef | |
16 | |
17 define $(PKG)_BUILD | |
2184 | 18 cd '$(1)' && mkdir build |
19 cd '$(1)/build' && cmake .. \ | |
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 | 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 | 27 |
1575
88ff38801bc7
package libical: add test program
Tony Theodore <tonyt@logyst.com>
parents:
1574
diff
changeset
|
28 '$(TARGET)-gcc' \ |
88ff38801bc7
package libical: add test program
Tony Theodore <tonyt@logyst.com>
parents:
1574
diff
changeset
|
29 -W -Wall -Werror -ansi -pedantic \ |
88ff38801bc7
package libical: add test program
Tony Theodore <tonyt@logyst.com>
parents:
1574
diff
changeset
|
30 '$(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
|
31 `'$(TARGET)-pkg-config' libical --cflags --libs` |
1572 | 32 endef |