1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/cad/openvsp/Makefile
Fernando Apesteguía 71f67cb878 cad/openvsp: update to 3.38.0
ChangeLog:
https://openvsp.org/blogs/announcements/2024/04/17/openvsp-3-38-0-released

Features:

 * Show Only, Show, NoShow buttons now recurse like everything else.
 * User adjustable number of Sets
 * Measure works with non-surface Geoms (blank and hinge)
 * Unique variable names enforced when renaming advanced link vars
 * Re-worded variable renaming buttons
 * Output multi-line error messages when links are broken
 * Bigger filename at screen bottom
 * Filename in main title bar
 * Integrated flowpath modeling extension now extends to constant X
 * Integrated flowpath modeling extension distance auto determined
 * Height/width/area/aspect sliders for CEdit XSecCurve now displayed
 * Better patch names for unintersected STEP/IGES surface export
 * TE surface merging for STEP/IGES export

Library Updates:

 * Update to latest FLTK dev as they approach 1.4.0

Bug Fixes:

 * Fix invisible subsurfaces
 * Fix XSecSurf highlights that won’t go away
 * Expand ranges for AR and Span – should fix some odd wings seen in Group
 * Fix some odd scattered indexing bugs
 * Fix some problems with CFDMesh sourcing
2024-04-20 19:23:37 +02:00

83 lines
2.6 KiB
Makefile

PORTNAME= openvsp
DISTVERSIONPREFIX= ${GH_PROJECT}_
DISTVERSION= 3.38.0
CATEGORIES= cad
MAINTAINER= fernape@FreeBSD.org
COMMENT= Create a 3D model of an aircraft defined by engineering parameters
WWW= http://www.openvsp.org/
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
BROKEN_aarch64= fails to compile: invokes x86 asm
BUILD_DEPENDS= ${LOCALBASE}/lib/libopenNURBS.a:graphics/opennurbs \
${LOCALBASE}/include/glm/glm.hpp:math/glm
LIB_DEPENDS= libdrm.so:graphics/libdrm \
libpng.so:graphics/png \
libfreetype.so:print/freetype2 \
libexpat.so:textproc/expat2 \
libfontconfig.so:x11-fonts/fontconfig \
libfltk.so:x11-toolkits/fltk \
libcpptest.so:devel/cpptest
USES= cmake:noninja localbase \
gl gnome jpeg xorg
.if !exists(/usr/include/omp.h)
CXXFLAGS+= -fpermissive
USES+= compiler:gcc-c++11-lib
.else
USES+= compiler:c++11-lang
.endif
USE_GITHUB= yes
GH_ACCOUNT= ${GH_PROJECT}
GH_PROJECT= OpenVSP
BINARY_ALIAS= fltk::fluid=fluid
USE_GL= gl glew glu
USE_GNOME= libxml2
USE_XORG= ice sm x11 xau xcb xdamage xdmcp xext xfixes xft \
xinerama xrender xxf86vm
CMAKE_ARGS= -DVSP_USE_SYSTEM_CMINPACK:BOOLEAN=yes \
-DVSP_USE_SYSTEM_CPPTEST:BOOLEAN=yes \
-DVSP_USE_SYSTEM_CODEELI:BOOLEAN=no \
-DVSP_USE_SYSTEM_EIGEN:BOOLEAN=no \
-DVSP_USE_SYSTEM_LIBXML2:BOOLEAN=yes \
-DVSP_USE_SYSTEM_FLTK:boolean=no \
-DCMAKE_PREFIX_PATH=/usr/local \
-DVSP_USE_SYSTEM_CMINPACK:boolean=no \
-DVSP_USE_SYSTEM_GLM:BOOLEAN=yes \
-DVSP_USE_SYSTEM_GLEW:BOOLEAN=yes
CMAKE_INSTALL_PREFIX= ${STAGEDIR}${PREFIX}
CMAKE_SOURCE_PATH= ${WRKSRC}/SuperProject
BUILD_PREFIX= OpenVSP-prefix/src/OpenVSP-build/_CPack_Packages/FreeBSD/ZIP/OpenVSP-${DISTVERSION}-FreeBSD
CXXFLAGS_powerpc64= -mvsx
post-patch:
@${REINPLACE_CMD} 's/fltk::gl/fltk_gl/' ${WRKSRC}/src/CMakeLists.txt \
${WRKSRC}/src/vsp_aero/Viewer/CMakeLists.txt
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${BUILD_WRKSRC}/${BUILD_PREFIX}/vspIcon.png ${STAGEDIR}${DATADIR}
${RM} ${STAGEDIR}${PREFIX}/vspIcon.png ${BUILD_WRKSRC}/${BUILD_PREFIX}/vspIcon.png
.for f in vsp vspaero vspaero_adjoint vspaero_complex vspaero_opt vsploads vspscript vspviewer
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${BUILD_PREFIX}/${f} ${STAGEDIR}${PREFIX}/bin
${RM} ${STAGEDIR}${PREFIX}/${f}
.endfor
.for d in CustomScripts airfoil matlab scripts textures
(cd ${BUILD_WRKSRC}/${BUILD_PREFIX}/${d} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
${RM} -rf ${STAGEDIR}${PREFIX}/${d}
.endfor
${CP} ${BUILD_WRKSRC}/${BUILD_PREFIX}/LICENSE ${STAGEDIR}${DATADIR}
${RM} ${STAGEDIR}${PREFIX}/LICENSE
.include <bsd.port.mk>