aboutsummaryrefslogtreecommitdiff
path: root/cad/appcsxcad/Makefile
blob: 616a31d791057b467619abeee3462b171967943b (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
PORTNAME=	appcsxcad
DISTVERSIONPREFIX=	v
DISTVERSION=	0.2.2-9
DISTVERSIONSUFFIX=	-g97ba30e
PORTREVISION=	2
CATEGORIES=	cad

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Minimal GUI Application using the QCSXCAD library
WWW=		https://github.com/thliebig/AppCSXCAD

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libCSXCAD.so:cad/csxcad \
		libexpat.so:textproc/expat2 \
		libfreetype.so:print/freetype2 \
		libhdf5.so:science/hdf5 \
		libpng16.so:graphics/png \
		libQCSXCAD.so:cad/qcsxcad \
		libsz.so:science/libaec \
		libtiff.so:graphics/tiff \
		libvtkCommonCore-9.1.so:math/vtk9

USES=		cmake jpeg pkgconfig qt:5 xorg
USE_QT=		core gui sql widgets xml buildtools_build qmake_build
USE_XORG=	ice sm x11 xext xt
USE_LDCONFIG=	yes

USE_GITHUB=	yes
GH_ACCOUNT=	thliebig
GH_PROJECT=	AppCSXCAD

CMAKE_ARGS=	-DVTK_DIR=${LOCALBASE}/lib/cmake/vtk-9.1

PLIST_FILES=	bin/AppCSXCAD

post-install:
	@${RM} ${STAGEDIR}${PREFIX}/bin/AppCSXCAD.sh # shell script is only needed for Matlab

# an example of file that AppCSXCAD opens (zipped): http://openems.de/forum/download/file.php?id=418&sid=6daebbb2df72b415fa2ec7031ffa6ca9

.include <bsd.port.mk>