Lines 1-12
Link Here
|
1 |
PORTNAME= copyq |
1 |
PORTNAME= copyq |
2 |
DISTVERSIONPREFIX= v |
2 |
DISTVERSIONPREFIX= v |
3 |
DISTVERSION= 7.0.0 |
3 |
DISTVERSION= 7.0.0 |
4 |
PORTREVISION= 2 |
4 |
PORTREVISION= 3 |
5 |
CATEGORIES= deskutils |
5 |
CATEGORIES= deskutils |
6 |
PKGNAMESUFFIX= -${FLAVOR} |
6 |
PKGNAMESUFFIX= -${FLAVOR} |
7 |
|
7 |
|
8 |
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/ |
8 |
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/ |
9 |
PATCHFILES+= 79d33dd337deeb357ce92c3d1e2b5b56b6f2c97d.patch:-p1 # Fix build with Qt 6.5.x |
9 |
PATCHFILES+= 79d33dd337deeb357ce92c3d1e2b5b56b6f2c97d.patch:-p1 # Fix build with Qt 6.5.x |
|
|
10 |
PATCHFILES+= 8ae296bed45a7679712aff0cb2e2d0508330ad37.patch:-p1 # Fix cmake warnings |
10 |
|
11 |
|
11 |
MAINTAINER= eduardo@FreeBSD.org |
12 |
MAINTAINER= eduardo@FreeBSD.org |
12 |
COMMENT= Qt${FLAVOR:S/qt//} based clipboard manager |
13 |
COMMENT= Qt${FLAVOR:S/qt//} based clipboard manager |
Lines 18-43
LICENSE_FILE= ${WRKSRC}/LICENSE
Link Here
|
18 |
LIB_DEPENDS= libwayland-client.so:graphics/wayland \ |
19 |
LIB_DEPENDS= libwayland-client.so:graphics/wayland \ |
19 |
libxkbcommon.so:x11/libxkbcommon |
20 |
libxkbcommon.so:x11/libxkbcommon |
20 |
|
21 |
|
21 |
FLAVORS= qt5 qt6 |
22 |
FLAVORS= qt5 qt6 |
22 |
FLAVOR?= qt5 |
23 |
FLAVOR?= qt5 |
23 |
|
|
|
24 |
qt5_CONFLICTS_INSTALL= copyq-qt6 |
24 |
qt5_CONFLICTS_INSTALL= copyq-qt6 |
25 |
qt6_CONFLICTS_INSTALL= copyq-qt5 |
25 |
qt6_CONFLICTS_INSTALL= copyq-qt5 |
26 |
|
26 |
|
27 |
USES= cmake compiler:c++17-lang gl kde:5 qt:${FLAVOR:S/qt//} xorg |
27 |
USES= cmake compiler:c++17-lang desktop-file-utils gl kde:5 pkgconfig \ |
|
|
28 |
qt:${FLAVOR:S/qt//} xorg |
28 |
USE_GITHUB= yes |
29 |
USE_GITHUB= yes |
29 |
GH_ACCOUNT= hluk |
30 |
GH_ACCOUNT= hluk |
30 |
GH_PROJECT= CopyQ |
31 |
GH_PROJECT= CopyQ |
31 |
USE_GL= gl |
32 |
USE_GL= gl |
32 |
USE_KDE= notifications # needed WITH_QT6, Extra CMake Modules (ECM) |
33 |
_USE_KDE_qt5= ecm:build notifications |
|
|
34 |
_USE_KDE_qt6= ecm:build |
35 |
USE_KDE= ${_USE_KDE_${FLAVOR}} |
33 |
_USE_QT5= core dbus declarative gui network svg wayland widgets x11extras \ |
36 |
_USE_QT5= core dbus declarative gui network svg wayland widgets x11extras \ |
34 |
xml buildtools:build qmake:build |
37 |
xml buildtools:build qmake:build |
35 |
_USE_QT6= base declarative svg wayland translations:build |
38 |
_USE_QT6= base declarative svg wayland translations:build |
36 |
USE_QT= ${_USE_QT${FLAVOR:S/qt//}} |
39 |
USE_QT= ${_USE_QT${FLAVOR:S/qt//}} |
37 |
USE_XORG= ice sm x11 xext xfixes xtst |
40 |
USE_XORG= ice sm x11 xext xfixes xtst |
38 |
|
41 |
|
39 |
_QT6_CMAKE_ARGS= -DQtWaylandScanner_EXECUTABLE=${PREFIX}/libexec/qt6/qtwaylandscanner \ |
42 |
_QT6_CMAKE_ARGS= -DWITH_QT6:BOOL=TRUE |
40 |
-DWITH_QT6:BOOL=TRUE |
|
|
41 |
CMAKE_ARGS= ${_QT${FLAVOR:S/qt//}_CMAKE_ARGS} |
43 |
CMAKE_ARGS= ${_QT${FLAVOR:S/qt//}_CMAKE_ARGS} |
42 |
|
44 |
|
43 |
PORTSCOUT= limit:^d\.d\. |
45 |
PORTSCOUT= limit:^d\.d\. |