Mercurial > mxe-octave
annotate src/vigra.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:
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 # vigra | |
5 PKG := vigra | |
6 $(PKG)_IGNORE := | |
1997 | 7 $(PKG)_CHECKSUM := 09f1d506c2748ebeb7d9f1c77ce387f9e7b837d2 |
1566 | 8 $(PKG)_SUBDIR := vigra-$(word 1,$(subst -, ,$($(PKG)_VERSION))) |
9 $(PKG)_FILE := vigra-$($(PKG)_VERSION)-src.tar.gz | |
10 $(PKG)_URL := $($(PKG)_WEBSITE)/$($(PKG)_FILE) | |
1997 | 11 $(PKG)_DEPS := gcc jpeg tiff libpng openexr |
1566 | 12 |
13 define $(PKG)_UPDATE | |
14 wget -q -O- 'http://hci.iwr.uni-heidelberg.de/vigra/' | \ | |
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 | |
2000
71731b1b00ca
Cleanup for package vigra: compile test program directly with g++ instead of gcc with -lstdc++
Volker Grabsch <vog@notjusthosting.com>
parents:
1999
diff
changeset
|
37 $(TARGET)-g++ \ |
1566 | 38 '$(2).cpp' -o $(PREFIX)/$(TARGET)/bin/test-vigra.exe \ |
39 -DVIGRA_STATIC_LIB \ | |
2183
0a1c7cb195fa
packages sdl_image vigra: use pkg-config for png and tiff
Mark Brand <mabrand@mabrand.nl>
parents:
2000
diff
changeset
|
40 -lvigraimpex `'$(TARGET)-pkg-config' OpenEXR libtiff-4 libpng --cflags --libs` -ljpeg |
1566 | 41 endef |