-
Notifications
You must be signed in to change notification settings - Fork 727
/
Makefile
31 lines (22 loc) · 839 Bytes
/
Makefile
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
PORTNAME= qschematic
DISTVERSION= 1.5.0
CATEGORIES= devel
MAINTAINER= jbo@FreeBSD.org
COMMENT= Qt/C++ library providing widgets for drawing diagrams
WWW= https://github.com/simulton/qschematic
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/license.txt
LIB_DEPENDS= libgpds.so:devel/gpds
USES= cmake compiler:c++17-lang qt:6
USE_QT= base
USE_GITHUB= yes
GH_ACCOUNT= simulton
GH_PROJECT= QSchematic
CMAKE_ARGS= -DQSCHEMATIC_DEPENDENCY_GPDS_TARGET:STRING="gpds::gpds-shared"
CMAKE_OFF= QSCHEMATIC_BUILD_DEMO QSCHEMATIC_DEPENDENCY_GPDS_DOWNLOAD
# Since the update from USES qt:5 to qt:6 there appears to be some overlinking
# resulting in pulling in OpenGL which is not needed by upstream.
# Put a "workaround" in place until we get to investigate this.
LDFLAGS+= -Wl,--as-needed
PLIST_SUB= DISTVERSION=${DISTVERSION}
.include <bsd.port.mk>