5b5a90256d
Using this new scheme allows only setting the _tag_ or _commit hash_ in GH_TAGNAME and not having to know the hash for a tag. This scheme will download a tarball that has a different checksum than before due to a changed directory name for extraction. The following MASTER_SITES are provided to retain the old checksum and directory structure (that require GH_COMMIT): GH -> GHL GITHUB -> GITHUB_LEGACY Differential Revision: https://reviews.freebsd.org/D748 Submitted by: amdmi3 Reviewed by: mat, swills, antoine, bdrewery With hat: portmgr
52 lines
1.5 KiB
Makefile
52 lines
1.5 KiB
Makefile
# Created by: Fernando Apesteguia <fernando.apesteguia@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= openvsp
|
|
PORTVERSION= 2.3.0
|
|
PORTREVISION= 3
|
|
CATEGORIES= cad
|
|
MASTER_SITES= GHL
|
|
|
|
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 \
|
|
libpng.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 dos2unix iconv
|
|
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>
|