aboutsummaryrefslogtreecommitdiff
path: root/cad
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2012-04-22 12:06:12 +0000
committerPawel Pekala <pawel@FreeBSD.org>2012-04-22 12:06:12 +0000
commitb9c8e3ecb7e272becd6ff25667099f5b04939413 (patch)
tree3e35b36a05ede3c8c0b0c26fecc08d293f26b141 /cad
parent1ac8535d32a6d00231658c50bf6676de528faa78 (diff)
downloadports-b9c8e3ecb7e272becd6ff25667099f5b04939413.tar.gz
ports-b9c8e3ecb7e272becd6ff25667099f5b04939413.zip
Notes
Diffstat (limited to 'cad')
-rw-r--r--cad/Makefile1
-rw-r--r--cad/openvsp/Makefile46
-rw-r--r--cad/openvsp/distinfo2
-rw-r--r--cad/openvsp/files/patch-xmlvsp-CMakeLists.txt11
-rw-r--r--cad/openvsp/pkg-descr7
5 files changed, 67 insertions, 0 deletions
diff --git a/cad/Makefile b/cad/Makefile
index 58617186073e..f905b9cc66b8 100644
--- a/cad/Makefile
+++ b/cad/Makefile
@@ -64,6 +64,7 @@
SUBDIR += opencascade
SUBDIR += opencascade-tutorial
SUBDIR += openscad
+ SUBDIR += openvsp
SUBDIR += p5-GDS2
SUBDIR += p5-Verilog-Perl
SUBDIR += pcb
diff --git a/cad/openvsp/Makefile b/cad/openvsp/Makefile
new file mode 100644
index 000000000000..148e7d4d6931
--- /dev/null
+++ b/cad/openvsp/Makefile
@@ -0,0 +1,46 @@
+# Port makefile for: openvsp
+# Date created: Apr 10 2012
+# Whom: Fernando Apesteguia <fernando.apesteguia@gmail.com>
+#
+# $FreeBSD$
+
+PORTNAME= openvsp
+PORTVERSION= 2.0
+CATEGORIES= cad
+MASTER_SITES= https://nodeload.github.com/OpenVSP/OpenVSP/tarball/
+DISTNAME= OpenVSP_${PORTVERSION}_Community
+
+MAINTAINER= fernando.apesteguia@gmail.com
+COMMENT= Create a 3D model of an aircraft defined by engineering parameters
+
+BUILD_DEPENDS= ${LOCALBASE}/lib/libopenNURBS.a:${PORTSDIR}/graphics/opennurbs
+
+LIB_DEPENDS+= fltk:${PORTSDIR}/x11-toolkits/fltk
+LIB_DEPENDS+= jpeg:${PORTSDIR}/graphics/jpeg
+LIB_DEPENDS+= png:${PORTSDIR}/graphics/png
+
+WRKSRC= ${WRKDIR}/OpenVSP-OpenVSP-574d7c3/src
+
+USE_CMAKE= yes
+USE_DOS2UNIX= yes
+USE_XORG= xinerama xft
+USE_GNOME= libxml2
+
+PORTEXAMPLES= *
+INSTALL_PORTEXAMPLES= @(cd ${WRKSRC}/../examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
+
+PLIST_FILES= bin/vsp
+
+CFLAGS+= -I${LOCALBASE}/include/openNURBS
+
+do-fetch:
+ ${FETCH_BINARY} -o ${DISTDIR}/${DISTNAME}.tar.gz ${MASTER_SITES}${DISTNAME}
+
+do-install:
+ @${INSTALL_PROGRAM} ${WRKSRC}/vsp/vsp ${PREFIX}/bin
+.if !defined(NOPORTEXAMPLES)
+ @${MKDIR} ${EXAMPLESDIR}
+ @${INSTALL_PORTEXAMPLES}
+.endif
+
+.include <bsd.port.mk>
diff --git a/cad/openvsp/distinfo b/cad/openvsp/distinfo
new file mode 100644
index 000000000000..28a2efe73be9
--- /dev/null
+++ b/cad/openvsp/distinfo
@@ -0,0 +1,2 @@
+SHA256 (OpenVSP_2.0_Community.tar.gz) = 7086327a60d5952ef3e5780e99d4313f2a10a7f713b35470e104e07fccb6e856
+SIZE (OpenVSP_2.0_Community.tar.gz) = 2876175
diff --git a/cad/openvsp/files/patch-xmlvsp-CMakeLists.txt b/cad/openvsp/files/patch-xmlvsp-CMakeLists.txt
new file mode 100644
index 000000000000..5589855a9c8c
--- /dev/null
+++ b/cad/openvsp/files/patch-xmlvsp-CMakeLists.txt
@@ -0,0 +1,11 @@
+--- /home/fernape/porting/openvsp/original/OpenVSP_2.0_community_src/src/xmlvsp/CMakeLists.txt 2012-04-04 21:03:54.000000000 +0200
++++ xmlvsp/CMakeLists.txt 2012-04-04 20:29:08.000000000 +0200
+@@ -2,7 +2,7 @@
+
+ FIND_PACKAGE(LibXml2 REQUIRED)
+
+-INCLUDE_DIRECTORIES( ${LIBXML2_INCLUDE_DIR})
++INCLUDE_DIRECTORIES( ${LIBXML2_INCLUDE_DIR} /usr/local/include)
+
+ SET(XMLVSP_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE PATH "Path to XML wrapper header.")
+
diff --git a/cad/openvsp/pkg-descr b/cad/openvsp/pkg-descr
new file mode 100644
index 000000000000..2fb3180d2505
--- /dev/null
+++ b/cad/openvsp/pkg-descr
@@ -0,0 +1,7 @@
+NASA Open Source Parametric Geometry
+
+OpenVSP allows the user to create a 3D model of an aircraft defined by
+common engineering parameters. This model can be processed into
+formats suitable for engineering analysis.
+
+WWW: http://www.openvsp.org/