aboutsummaryrefslogtreecommitdiff
path: root/cad/librepcb/Makefile
blob: 9f02c54484334f46a05ff1d0115102e59be3dead (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
PORTNAME=	librepcb
DISTVERSION=	1.0.0
DISTVERSIONSUFFIX=	-source
CATEGORIES=	cad
MASTER_SITES=	https://download.librepcb.org/releases/${DISTVERSION}/

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Schematic and PCB editing software
WWW=		https://librepcb.org/

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/LICENSE.txt

LIB_DEPENDS=	libavcodec.so:multimedia/ffmpeg4 \
		libfontconfig.so:x11-fonts/fontconfig \
		libfreeimage.so:graphics/freeimage \
		libfreetype.so:print/freetype2 \
		libTKService.so:cad/opencascade

USES=		cmake compiler:c++11-lang desktop-file-utils gl \
		localbase:ldflags qt:5 shared-mime-info xorg zip
USE_QT=		concurrent core declarative gui network \
		opengl printsupport quickcontrols2 sql svg xml widgets \
		buildtools:build linguisttools:build testlib:build qmake:build
USE_GL=		gl glu
USE_XORG=	x11

WRKSRC=		${WRKDIR}/${PORTNAME}-${DISTVERSION}

CMAKE_ARGS=	-DCMAKE_PREFIX_PATH=${LOCALBASE}/lib # workaround for https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274834

.include <bsd.port.mk>