37 lines
1.3 KiB
Makefile
37 lines
1.3 KiB
Makefile
all: installed
|
|
|
|
PACKAGE_NAME=`rospack find assimp`
|
|
# Regular download
|
|
TARBALL_NAME = assimp-svn-811
|
|
TARBALL = build/$(TARBALL_NAME).tar.gz
|
|
TARBALL_URL = http://pr.willowgarage.com/downloads/$(TARBALL_NAME).tar.gz
|
|
TARBALL_PATCH = assimp.patch define_arch_arm.patch
|
|
UNPACK_CMD = tar xzf
|
|
SOURCE_DIR = build/$(TARBALL_NAME)
|
|
include $(shell rospack find mk)/download_unpack_build.mk
|
|
|
|
ASSIMP_DIR = $(shell rospack find assimp)
|
|
BOOST_INCLUDE_DIRS = $(shell rosboost-cfg --include_dirs)
|
|
BOOST_LIBRARY_DIRS = $(shell rosboost-cfg --lib_dirs signals,thread)
|
|
BOOST_LIBRARIES = $(shell rosboost-cfg --lflags signals,thread)
|
|
CMAKE_ARGS = -DCMAKE_INSTALL_PREFIX=$(PACKAGE_NAME) \
|
|
-D CMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
-D boost_include_dirs=$(BOOST_INCLUDE_DIRS) \
|
|
-D boost_library_dirs=$(BOOST_LIBRARY_DIRS) \
|
|
-D boost_libraries="$(BOOST_LIBRARIES)"
|
|
|
|
installed: $(SOURCE_DIR)/unpacked
|
|
cd $(SOURCE_DIR) && mkdir -p build && cd build && cmake $(CMAKE_ARGS) .. && export PARALLEL_JOBS=ROS_PARALLEL_JOBS && make $(ROS_PARALLEL_JOBS) && make install
|
|
mkdir -p $(PACKAGE_NAME)/include/assimp
|
|
cp -r $(SOURCE_DIR)/include/* $(PACKAGE_NAME)/include/assimp/
|
|
touch installed
|
|
|
|
clean:
|
|
-cd $(SOURCE_DIR)/build && make clean
|
|
-rm -f installed
|
|
-rm -rf include lib
|
|
|
|
wipe: clean
|
|
rm -rf build
|
|
|