Mercurial > mxe-octave
annotate src/vigra.mk @ 3480:13be64f9f16d
move version info from index.html to src/*.mk files
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 31 Jan 2014 16:04:01 -0500 |
parents | 5ef49fb3299d |
children | ae4193aad5fe |
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 | |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2367
diff
changeset
|
14 $(WGET) -q -O- 'http://hci.iwr.uni-heidelberg.de/vigra/' | \ |
1566 | 15 grep 'Sources' | \ |
16 grep '<a href="vigra' | \ | |
17 $(SED) -n 's,.*"vigra-\([0-9][^"]*\)-src.*,\1,p' | \ | |
18 head | |
19 endef | |
20 | |
21 define $(PKG)_BUILD | |
22 # Make sure the package gets built statically | |
23 # NB: we're not actually building vigranumpy, but preparing it in case we ever will won't hurt | |
24 $(SED) -i 's,\bSHARED\b,STATIC,' '$(1)/src/impex/CMakeLists.txt' | |
25 $(SED) -i 's,\bSHARED\b,STATIC,' '$(1)/config/VIGRA_ADD_NUMPY_MODULE.cmake' | |
26 $(SED) -i 's,\bSHARED\b,STATIC,' '$(1)/vigranumpy/test/CMakeLists.txt' | |
27 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
|
28 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
|
29 -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
|
30 -DLIBTYPE=STATIC \ |
9577f70222f8
add cmake toolchain file and simplify build rules of relevant packages
Tony Theodore <tonyt@logyst.com>
parents:
1566
diff
changeset
|
31 -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
|
32 -DWITH_HDF5=OFF \ |
9577f70222f8
add cmake toolchain file and simplify build rules of relevant packages
Tony Theodore <tonyt@logyst.com>
parents:
1566
diff
changeset
|
33 -DWITH_VIGRANUMPY=OFF \ |
1566 | 34 -DWITH_VALGRIND=OFF |
35 $(MAKE) -C '$(1)/build' -j '$(JOBS)' install | |
36 | |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
37 $(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
|
38 '$(2).cpp' -o $(HOST_BINDIR)/test-vigra.exe \ |
1566 | 39 -DVIGRA_STATIC_LIB \ |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
40 -lvigraimpex `'$(MXE_PKG_CONFIG)' OpenEXR libtiff-4 libpng --cflags --libs` -ljpeg |
1566 | 41 endef |