Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Apr 2016 09:50:42 +0000 (UTC)
From:      Kurt Jaeger <pi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r413770 - in head/cad/openvsp: . files
Message-ID:  <201604220950.u3M9ogXT068752@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pi
Date: Fri Apr 22 09:50:42 2016
New Revision: 413770
URL: https://svnweb.freebsd.org/changeset/ports/413770

Log:
  cad/openvsp: 2.3.0 -> 3.5.2
  
  Changes:
  - Latest:
    http://openvsp.org/blogs/announcements/2016/02/14/openvsp-3-5-2-released
  - all older release notes are in
    http://openvsp.org/blogs/
  - no longer includes example aircraft files, now seperatly available at
    http://hangar.openvsp.org/
  - Needs some math functions, so no luck on 9.x or i386
  
  PR:		208904
  Submitted by:	Fernando Apesteguia <fernando.apesteguia@gmail.com> (maintainer)

Added:
  head/cad/openvsp/files/patch-Libraries_cmake_External__CMinpack.cmake   (contents, props changed)
  head/cad/openvsp/files/patch-Libraries_cmake_External__libIGES.cmake   (contents, props changed)
  head/cad/openvsp/files/patch-src_cfd__mesh_CMakeLists.txt   (contents, props changed)
  head/cad/openvsp/files/patch-src_cmake_External__STEPCode.cmake   (contents, props changed)
  head/cad/openvsp/files/patch-src_external_CMakeLists.txt   (contents, props changed)
  head/cad/openvsp/files/patch-src_external_angelscript_sdk_CMakeLists.txt   (contents, props changed)
  head/cad/openvsp/files/patch-src_external_glfont2_CMakeLists.txt   (contents, props changed)
  head/cad/openvsp/files/patch-src_external_sixseries_CMakeLists.txt   (contents, props changed)
  head/cad/openvsp/files/patch-src_external_triangle_CMakeLists.txt   (contents, props changed)
  head/cad/openvsp/files/patch-src_external_tritri_CMakeLists.txt   (contents, props changed)
  head/cad/openvsp/files/patch-src_fltk__screens_CMakeLists.txt   (contents, props changed)
  head/cad/openvsp/files/patch-src_geom__api_CMakeLists.txt   (contents, props changed)
  head/cad/openvsp/files/patch-src_geom__core_CMakeLists.txt   (contents, props changed)
  head/cad/openvsp/files/patch-src_gui__and__draw_CMakeLists.txt   (contents, props changed)
  head/cad/openvsp/files/patch-src_gui__and__draw_GroupLayout.h   (contents, props changed)
  head/cad/openvsp/files/patch-src_gui__and__draw_MainVSPScreen.h   (contents, props changed)
  head/cad/openvsp/files/patch-src_gui__and__draw_MenuItem.h   (contents, props changed)
  head/cad/openvsp/files/patch-src_util_CMakeLists.txt   (contents, props changed)
  head/cad/openvsp/files/patch-src_vsp__aero_CMakeLists.txt   (contents, props changed)
  head/cad/openvsp/files/patch-src_vsp__graphic_CMakeLists.txt   (contents, props changed)
  head/cad/openvsp/files/patch-src_vsp__graphic_src_Image.cpp   (contents, props changed)
  head/cad/openvsp/files/patch-src_vsp__graphic_src_Shader.cpp   (contents, props changed)
  head/cad/openvsp/files/patch-src_xmlvsp_CMakeLists.txt   (contents, props changed)
  head/cad/openvsp/pkg-plist   (contents, props changed)
Deleted:
  head/cad/openvsp/files/patch-src_util__code_array.h
  head/cad/openvsp/files/patch-src_vsp_af.cpp
  head/cad/openvsp/files/patch-src_vsp_havoc__geom.cpp
  head/cad/openvsp/files/patch-src_vsp_havoc__geom.h
  head/cad/openvsp/files/patch-vsp-CMakeLists.txt
  head/cad/openvsp/files/patch-xmlvsp-CMakeLists.txt
Modified:
  head/cad/openvsp/Makefile
  head/cad/openvsp/distinfo

Modified: head/cad/openvsp/Makefile
==============================================================================
--- head/cad/openvsp/Makefile	Fri Apr 22 09:46:36 2016	(r413769)
+++ head/cad/openvsp/Makefile	Fri Apr 22 09:50:42 2016	(r413770)
@@ -2,10 +2,10 @@
 # $FreeBSD$
 
 PORTNAME=	openvsp
-PORTVERSION=	2.3.0
-DISTVERSIONPREFIX=	${GH_PROJECT}_
-PORTREVISION=	4
+PORTVERSION=	3.5.2
+PORTREVISION=	0
 CATEGORIES=	cad
+MASTER_SITES=	GH
 
 MAINTAINER=	fernando.apesteguia@gmail.com
 COMMENT=	Create a 3D model of an aircraft defined by engineering parameters
@@ -15,35 +15,55 @@ LICENSE_NAME=	NASA Open Source Agreement
 LICENSE_FILE=	${WRKSRC}/LICENSE
 LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
 
-BUILD_DEPENDS=	${LOCALBASE}/lib/libopenNURBS.a:graphics/opennurbs
 LIB_DEPENDS=	libpthread-stubs.so:devel/libpthread-stubs \
+		libjpeg.so:graphics/jpeg-turbo \
 		libdrm.so:graphics/libdrm \
-		libpng.so:graphics/png \
+		libpng16.so:graphics/png \
 		libfreetype.so:print/freetype2 \
 		libexpat.so:textproc/expat2 \
 		libfontconfig.so:x11-fonts/fontconfig \
-		libfltk.so:x11-toolkits/fltk
+		libfltk.so:x11-toolkits/fltk \
+		libGLEW.so:graphics/glew \
+		libcpptest.so:devel/cpptest
+BUILD_DEPENDS=	${LOCALBASE}/lib/libopenNURBS.a:graphics/opennurbs \
+		${LOCALBASE}/include/eli/code_eli.hpp:graphics/code-eli \
+		${LOCALBASE}/include/glm/glm.hpp:math/glm \
+		${LOCALBASE}/include/eigen3/Eigen/Array:math/eigen3
+
+BROKEN_FreeBSD_9=	dependency graphics/code-eli needs additional math functions
+ONLY_FOR_ARCHS=	amd64
 
 USE_GITHUB=	yes
 GH_PROJECT=	OpenVSP
 GH_ACCOUNT=	${GH_PROJECT}
+GH_TAGNAME=	${GH_PROJECT}_${PORTVERSION}
+
+WRKSRC=		${WRKDIR}/${GH_PROJECT}-${GH_PROJECT}_${PORTVERSION}
 
-CMAKE_SOURCE_PATH=	${WRKSRC}/src
-USES=		cmake:outsource dos2unix jpeg
+CMAKE_SOURCE_PATH=	${WRKSRC}/SuperProject
+USES=		cmake:outsource compiler:gcc-c++11-lib
+CMAKE_ARGS=	-DVSP_USE_SYSTEM_CMINPACK:BOOLEAN=yes \
+		-DVSP_USE_SYSTEM_CPPTEST:BOOLEAN=yes \
+		-DVSP_USE_SYSTEM_LIBXML2:BOOLEAN=yes \
+		-DVSP_USE_SYSTEM_EIGEN:BOOLEAN=yes \
+		-DVSP_USE_SYSTEM_FLTK:boolean=yes \
+		-DVSP_USE_SYSTEM_CMINPACK:boolean=no \
+		-DVSP_USE_SYSTEM_GLM:BOOLEAN=yes \
+		-DVSP_USE_SYSTEM_GLEW:BOOLEAN=yes
 USE_XORG=	ice sm x11 xau xcb xdamage xdmcp xext xfixes xft \
 		xinerama xrender xxf86vm
 USE_GL=		glu
 USE_GNOME=	libxml2
 CFLAGS+=	-I${LOCALBASE}/include/openNURBS
 
-PLIST_FILES=	bin/vsp
-PORTEXAMPLES=	*
-
-OPTIONS_DEFINE=	EXAMPLES
+BUILD_PREFIX=	OpenVSP-prefix/src/OpenVSP-build/_CPack_Packages/FreeBSD/ZIP/OpenVSP-3.5.2-FreeBSD
 
 do-install:
-	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/vsp/vsp ${STAGEDIR}${PREFIX}/bin
-	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
-	(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
+	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${BUILD_PREFIX}/vsp* ${STAGEDIR}${PREFIX}/bin
+	${MKDIR} ${STAGEDIR}${DATADIR}
+.for d in CustomScripts airfoil matlab scripts textures
+	(cd ${BUILD_WRKSRC}/${BUILD_PREFIX}/${d} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
+.endfor
+	${CP} ${BUILD_WRKSRC}/${BUILD_PREFIX}/LICENSE ${STAGEDIR}${DATADIR}
 
 .include <bsd.port.mk>

Modified: head/cad/openvsp/distinfo
==============================================================================
--- head/cad/openvsp/distinfo	Fri Apr 22 09:46:36 2016	(r413769)
+++ head/cad/openvsp/distinfo	Fri Apr 22 09:50:42 2016	(r413770)
@@ -1,2 +1,2 @@
-SHA256 (OpenVSP-OpenVSP-OpenVSP_2.3.0_GH0.tar.gz) = e36d364fc4dd6bd3f994637fb67e1b2b2f06792620f151a61fbb75a6f4df8a2a
-SIZE (OpenVSP-OpenVSP-OpenVSP_2.3.0_GH0.tar.gz) = 2940780
+SHA256 (OpenVSP-OpenVSP-3.5.2-OpenVSP_3.5.2_GH0.tar.gz) = 0267d53fa88d5a1fae888131682cd7383b861680a3ed079597ad5b059e169d0e
+SIZE (OpenVSP-OpenVSP-3.5.2-OpenVSP_3.5.2_GH0.tar.gz) = 27883392

Added: head/cad/openvsp/files/patch-Libraries_cmake_External__CMinpack.cmake
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/openvsp/files/patch-Libraries_cmake_External__CMinpack.cmake	Fri Apr 22 09:50:42 2016	(r413770)
@@ -0,0 +1,16 @@
+--- Libraries/cmake/External_CMinpack.cmake.orig	2016-02-14 00:01:30 UTC
++++ Libraries/cmake/External_CMinpack.cmake
+@@ -1,3 +1,6 @@
++SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -lm -fPIC")
++SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -lm -fPIC")
++
+ ExternalProject_Add( CMINPACK
+     URL ${CMAKE_CURRENT_SOURCE_DIR}/cminpack-1.3.3.tar.gz
+     CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>
+@@ -8,4 +11,4 @@ ExternalProject_Add( CMINPACK
+         -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
+ )
+ ExternalProject_Get_Property( CMINPACK BINARY_DIR INSTALL_DIR )
+-SET( CMINPACK_INSTALL_DIR ${INSTALL_DIR} )
+\ No newline at end of file
++SET( CMINPACK_INSTALL_DIR ${INSTALL_DIR} )

Added: head/cad/openvsp/files/patch-Libraries_cmake_External__libIGES.cmake
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/openvsp/files/patch-Libraries_cmake_External__libIGES.cmake	Fri Apr 22 09:50:42 2016	(r413770)
@@ -0,0 +1,12 @@
+--- Libraries/cmake/External_libIGES.cmake.orig	2016-02-14 00:01:30 UTC
++++ Libraries/cmake/External_libIGES.cmake
+@@ -1,6 +1,9 @@
+ 
+ #    SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../../libIGES/
+ 
++SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
++SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
++
+ ExternalProject_Add( LIBIGES
+     URL ${CMAKE_CURRENT_SOURCE_DIR}/libIGES-03f6ee919151.zip
+ 	CMAKE_ARGS -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}

Added: head/cad/openvsp/files/patch-src_cfd__mesh_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/openvsp/files/patch-src_cfd__mesh_CMakeLists.txt	Fri Apr 22 09:50:42 2016	(r413770)
@@ -0,0 +1,11 @@
+--- src/cfd_mesh/CMakeLists.txt.orig	2016-02-14 00:01:30 UTC
++++ src/cfd_mesh/CMakeLists.txt
+@@ -48,6 +48,8 @@ SurfPatch.h
+ Tri.h
+ )
+ 
++set_target_properties( cfd_mesh PROPERTIES COMPILE_FLAGS "-fPIC")
++
+ ADD_DEPENDENCIES( cfd_mesh
+ util
+ )

Added: head/cad/openvsp/files/patch-src_cmake_External__STEPCode.cmake
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/openvsp/files/patch-src_cmake_External__STEPCode.cmake	Fri Apr 22 09:50:42 2016	(r413770)
@@ -0,0 +1,19 @@
+--- src/cmake/External_STEPCode.cmake.orig	2016-02-14 00:01:30 UTC
++++ src/cmake/External_STEPCode.cmake
+@@ -8,6 +8,9 @@ ELSE()
+     SET( SC_SHARED ON )
+ ENDIF()
+ 
++SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
++SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
++
+ ExternalProject_Add( STEPCODE
+ 	URL ${CMAKE_CURRENT_SOURCE_DIR}/stepcode-7dcd6ef3418a.zip
+ 	CMAKE_ARGS -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
+@@ -37,4 +40,4 @@ SET( STEPCODE_BINARY_DIR ${BINARY_DIR} )
+ # Consequently, force Debug so it installs in ../sc-install directory
+ # instead of /usr/local/lib.
+ #
+-# SC's own programs fail to build with -DSC_BUILD_SHARED_LIBS=OFF
+\ No newline at end of file
++# SC's own programs fail to build with -DSC_BUILD_SHARED_LIBS=OFF

Added: head/cad/openvsp/files/patch-src_external_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/openvsp/files/patch-src_external_CMakeLists.txt	Fri Apr 22 09:50:42 2016	(r413770)
@@ -0,0 +1,12 @@
+--- src/external/CMakeLists.txt.orig	2016-02-14 00:01:30 UTC
++++ src/external/CMakeLists.txt
+@@ -8,6 +8,9 @@ FIND_PACKAGE(CPPTest REQUIRED)
+ SET( CMAKE_PREFIX_PATH ${LIBXML2_INSTALL_DIR} ${ORIG_CMAKE_PREFIX_PATH} )
+ FIND_PACKAGE(LibXml2 REQUIRED)
+ 
++SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
++SET(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
++
+ IF( NOT VSP_NO_GRAPHICS )
+ 	SET( CMAKE_PREFIX_PATH ${FLTK_INSTALL_DIR} ${ORIG_CMAKE_PREFIX_PATH} )
+ 	FIND_PACKAGE(FLTK REQUIRED)

Added: head/cad/openvsp/files/patch-src_external_angelscript_sdk_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/openvsp/files/patch-src_external_angelscript_sdk_CMakeLists.txt	Fri Apr 22 09:50:42 2016	(r413770)
@@ -0,0 +1,11 @@
+--- src/external/angelscript/sdk/CMakeLists.txt.orig	2016-02-14 00:01:30 UTC
++++ src/external/angelscript/sdk/CMakeLists.txt
+@@ -127,6 +127,8 @@ set(LIBRARY_OUTPUT_PATH  ${PROJECT_BINAR
+ find_package(Threads)
+ target_link_libraries(Angelscript ${CMAKE_THREAD_LIBS_INIT})
+ 
++set_target_properties( Angelscript PROPERTIES COMPILE_FLAGS "-fPIC")
++
+ if(MSVC)
+         set_target_properties(Angelscript PROPERTIES COMPILE_FLAGS "/MP")
+ endif(MSVC)

Added: head/cad/openvsp/files/patch-src_external_glfont2_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/openvsp/files/patch-src_external_glfont2_CMakeLists.txt	Fri Apr 22 09:50:42 2016	(r413770)
@@ -0,0 +1,10 @@
+--- src/external/glfont2/CMakeLists.txt.orig	2016-02-14 00:01:30 UTC
++++ src/external/glfont2/CMakeLists.txt
+@@ -3,6 +3,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
+ SET(GLFONT2_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE PATH "Path to glfont2 headers")
+ 
+ INCLUDE_DIRECTORIES( ${GLFONT2_INCLUDE_DIR}
++	/usr/local/include
+ )
+ 
+ ADD_LIBRARY( glfont2

Added: head/cad/openvsp/files/patch-src_external_sixseries_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/openvsp/files/patch-src_external_sixseries_CMakeLists.txt	Fri Apr 22 09:50:42 2016	(r413770)
@@ -0,0 +1,8 @@
+--- src/external/sixseries/CMakeLists.txt.orig	2016-02-14 00:01:30 UTC
++++ src/external/sixseries/CMakeLists.txt
+@@ -10,3 +10,5 @@ s_copy.c
+ s_stop.c
+ f2c.h
+ )
++
++set_target_properties( sixseries PROPERTIES COMPILE_FLAGS "-fPIC")

Added: head/cad/openvsp/files/patch-src_external_triangle_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/openvsp/files/patch-src_external_triangle_CMakeLists.txt	Fri Apr 22 09:50:42 2016	(r413770)
@@ -0,0 +1,11 @@
+--- src/external/triangle/CMakeLists.txt.orig	2016-02-14 00:01:30 UTC
++++ src/external/triangle/CMakeLists.txt
+@@ -9,6 +9,8 @@ triangle.c
+ triangle.h
+ )
+ 
++set_target_properties( triangle PROPERTIES COMPILE_FLAGS "-fPIC")
++
+ # set MS Visual Compiler flags
+ IF(WIN32)
+   SET_TARGET_PROPERTIES( triangle PROPERTIES COMPILE_FLAGS "-fp:strict")

Added: head/cad/openvsp/files/patch-src_external_tritri_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/openvsp/files/patch-src_external_tritri_CMakeLists.txt	Fri Apr 22 09:50:42 2016	(r413770)
@@ -0,0 +1,11 @@
+--- src/external/tritri/CMakeLists.txt.orig	2016-02-14 00:01:30 UTC
++++ src/external/tritri/CMakeLists.txt
+@@ -10,4 +10,6 @@ intersect_AABB.cpp
+ intersect_triangle.cpp
+ Tritri.cpp
+ Tritri.h
+-)
+\ No newline at end of file
++)
++
++set_target_properties( tritri PROPERTIES COMPILE_FLAGS "-fPIC")

Added: head/cad/openvsp/files/patch-src_fltk__screens_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/openvsp/files/patch-src_fltk__screens_CMakeLists.txt	Fri Apr 22 09:50:42 2016	(r413770)
@@ -0,0 +1,12 @@
+--- src/fltk_screens/CMakeLists.txt.orig	2016-02-14 00:01:30 UTC
++++ src/fltk_screens/CMakeLists.txt
+@@ -4,6 +4,9 @@ INCLUDE_DIRECTORIES( ${FLTK_INCLUDE_DIR}
+ 
+ SET(SCREENS_INCLUDE_DIR ${CMAKE_CURRENT_BINARY_DIR} CACHE PATH "Path to FLTK generated *.h files")
+ 
++SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
++SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
++
+ FLTK_WRAP_UI( screens
+ aboutScreen.fl
+ awaveFlScreen.fl

Added: head/cad/openvsp/files/patch-src_geom__api_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/openvsp/files/patch-src_geom__api_CMakeLists.txt	Fri Apr 22 09:50:42 2016	(r413770)
@@ -0,0 +1,27 @@
+--- src/geom_api/CMakeLists.txt.orig	2016-02-14 00:01:30 UTC
++++ src/geom_api/CMakeLists.txt
+@@ -29,6 +29,8 @@ GuiInterface.h
+ VSP_Geom_API.h
+ )
+ 
++set_target_properties( geom_api PROPERTIES COMPILE_FLAGS "-fPIC")
++
+ ADD_DEPENDENCIES( geom_api
+ util
+ )
+@@ -49,7 +51,7 @@ IF( NOT VSP_NO_GRAPHICS )
+ 	util
+ 	)
+ 
+-	set_target_properties( geom_api_g PROPERTIES COMPILE_FLAGS "-DVSP_USE_FLTK=1")
++set_target_properties( geom_api_g PROPERTIES COMPILE_FLAGS "-DVSP_USE_FLTK=1 -fPIC")
+ 
+ 	ADD_LIBRARY( gui_interface_g
+ 	GuiInterface.cpp
+@@ -61,5 +63,5 @@ IF( NOT VSP_NO_GRAPHICS )
+ 	util
+ 	)
+ 
+-	set_target_properties( gui_interface_g PROPERTIES COMPILE_FLAGS "-DVSP_USE_FLTK=1")
++set_target_properties( gui_interface_g PROPERTIES COMPILE_FLAGS "-DVSP_USE_FLTK=1 -fPIC")
+ ENDIF()

Added: head/cad/openvsp/files/patch-src_geom__core_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/openvsp/files/patch-src_geom__core_CMakeLists.txt	Fri Apr 22 09:50:42 2016	(r413770)
@@ -0,0 +1,11 @@
+--- src/geom_core/CMakeLists.txt.orig	2016-02-14 00:01:30 UTC
++++ src/geom_core/CMakeLists.txt
+@@ -116,6 +116,8 @@ XSecCurve.h
+ XSecSurf.h
+ )
+ 
++set_target_properties( geom_core PROPERTIES COMPILE_FLAGS "-fPIC")
++
+ ADD_DEPENDENCIES( geom_core
+ util
+ )

Added: head/cad/openvsp/files/patch-src_gui__and__draw_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/openvsp/files/patch-src_gui__and__draw_CMakeLists.txt	Fri Apr 22 09:50:42 2016	(r413770)
@@ -0,0 +1,20 @@
+--- src/gui_and_draw/CMakeLists.txt.orig	2016-02-14 00:01:30 UTC
++++ src/gui_and_draw/CMakeLists.txt
+@@ -21,6 +21,7 @@ INCLUDE_DIRECTORIES( 
+     ${STEPCODE_INCLUDE_DIR}
+     ${LIBIGES_INCLUDE_DIR}
+     ${GUI_AND_DRAW_INCLUDE_DIR}
++    /usr/local/include
+ )
+ 
+ ADD_LIBRARY(gui_and_draw
+@@ -130,6 +131,9 @@ VSPWindow.h
+ WingScreen.h
+ )
+ 
++SET(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
++SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
++
+ ADD_DEPENDENCIES(gui_and_draw
+ geom_core
+ vsp_graphic

Added: head/cad/openvsp/files/patch-src_gui__and__draw_GroupLayout.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/openvsp/files/patch-src_gui__and__draw_GroupLayout.h	Fri Apr 22 09:50:42 2016	(r413770)
@@ -0,0 +1,11 @@
+--- src/gui_and_draw/GroupLayout.h.orig	2016-02-14 00:01:30 UTC
++++ src/gui_and_draw/GroupLayout.h
+@@ -17,7 +17,7 @@
+ #include <FL/Fl_Text_Editor.H>
+ #include <FL/Fl_Radio_Button.H>
+ #include <FL/Fl_Color_Chooser.H>
+-#include <FL/Fl_Sys_Menu_Bar.h>
++#include <FL/Fl_Sys_Menu_Bar.H>
+ 
+ #include "GuiDevice.h"
+ 

Added: head/cad/openvsp/files/patch-src_gui__and__draw_MainVSPScreen.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/openvsp/files/patch-src_gui__and__draw_MainVSPScreen.h	Fri Apr 22 09:50:42 2016	(r413770)
@@ -0,0 +1,11 @@
+--- src/gui_and_draw/MainVSPScreen.h.orig	2016-02-14 00:01:30 UTC
++++ src/gui_and_draw/MainVSPScreen.h
+@@ -15,7 +15,7 @@
+ #include "MenuItem.h"
+ #include "ScreenBase.h"
+ #include "GuiDevice.h"
+-#include "FL/Fl_Box.h"
++#include "FL/Fl_Box.H"
+ 
+ namespace VSPGUI
+ {

Added: head/cad/openvsp/files/patch-src_gui__and__draw_MenuItem.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/openvsp/files/patch-src_gui__and__draw_MenuItem.h	Fri Apr 22 09:50:42 2016	(r413770)
@@ -0,0 +1,11 @@
+--- src/gui_and_draw/MenuItem.h.orig	2016-02-14 00:01:30 UTC
++++ src/gui_and_draw/MenuItem.h
+@@ -10,7 +10,7 @@
+ #define MENUITEM__INCLUDED_
+ 
+ #include <string>
+-#include <FL/Fl_Sys_Menu_Bar.h>
++#include <FL/Fl_Sys_Menu_Bar.H>
+ 
+ class ScreenMgr;
+ class ActionScreen;

Added: head/cad/openvsp/files/patch-src_util_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/openvsp/files/patch-src_util_CMakeLists.txt	Fri Apr 22 09:50:42 2016	(r413770)
@@ -0,0 +1,8 @@
+--- src/util/CMakeLists.txt.orig	2016-02-14 00:01:30 UTC
++++ src/util/CMakeLists.txt
+@@ -63,3 +63,5 @@ XferSurf.h
+ ADD_DEPENDENCIES( util
+ STEPCODE
+ )
++
++set_target_properties( util PROPERTIES COMPILE_FLAGS "-fPIC")

Added: head/cad/openvsp/files/patch-src_vsp__aero_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/openvsp/files/patch-src_vsp__aero_CMakeLists.txt	Fri Apr 22 09:50:42 2016	(r413770)
@@ -0,0 +1,10 @@
+--- src/vsp_aero/CMakeLists.txt.orig	2016-02-14 00:01:30 UTC
++++ src/vsp_aero/CMakeLists.txt
+@@ -1,4 +1,7 @@
+ CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
+ 
++SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
++SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
++
+ ADD_SUBDIRECTORY( solver )
+ ADD_SUBDIRECTORY( viewer )

Added: head/cad/openvsp/files/patch-src_vsp__graphic_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/openvsp/files/patch-src_vsp__graphic_CMakeLists.txt	Fri Apr 22 09:50:42 2016	(r413770)
@@ -0,0 +1,12 @@
+--- src/vsp_graphic/CMakeLists.txt.orig	2016-02-14 00:01:30 UTC
++++ src/vsp_graphic/CMakeLists.txt
+@@ -4,6 +4,9 @@ SET(VSP_GRAPHIC_INCLUDE_DIR ${CMAKE_CURR
+ 
+ set(GRAPHIC_INCLUDE ${CMAKE_CURRENT_SOURCE_DIR}/include)
+ 
++SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
++SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
++
+ FILE(GLOB_RECURSE GRAPHIC_HEADER ./include/*.h)
+ FILE(GLOB_RECURSE GRAPHIC_SOURCE ./src/*.cpp)
+ 

Added: head/cad/openvsp/files/patch-src_vsp__graphic_src_Image.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/openvsp/files/patch-src_vsp__graphic_src_Image.cpp	Fri Apr 22 09:50:42 2016	(r413770)
@@ -0,0 +1,10 @@
+--- src/vsp_graphic/src/Image.cpp.orig	2016-02-14 00:01:30 UTC
++++ src/vsp_graphic/src/Image.cpp
+@@ -1,6 +1,7 @@
+ #include <assert.h>
+ #include <MultiImageLoader.h>
+ #include <algorithm>
++#include <stdlib.h>
+ 
+ #include "Image.h"
+ 

Added: head/cad/openvsp/files/patch-src_vsp__graphic_src_Shader.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/openvsp/files/patch-src_vsp__graphic_src_Shader.cpp	Fri Apr 22 09:50:42 2016	(r413770)
@@ -0,0 +1,9 @@
+--- src/vsp_graphic/src/Shader.cpp.orig	2016-02-14 00:01:30 UTC
++++ src/vsp_graphic/src/Shader.cpp
+@@ -1,5 +1,6 @@
+ #include <assert.h>
+ #include <string>
++#include <stdlib.h>
+ 
+ #include "Shader.h"
+ 

Added: head/cad/openvsp/files/patch-src_xmlvsp_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/openvsp/files/patch-src_xmlvsp_CMakeLists.txt	Fri Apr 22 09:50:42 2016	(r413770)
@@ -0,0 +1,9 @@
+--- src/xmlvsp/CMakeLists.txt.orig	2016-02-14 00:01:30 UTC
++++ src/xmlvsp/CMakeLists.txt
+@@ -14,3 +14,6 @@ XmlUtil.h
+ XmlUtil.cpp
+ 
+ )
++
++set_target_properties( xmlvsp PROPERTIES COMPILE_FLAGS "-fPIC")
++

Added: head/cad/openvsp/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/openvsp/pkg-plist	Fri Apr 22 09:50:42 2016	(r413770)
@@ -0,0 +1,41 @@
+bin/vsp
+bin/vspaero
+bin/vspscript
+bin/vspviewer
+%%DATADIR%%/23015.af
+%%DATADIR%%/Box.vsppart
+%%DATADIR%%/BoxGroup.vsppart
+%%DATADIR%%/CFDMesh.vspscript
+%%DATADIR%%/Cone.vsppart
+%%DATADIR%%/CreateEditGeom.vspscript
+%%DATADIR%%/DegenGeom.vspscript
+%%DATADIR%%/Disk.vsppart
+%%DATADIR%%/Duct.vsppart
+%%DATADIR%%/Fuselage.vspscript
+%%DATADIR%%/LICENSE
+%%DATADIR%%/N0012_VSP.af
+%%DATADIR%%/N0012_VSP_sym.af
+%%DATADIR%%/OnOffExample.vsppart
+%%DATADIR%%/PodMan.vsppart
+%%DATADIR%%/Seat.vsppart
+%%DATADIR%%/SeatGroup.vsppart
+%%DATADIR%%/SharkTeeth.tga
+%%DATADIR%%/Stack.vspscript
+%%DATADIR%%/SubSurface.vspscript
+%%DATADIR%%/TestAll.vspscript
+%%DATADIR%%/TransportFuse.vsppart
+%%DATADIR%%/Wing.vspscript
+%%DATADIR%%/b737a.af
+%%DATADIR%%/b737b.af
+%%DATADIR%%/b737c.af
+%%DATADIR%%/b737d.af
+%%DATADIR%%/clarky_Lednicer.dat
+%%DATADIR%%/e205_Selig.dat
+%%DATADIR%%/n0012.dat
+%%DATADIR%%/nasa-logo.tga
+%%DATADIR%%/plotDegenPlate.m
+%%DATADIR%%/plotDegenStick.m
+%%DATADIR%%/plotDegenSurf.m
+%%DATADIR%%/redbluearrow.tga
+%%DATADIR%%/sc2_0404.af
+%%DATADIR%%/window.tga



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604220950.u3M9ogXT068752>