2012-04-22 14:06:12 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= openvsp
|
2016-05-12 15:13:36 +02:00
|
|
|
DISTVERSIONPREFIX= ${GH_PROJECT}_
|
2018-11-19 19:29:11 +01:00
|
|
|
DISTVERSION= 3.16.2
|
Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.
PR: 231590
2018-12-12 02:35:33 +01:00
|
|
|
PORTREVISION= 1
|
2012-04-22 14:06:12 +02:00
|
|
|
CATEGORIES= cad
|
|
|
|
|
2018-03-12 20:20:32 +01:00
|
|
|
MAINTAINER= fernape@FreeBSD.org
|
2012-04-22 14:06:12 +02:00
|
|
|
COMMENT= Create a 3D model of an aircraft defined by engineering parameters
|
|
|
|
|
2013-10-14 21:53:58 +02:00
|
|
|
LICENSE= NOSA13
|
|
|
|
LICENSE_NAME= NASA Open Source Agreement version 1.3
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
|
|
|
|
2018-03-18 17:24:51 +01:00
|
|
|
BROKEN_aarch64= fails to compile: invokes x86 asm
|
|
|
|
BROKEN_armv6= fails to compile: invokes x86 asm
|
|
|
|
BROKEN_armv7= fails to compile: invokes x86 asm
|
|
|
|
|
2017-03-29 08:50:28 +02:00
|
|
|
LIB_DEPENDS= libdrm.so:graphics/libdrm \
|
2016-10-09 11:13:04 +02:00
|
|
|
libpng.so:graphics/png \
|
2016-04-01 15:29:15 +02:00
|
|
|
libfreetype.so:print/freetype2 \
|
|
|
|
libexpat.so:textproc/expat2 \
|
|
|
|
libfontconfig.so:x11-fonts/fontconfig \
|
2016-04-22 11:50:42 +02:00
|
|
|
libfltk.so:x11-toolkits/fltk \
|
|
|
|
libGLEW.so:graphics/glew \
|
|
|
|
libcpptest.so:devel/cpptest
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libopenNURBS.a:graphics/opennurbs \
|
|
|
|
${LOCALBASE}/include/glm/glm.hpp:math/glm \
|
2017-03-29 08:50:28 +02:00
|
|
|
${LOCALBASE}/libdata/pkgconfig/pthread-stubs.pc:devel/libpthread-stubs
|
2016-04-22 11:50:42 +02:00
|
|
|
|
2018-12-25 21:25:39 +01:00
|
|
|
USES= compiler:c++11-lang cmake:noninja localbase\
|
2018-11-17 19:08:10 +01:00
|
|
|
gl gnome jpeg
|
2013-04-16 22:19:19 +02:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_PROJECT= OpenVSP
|
|
|
|
GH_ACCOUNT= ${GH_PROJECT}
|
2016-04-22 11:50:42 +02:00
|
|
|
|
2018-11-17 19:08:10 +01:00
|
|
|
CMAKE_SOURCE_PATH= ${WRKSRC}/SuperProject
|
|
|
|
CMAKE_INSTALL_PREFIX= ${STAGEDIR}${PREFIX}
|
2016-04-22 11:50:42 +02:00
|
|
|
CMAKE_ARGS= -DVSP_USE_SYSTEM_CMINPACK:BOOLEAN=yes \
|
|
|
|
-DVSP_USE_SYSTEM_CPPTEST:BOOLEAN=yes \
|
2017-06-23 09:03:30 +02:00
|
|
|
-DVSP_USE_SYSTEM_CODEELI:BOOLEAN=no \
|
|
|
|
-DVSP_USE_SYSTEM_EIGEN:BOOLEAN=no \
|
2016-04-22 11:50:42 +02:00
|
|
|
-DVSP_USE_SYSTEM_LIBXML2: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
|
The FreeBSD x11 team proudly presents
an zeising, kwm, miwi, bapt, eadler production:
Xorg 7.7
Starring:
xserver 1.12.4 (new xorg only)
Mesa 8.0.4, including libGL, libGLU and dri (new xorg only)
libX11 1.5.0
libxcb 1.9
libdrm 2.4.42 (new xorg only)
freeglut 2.8.1
Also starring:
Updates to drivers and other libraries and utilities
Additional notes:
Change pkgconf to be a build dependency.
Add a new USE_XORG, xcb, to depend on libxcb and update all ports to use
this.
Trim makefile headers.
Take maintanership of x11/xcb-proto, ok'd by ashish.
If you are running WITH_NEW_XORG=, you need to rebuild all installed
drivers, see UPDATING for more information.
Various fixes to make ports compile.
PR: ports/177942
Exp-run by: miwi
Approved by: portmgr (miwi)
Thanks to all who helped testing!
2013-05-25 16:37:02 +02:00
|
|
|
USE_XORG= ice sm x11 xau xcb xdamage xdmcp xext xfixes xft \
|
2012-12-16 19:14:59 +01:00
|
|
|
xinerama xrender xxf86vm
|
2016-06-26 14:33:28 +02:00
|
|
|
USE_GL= gl glu
|
|
|
|
|
2012-04-22 14:06:12 +02:00
|
|
|
USE_GNOME= libxml2
|
|
|
|
|
2017-09-06 01:49:46 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2018-03-27 17:10:25 +02:00
|
|
|
BUILD_PREFIX= OpenVSP-prefix/src/OpenVSP-build/_CPack_Packages/FreeBSD/ZIP/OpenVSP-${DISTVERSION}-FreeBSD
|
2012-04-22 14:06:12 +02:00
|
|
|
|
|
|
|
do-install:
|
2016-04-22 11:50:42 +02:00
|
|
|
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${BUILD_PREFIX}/vsp* ${STAGEDIR}${PREFIX}/bin
|
2016-09-17 01:41:23 +02:00
|
|
|
@${STRIP_CMD} ${STAGEDIR}/${PREFIX}/vsp*
|
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
2016-04-22 11:50:42 +02:00
|
|
|
.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}
|
2012-04-22 14:06:12 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|