Description: rework build system to allow multi-arch install
Author: Mathieu Malaterre <malat@debian.org>
Forwarded: not-needed

Index: openvdb/Makefile
===================================================================
--- openvdb.orig/Makefile	2013-12-13 01:35:59.000000000 +0100
+++ openvdb/Makefile	2013-12-29 12:31:08.726960502 +0100
@@ -81,6 +81,8 @@
 # The directory into which to install libraries, executables and header files
 INSTALL_DIR := /tmp/OpenVDB
 
+INSTALL_LIB_DIR := $(INSTALL_LIB_DIR)/lib
+
 # The parent directory of the boost/ header directory
 BOOST_INCL_DIR := $(HT)/include
 
@@ -731,25 +733,25 @@
 	fi
 	@echo "Copied header files to $(INSTALL_DIR)/include"
 	@#
-	mkdir -p $(INSTALL_DIR)/lib
-	@echo "Created $(INSTALL_DIR)/lib/"
-	cp -f $(LIBOPENVDB) $(INSTALL_DIR)/lib
-	pushd $(INSTALL_DIR)/lib > /dev/null; \
+	mkdir -p $(INSTALL_LIB_DIR)
+	@echo "Created $(INSTALL_LIB_DIR)"
+	cp -f $(LIBOPENVDB) $(INSTALL_LIB_DIR)
+	pushd $(INSTALL_LIB_DIR) > /dev/null; \
 	    if [ -f $(LIBOPENVDB_SHARED) ]; then \
 	        ln -f -s $(LIBOPENVDB_SHARED) $(LIBOPENVDB_NAME).so; \
 	        ln -f -s $(LIBOPENVDB_SHARED) $(LIBOPENVDB_SONAME); \
 	    fi; \
 	    popd > /dev/null
-	@echo "Copied libopenvdb to $(INSTALL_DIR)/lib/"
+	@echo "Copied libopenvdb to $(INSTALL_LIB_DIR)"
 	@#
 	if [ -f $(LIBVIEWER) ]; \
 	then \
-	    cp -f $(LIBVIEWER) $(INSTALL_DIR)/lib; \
-	    pushd $(INSTALL_DIR)/lib > /dev/null; \
+	    cp -f $(LIBVIEWER) $(INSTALL_LIB_DIR); \
+	    pushd $(INSTALL_LIB_DIR) > /dev/null; \
 	        if [ -f $(LIBVIEWER_SHARED) ]; then \
 	            ln -f -s $(LIBVIEWER_SHARED) $(LIBVIEWER_NAME).so; fi; \
 	        popd > /dev/null; \
-	    echo "Copied libopenvdb_viewer to $(INSTALL_DIR)/lib/"; \
+	    echo "Copied libopenvdb_viewer to $(INSTALL_LIB_DIR)"; \
 	fi
 	@#
 	if [ -f $(PYTHON_MODULE) ]; \
