freebsd-ports/sysutils/bareos23-traymonitor/Makefile

48 lines
1.0 KiB
Makefile

PORTREVISION= 1
COMMENT= Backup archiving recovery open sourced (traymonitor)
LIB_DEPENDS+= libbareos.so:sysutils/bareos23-client
CONFLICTS= bareos20-traymonitor bareos21-traymonitor bareos22-traymonitor \
bareos-traymonitor
USES= desktop-file-utils gettext-runtime pkgconfig
FLAVORS= qt5 qt6
FLAVOR?= ${FLAVORS:[1]}
CFLAGS+= -Wno-unused-parameter
qt5_CONFLICTS= bareos-traymonitor-qt6
qt6_CONFLICTS= bareos-traymonitor-qt5
.if ${FLAVOR} == qt6
PKGNAMESUFFIX= 23-traymonitor-qt6
USES+= qt:6
USE_QT= base:run declarative:build tools:build
CMAKE_ARGS+= -Dbat-qt6=yes
.else
PKGNAMESUFFIX= 23-traymonitor-qt5
LIB_DEPENDS+= libqwt5-qt5.so:x11-toolkits/qwt5-qt5
USES+= qt:5
USE_QT= buildtools:build qmake:build uitools:build gui core widgets
.endif
WITH_BAT= yes
PLIST= ${.CURDIR}/pkg-plist
CFLAGS+= -DMDB_DSYNC=O_SYNC -DMDB_USE_POSIX_SEM=1
MASTERDIR= ${.CURDIR}/../../sysutils/bareos23-server
CMAKE_ARGS+= -Dtraymonitor=yes \
-Dbuild-dird=no \
-Dbuild-stored=no \
-Dclient-only=yes \
-Dnls=ON
.include "${MASTERDIR}/Makefile"