aboutsummaryrefslogtreecommitdiffstats
path: root/cad/openvsp/Makefile
blob: 1706990046e2de08a8337195cb51e7e22596c9fc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Created by: Fernando Apesteguia <fernando.apesteguia@gmail.com>
# $FreeBSD$

PORTNAME=   openvsp
PORTVERSION=    2.3.0
PORTREVISION=   1
CATEGORIES= cad
MASTER_SITES=   GH

MAINTAINER= fernando.apesteguia@gmail.com
COMMENT=    Create a 3D model of an aircraft defined by engineering parameters

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

BUILD_DEPENDS=  ${LOCALBASE}/lib/libopenNURBS.a:${PORTSDIR}/graphics/opennurbs
LIB_DEPENDS=    libpthread-stubs.so:${PORTSDIR}/devel/libpthread-stubs \
        libjpeg.so:${PORTSDIR}/graphics/jpeg \
        libdrm.so:${PORTSDIR}/graphics/libdrm \
        libpng15.so:${PORTSDIR}/graphics/png \
        libfreetype.so:${PORTSDIR}/print/freetype2 \
        libexpat.so:${PORTSDIR}/textproc/expat2 \
        libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig \
        libfltk.so:${PORTSDIR}/x11-toolkits/fltk

USE_GITHUB= yes
GH_PROJECT= OpenVSP
GH_ACCOUNT= ${GH_PROJECT}
GH_TAGNAME= ${GH_PROJECT}_${PORTVERSION}
GH_COMMIT=  568c424

CMAKE_SOURCE_PATH=  ${WRKSRC}/src
USES=       cmake:outsource iconv
USE_DOS2UNIX=   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

do-install:
    ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/vsp/vsp ${STAGEDIR}${PREFIX}/bin
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    (cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})

.include <bsd.port.mk>