summaryrefslogtreecommitdiffstats
path: root/src/pfstools.mk
diff options
context:
space:
mode:
authorMartin Lambers <marlam@marlam.de>2015-01-07 14:51:34 (GMT)
committerMartin Lambers <marlam@marlam.de>2015-01-25 07:30:18 (GMT)
commit21595ad642ac00ed5dd7c42adb0c5d798ea43e52 (patch)
tree5230f662bc20406bdce1817aa36c9311e63ec3f3 /src/pfstools.mk
parent4ece94bda104fb9301058e319d722037fe28792a (diff)
downloadmxe-21595ad642ac00ed5dd7c42adb0c5d798ea43e52.zip
mxe-21595ad642ac00ed5dd7c42adb0c5d798ea43e52.tar.gz
mxe-21595ad642ac00ed5dd7c42adb0c5d798ea43e52.tar.bz2
pfstools: update to 2.0.0, add test program.
The update requires a move from autoconf to cmake.
Diffstat (limited to 'src/pfstools.mk')
-rw-r--r--src/pfstools.mk45
1 files changed, 26 insertions, 19 deletions
diff --git a/src/pfstools.mk b/src/pfstools.mk
index 4fce369..e7483a3 100644
--- a/src/pfstools.mk
+++ b/src/pfstools.mk
@@ -3,10 +3,10 @@
PKG := pfstools
$(PKG)_IGNORE :=
-$(PKG)_VERSION := 1.9.1
-$(PKG)_CHECKSUM := d89ca4ea501ba9569b36ce9497aff1194e93ebee
+$(PKG)_VERSION := 2.0.0
+$(PKG)_CHECKSUM := 1501b58d0014a9e92e6e2b7b8829b3f015204b29
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
-$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
+$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tgz
$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
@@ -16,23 +16,30 @@ define $(PKG)_UPDATE
head -1
endef
+# Note: all the external dependencies are used for the tools, but we
+# only want the library so we don't need them.
define $(PKG)_BUILD
- cd '$(1)' && ./configure \
- --host='$(TARGET)' \
- --prefix='$(PREFIX)/$(TARGET)' \
- --disable-shared \
- --disable-netpbm \
- --disable-openexr \
- --disable-tiff \
- --disable-qt \
- --disable-jpeghdr \
- --disable-imagemagick \
- --disable-octave \
- --disable-opengl \
- --disable-matlab \
- --disable-gdal
- $(MAKE) -C '$(1)'/src/pfs -j '$(JOBS)'
- $(MAKE) -C '$(1)'/src/pfs -j 1 install
+ mkdir '$(1).build'
+ cd '$(1).build' && cmake '$(1)' \
+ -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
+ -DPKG_CONFIG_EXECUTABLE='$(PREFIX)/bin/$(TARGET)-pkg-config' \
+ -DWITH_OpenEXR=false \
+ -DWITH_ImageMagick=false \
+ -DWITH_NetPBM=false \
+ -DWITH_TIFF=false \
+ -DWITH_QT=false \
+ -DWITH_pfsglview=false \
+ -DWITH_MATLAB=false \
+ -DWITH_Octave=false \
+ -DWITH_FFTW=false \
+ -DWITH_GSL=false \
+ -DWITH_OpenCV=false
+ $(MAKE) -C '$(1).build/src/pfs' -j '$(JOBS)' install VERBOSE=1
+
+ '$(TARGET)-g++' \
+ -Wall -Wextra -Werror \
+ '$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-pfstools.exe' \
+ `'$(TARGET)-pkg-config' pfs --cflags --libs`
endef
$(PKG)_BUILD_SHARED =