Mercurial > mxe-octave
annotate src/vigra.mk @ 2365:b5321bdec505
Move full package names from src/*.mk into package list (index.html)
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Thu, 29 Mar 2012 21:41:44 +0200 |
parents | 99516e73b368 |
children | f4f7bd9a7a17 |
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 := | |
1997 | 6 $(PKG)_CHECKSUM := 09f1d506c2748ebeb7d9f1c77ce387f9e7b837d2 |
1566 | 7 $(PKG)_SUBDIR := vigra-$(word 1,$(subst -, ,$($(PKG)_VERSION))) |
8 $(PKG)_FILE := vigra-$($(PKG)_VERSION)-src.tar.gz | |
9 $(PKG)_URL := $($(PKG)_WEBSITE)/$($(PKG)_FILE) | |
1997 | 10 $(PKG)_DEPS := gcc jpeg tiff libpng openexr |
1566 | 11 |
12 define $(PKG)_UPDATE | |
13 wget -q -O- 'http://hci.iwr.uni-heidelberg.de/vigra/' | \ | |
14 grep 'Sources' | \ | |
15 grep '<a href="vigra' | \ | |
16 $(SED) -n 's,.*"vigra-\([0-9][^"]*\)-src.*,\1,p' | \ | |
17 head | |
18 endef | |
19 | |
20 define $(PKG)_BUILD | |
21 # Make sure the package gets built statically | |
22 # NB: we're not actually building vigranumpy, but preparing it in case we ever will won't hurt | |
23 $(SED) -i 's,\bSHARED\b,STATIC,' '$(1)/src/impex/CMakeLists.txt' | |
24 $(SED) -i 's,\bSHARED\b,STATIC,' '$(1)/config/VIGRA_ADD_NUMPY_MODULE.cmake' | |
25 $(SED) -i 's,\bSHARED\b,STATIC,' '$(1)/vigranumpy/test/CMakeLists.txt' | |
26 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
|
27 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
|
28 -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
|
29 -DLIBTYPE=STATIC \ |
9577f70222f8
add cmake toolchain file and simplify build rules of relevant packages
Tony Theodore <tonyt@logyst.com>
parents:
1566
diff
changeset
|
30 -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
|
31 -DWITH_HDF5=OFF \ |
9577f70222f8
add cmake toolchain file and simplify build rules of relevant packages
Tony Theodore <tonyt@logyst.com>
parents:
1566
diff
changeset
|
32 -DWITH_VIGRANUMPY=OFF \ |
1566 | 33 -DWITH_VALGRIND=OFF |
34 $(MAKE) -C '$(1)/build' -j '$(JOBS)' install | |
35 | |
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
|
36 $(TARGET)-g++ \ |
1566 | 37 '$(2).cpp' -o $(PREFIX)/$(TARGET)/bin/test-vigra.exe \ |
38 -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
|
39 -lvigraimpex `'$(TARGET)-pkg-config' OpenEXR libtiff-4 libpng --cflags --libs` -ljpeg |
1566 | 40 endef |