Upgrade version to 1.1.700

This commit is contained in:
jfaust 2010-05-21 18:37:26 +00:00
parent 1afc96d0c5
commit 9223320aa4
2 changed files with 57 additions and 71 deletions

View File

@ -1,44 +1,30 @@
all: installed all: installed
REVISION=258
PACKAGE_NAME=`rospack find assimp` PACKAGE_NAME=`rospack find assimp`
# Regular download # Regular download
TARBALL_NAME = assimp-r$(REVISION) TARBALL_NAME = assimp-1.1.700
TARBALL = build/$(TARBALL_NAME).tar.gz TARBALL = build/$(TARBALL_NAME).tar.gz
TARBALL_URL = http://pr.willowgarage.com/downloads/$(TARBALL_NAME).tar.gz TARBALL_URL = http://pr.willowgarage.com/downloads/$(TARBALL_NAME).tar.gz
TARBALL_PATCH = assimp.patch TARBALL_PATCH = assimp.patch
UNPACK_CMD = tar xzf UNPACK_CMD = tar xzf
SOURCE_DIR = build/assimp_svn SOURCE_DIR = build/$(TARBALL_NAME)
include $(shell rospack find mk)/download_unpack_build.mk include $(shell rospack find mk)/download_unpack_build.mk
# SVN checkout (only for package maintainers)
SVN_DIR = $(SOURCE_DIR)
#build/assimp_svn
SVN_REVISION = -r $(REVISION)
SVN_URL = https://assimp.svn.sourceforge.net/svnroot/assimp/trunk
include $(shell rospack find mk)/svn_checkout.mk
ASSIMP_DIR = $(shell rospack find assimp) ASSIMP_DIR = $(shell rospack find assimp)
BOOST_INCLUDE_DIRS = $(shell rosboost-cfg --include_dirs) BOOST_INCLUDE_DIRS = $(shell rosboost-cfg --include_dirs)
BOOST_LIBRARY_DIRS = $(shell rosboost-cfg --lib_dirs signals,thread) BOOST_LIBRARY_DIRS = $(shell rosboost-cfg --lib_dirs signals,thread)
BOOST_LIBRARIES = $(shell rosboost-cfg --lflags signals,thread) BOOST_LIBRARIES = $(shell rosboost-cfg --lflags signals,thread)
CMAKE_ARGS = -D CMAKE_INSTALL_PREFIX=$(PACKAGE_NAME) \ CMAKE_ARGS = -DCMAKE_INSTALL_PREFIX=$(PACKAGE_NAME) \
-D CMAKE_BUILD_TYPE=RelWithDebInfo \ -D CMAKE_BUILD_TYPE=RelWithDebInfo \
-D boost_include_dirs=$(BOOST_INCLUDE_DIRS) \ -D boost_include_dirs=$(BOOST_INCLUDE_DIRS) \
-D boost_library_dirs=$(BOOST_LIBRARY_DIRS) \ -D boost_library_dirs=$(BOOST_LIBRARY_DIRS) \
-D boost_libraries="$(BOOST_LIBRARIES)" -D boost_libraries="$(BOOST_LIBRARIES)"
# Build tarball (only for package maintainers)
build_tarball: $(SVN_DIR)
-cd $(SVN_DIR)/build && make clean
-cd $(SVN_DIR) && rm -rf build
cd build && tar --exclude="test" --exclude="workspaces" --exclude="tools" --exclude="scripts" --exclude="samples" --exclude="port" --exclude="obj" --exclude="bin" --exclude=".svn" -czf ../$(TARBALL) assimp_svn
installed: $(SOURCE_DIR)/unpacked 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 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 mkdir -p $(PACKAGE_NAME)/include/assimp
cp -r $(SOURCE_DIR)/include/* $(PACKAGE_NAME)/include/assimp/ cp -r $(SOURCE_DIR)/include/* $(PACKAGE_NAME)/include/assimp/
#touch installed touch installed
clean: clean:
-cd $(SVN_DIR)/build && make clean -cd $(SVN_DIR)/build && make clean

View File

@ -1,12 +1,15 @@
Index: code/CMakeLists.txt --- CMakeLists.txt.old 2010-05-21 11:08:29.598051070 -0700
=================================================================== +++ CMakeLists.txt 2010-05-21 11:19:28.595500290 -0700
--- code/CMakeLists.txt (revision 526) @@ -20,6 +20,21 @@ SET( INCLUDE_INSTALL_DIR "${CMAKE_INSTAL
+++ code/CMakeLists.txt (working copy) SET( BIN_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/bin" CACHE PATH
@@ -1,6 +1,16 @@ "Path the tool executables are installed to." )
SET( HEADER_PATH ../include/ ) +SET (boost_include_dirs "" CACHE STRING "Boost include paths. Use this to override automatic detection.")
+SET (boost_library_dirs "" CACHE STRING "Boost library paths. Use this to override automatic detection.")
+message(status " debug: ${boost_include_dirs}" ) +SET (boost_libraries "" CACHE STRING "Boost libraries. Use this to override automatic detection.")
+
+
+message(status " debug: ${boost_include_dirs} ${boost_libraries}" )
+INCLUDE_DIRECTORIES( +INCLUDE_DIRECTORIES(
+ include + include
+ ${boost_include_dirs} + ${boost_include_dirs}
@ -16,46 +19,43 @@ Index: code/CMakeLists.txt
+ ${boost_library_dirs} + ${boost_library_dirs}
+) +)
+ +
SOURCE_GROUP( Logging FILES # Libs
${HEADER_PATH}/DefaultLogger.h ADD_SUBDIRECTORY( code/ )
${HEADER_PATH}/IOStream.h IF ( WIN32 )
@@ -583,6 +593,10 @@ --- code/CMakeLists.txt.old 2010-05-21 11:25:22.057223769 -0700
+++ code/CMakeLists.txt 2010-05-21 11:25:47.295533481 -0700
@@ -1,25 +1,6 @@
SET( LIBRARY_VERSION "1.0.0" )
SET( LIBRARY_SOVERSION "1" )
-IF ( ENABLE_BOOST_WORKAROUND )
- INCLUDE_DIRECTORIES( BoostWorkaround )
- ADD_DEFINITIONS( -DASSIMP_BUILD_BOOST_WORKAROUND )
- MESSAGE( STATUS "Building a non-boost version of Assimp." )
-ELSE ( ENABLE_BOOST_WORKAROUND )
- FIND_PACKAGE( Boost 1.35 )
-
- IF ( NOT Boost_FOUND )
- MESSAGE( FATAL_ERROR
- "Boost libraries (http://www.boost.org/) not found. "
- "You can build a non-boost version of Assimp with slightly reduced "
- "functionality by specifying -DENABLE_BOOST_WORKAROUND=ON."
- )
- ENDIF ( NOT Boost_FOUND )
-
- INCLUDE_DIRECTORIES( ${Boost_INCLUDE_DIRS} )
-ENDIF ( ENABLE_BOOST_WORKAROUND )
-
-
#
# Listing and grouping of all the source files for use with IDE project
# generators.
@@ -691,6 +672,8 @@ ADD_LIBRARY( assimp SHARED
${COMPILER_HEADERS}
) )
ADD_DEFINITIONS(-DASSIMP_BUILD_DLL_EXPORT)
+TARGET_LINK_LIBRARIES( assimp ${boost_libraries}) +TARGET_LINK_LIBRARIES( assimp ${boost_libraries})
+ +
+INSTALL (TARGETS assimp DESTINATION ${CMAKE_INSTALL_PREFIX}/lib) ADD_DEFINITIONS( -DASSIMP_BUILD_DLL_EXPORT )
+
if (WIN32)
if ( MSVC80 )
ADD_DEFINITIONS( -D_SCL_SECURE_NO_WARNINGS )
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt (revision 526)
+++ CMakeLists.txt (working copy)
@@ -1,13 +1,24 @@
cmake_minimum_required( VERSION 2.6 )
PROJECT( AssetImporter )
+SET (boost_include_dirs "" CACHE STRING "Boost include paths. Use this to override automatic detection.")
+SET (boost_library_dirs "" CACHE STRING "Boost library paths. Use this to override automatic detection.")
+SET (boost_libraries "" CACHE STRING "Boost libraries. Use this to override automatic detection.")
+
+message(status " debug: ${boost_include_dirs}" )
+
SET( CMAKE_CURRENT_SOURCE_DIR ${CMAKE_HOME_DIRECTORY}/code )
SET( CMAKE_CURRENT_BINARY_DIR ${CMAKE_HOME_DIRECTORY}/bin )
INCLUDE_DIRECTORIES(
include
+ ${boost_include_dirs}
)
+LINK_DIRECTORIES(
+ ${boost_library_dirs}
+)
+
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_HOME_DIRECTORY}/lib )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_HOME_DIRECTORY}/bin )
if ( WIN32 )