Mercurial > mxe-octave
annotate src/vigra.mk @ 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
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 02 Jun 2013 16:59:24 -0400 |
parents | 100e618349f7 |
children | 951da75fd09c |
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 := | |
2844 | 6 $(PKG)_CHECKSUM := 6e4981f4ce75932ec62df6523f577c327f885ba0 |
1566 | 7 $(PKG)_SUBDIR := vigra-$(word 1,$(subst -, ,$($(PKG)_VERSION))) |
8 $(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
|
9 $(PKG)_URL := http://hci.iwr.uni-heidelberg.de/vigra/$($(PKG)_FILE) |
1997 | 10 $(PKG)_DEPS := gcc jpeg tiff libpng openexr |
1566 | 11 |
12 define $(PKG)_UPDATE | |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2367
diff
changeset
|
13 $(WGET) -q -O- 'http://hci.iwr.uni-heidelberg.de/vigra/' | \ |
1566 | 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++ \ |
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
|
37 '$(2).cpp' -o $(HOST_BINDIR)/test-vigra.exe \ |
1566 | 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 |