blob: bfe92107c69e68130447dc09132096ca547e3176 (
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
|
# Port makefile for: openvsp
# Date created: Apr 10 2012
# Whom: Fernando Apesteguia <fernando.apesteguia@gmail.com>
#
# $FreeBSD$
PORTNAME= openvsp
PORTVERSION= 2.0
PORTREVISION= 1
CATEGORIES= cad
MASTER_SITES= https://nodeload.github.com/OpenVSP/OpenVSP/tarball/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+= png15:${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:
if [ ! -f ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then \
${FETCH_BINARY} -o ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ${MASTER_SITES}; \
fi
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/vsp/vsp ${PREFIX}/bin
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_PORTEXAMPLES}
.endif
.include <bsd.port.mk>
|