Mercurial > mxe-octave
annotate src/vigra.mk @ 4090:d6f9b54851b5
l: update to v1.11.4
* src/gdal.mk: update version, checksum, install gdal.pc file
author | John Donoghue |
---|---|
date | Mon, 08 Feb 2016 12:53:00 -0500 |
parents | ae4193aad5fe |
children | d862fd40cc42 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2183
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. |
1566 | 3 |
4 PKG := vigra | |
5 $(PKG)_IGNORE := | |
3480
13be64f9f16d
move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents:
3048
diff
changeset
|
6 $(PKG)_VERSION := 1.9.0 |
2844 | 7 $(PKG)_CHECKSUM := 6e4981f4ce75932ec62df6523f577c327f885ba0 |
1566 | 8 $(PKG)_SUBDIR := vigra-$(word 1,$(subst -, ,$($(PKG)_VERSION))) |
9 $(PKG)_FILE := vigra-$($(PKG)_VERSION)-src.tar.gz | |
2367
f4f7bd9a7a17
Bugfix: Don't make use of outdated $(PKG)_WEBSITE variables
Volker Grabsch <vog@notjusthosting.com>
parents:
2365
diff
changeset
|
10 $(PKG)_URL := http://hci.iwr.uni-heidelberg.de/vigra/$($(PKG)_FILE) |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
11 $(PKG)_DEPS := jpeg tiff libpng openexr |
1566 | 12 |
13 define $(PKG)_UPDATE | |
3561
ae4193aad5fe
revise and enable more $(PKG)_UPDATE rules
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
14 echo 'Warning: Updates are temporarily disabled for package $(PKG).' >&2; |
ae4193aad5fe
revise and enable more $(PKG)_UPDATE rules
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
15 echo $($(PKG)_VERSION) |
1566 | 16 endef |
17 | |
18 define $(PKG)_BUILD | |
19 # Make sure the package gets built statically | |
20 # NB: we're not actually building vigranumpy, but preparing it in case we ever will won't hurt | |
21 $(SED) -i 's,\bSHARED\b,STATIC,' '$(1)/src/impex/CMakeLists.txt' | |
22 $(SED) -i 's,\bSHARED\b,STATIC,' '$(1)/config/VIGRA_ADD_NUMPY_MODULE.cmake' | |
23 $(SED) -i 's,\bSHARED\b,STATIC,' '$(1)/vigranumpy/test/CMakeLists.txt' | |
24 mkdir '$(1)/build' | |
1663
9577f70222f8
add cmake toolchain file and simplify build rules of relevant packages
Tony Theodore <tonyt@logyst.com>
parents:
1566
diff
changeset
|
25 cd '$(1)/build' && cmake .. \ |
9577f70222f8
add cmake toolchain file and simplify build rules of relevant packages
Tony Theodore <tonyt@logyst.com>
parents:
1566
diff
changeset
|
26 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ |
9577f70222f8
add cmake toolchain file and simplify build rules of relevant packages
Tony Theodore <tonyt@logyst.com>
parents:
1566
diff
changeset
|
27 -DLIBTYPE=STATIC \ |
9577f70222f8
add cmake toolchain file and simplify build rules of relevant packages
Tony Theodore <tonyt@logyst.com>
parents:
1566
diff
changeset
|
28 -DVIGRA_STATIC_LIB=1 \ |
9577f70222f8
add cmake toolchain file and simplify build rules of relevant packages
Tony Theodore <tonyt@logyst.com>
parents:
1566
diff
changeset
|
29 -DWITH_HDF5=OFF \ |
9577f70222f8
add cmake toolchain file and simplify build rules of relevant packages
Tony Theodore <tonyt@logyst.com>
parents:
1566
diff
changeset
|
30 -DWITH_VIGRANUMPY=OFF \ |
1566 | 31 -DWITH_VALGRIND=OFF |
32 $(MAKE) -C '$(1)/build' -j '$(JOBS)' install | |
33 | |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
34 $(MXE_CXX) \ |
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
|
35 '$(2).cpp' -o $(HOST_BINDIR)/test-vigra.exe \ |
1566 | 36 -DVIGRA_STATIC_LIB \ |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
37 -lvigraimpex `'$(MXE_PKG_CONFIG)' OpenEXR libtiff-4 libpng --cflags --libs` -ljpeg |
1566 | 38 endef |