Mercurial > mxe-octave
annotate src/libical.mk @ 5541:d862fd40cc42
Use ccache for packages built with cmake.
* Makefile.in: New variable CMAKE_CCACHE_FLAGS.
* src/armadillo.mk, src/cgal.mk, src/cmake.mk, src/cminpack,
src/double-conversion.mk, src/eigen.mk, src/gdcm.mk, src/gl2ps.mk,
src/hdf5.mk, src/lapack.mk, src/libical.mk, src/libproxy, src/llvm.mk,
src/of-dicom.mk, src/openal.mk, src/opencv.mk, src/openexr.mk,
src/openscenegraph.mk, src/physfs.mk, src/qhull.mk, src/qjson.mk,
src/rapidjson.mk, src/suitesparse.mk, src/sundials-ida.mk, src/taglib.mk,
src/vigra.mk, src/vmime.mk, src/vtk.mk, src/wt.mk: Add new variable to cmake
flags. Harmonize indentation in files.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sun, 20 Sep 2020 11:57:01 +0200 |
parents | 13be64f9f16d |
children | b19fb3ed330c |
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 .. \ | |
5541
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
3480
diff
changeset
|
21 $(CMAKE_CCACHE_FLAGS) \ |
2184 | 22 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ |
2191
bad1e79c931f
Allow parallel builds in libical.
Gareth Coco <garethcoco@gmail.com>
parents:
2184
diff
changeset
|
23 -DSTATIC_LIBRARY=true \ |
bad1e79c931f
Allow parallel builds in libical.
Gareth Coco <garethcoco@gmail.com>
parents:
2184
diff
changeset
|
24 -DHAVE_PTHREAD_H=false \ |
bad1e79c931f
Allow parallel builds in libical.
Gareth Coco <garethcoco@gmail.com>
parents:
2184
diff
changeset
|
25 -DCMAKE_HAVE_PTHREAD_H=false |
bad1e79c931f
Allow parallel builds in libical.
Gareth Coco <garethcoco@gmail.com>
parents:
2184
diff
changeset
|
26 $(MAKE) -C '$(1)/build' -j '$(JOBS)' ical-header |
2184 | 27 $(MAKE) -C '$(1)/build' -j '$(JOBS)' |
2191
bad1e79c931f
Allow parallel builds in libical.
Gareth Coco <garethcoco@gmail.com>
parents:
2184
diff
changeset
|
28 $(MAKE) -C '$(1)/build' -j 1 install |
2184 | 29 |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
30 '$(MXE_CC)' \ |
1575
88ff38801bc7
package libical: add test program
Tony Theodore <tonyt@logyst.com>
parents:
1574
diff
changeset
|
31 -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
|
32 '$(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
|
33 `'$(MXE_PKG_CONFIG)' libical --cflags --libs` |
1572 | 34 endef |