freebsd-ports/x11/workrave/Makefile
Rene Ladan 3d9a815d9c all: remove explicit versions in USES=python for "3.x+"
The logic in USES=python will automatically convert this to 3.8+ by
itself.

Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.

finance/quickfix: mark BROKEN with PYTHON

libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++ -DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable -Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi -Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings -Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x -MT _quickfix_la-QuickfixPython.lo -MD -MP -MF .deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp  -fPIC -DPIC -o .libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
          ^~~~~~~~~~
1 warning and 1 error generated.

Reviewed by:	portmgr, vishwin, yuri
Differential Revision:	<https://reviews.freebsd.org/D40568>
2023-06-27 21:34:34 +02:00

74 lines
1.9 KiB
Makefile

PORTNAME= workrave
PORTVERSION= 1.10.50
DISTVERSIONPREFIX= v
PORTREVISION= 1
CATEGORIES= x11
MASTER_SITES= https://github.com/rcaelers/workrave/releases/download/v${PORTVERSION:S/./_/g}/
MAINTAINER= cyberbotx@cyberbotx.com
COMMENT= RSI prevention tool (${FLAVOR} flavor)
WWW= https://www.workrave.org/
LICENSE= GPLv3+
LIB_DEPENDS= libgdome.so:textproc/gdome2 \
libharfbuzz.so:print/harfbuzz
FLAVORS= default xfce
FLAVOR?= ${FLAVORS:[1]}
xfce_PKGNAMESUFFIX= -xfce
xfce_DESCR= ${.CURDIR}/pkg-descr.xfce
xfce_CONFLICTS_INSTALL= workrave
default_CONFLICTS_INSTALL= workrave-xfce
USES= compiler:c++11-lang desktop-file-utils gmake gnome libtool \
localbase pkgconfig xorg
.if ${FLAVOR} == xfce
CATEGORIES+= xfce
USES+= xfce
USE_XFCE= libutil panel
# Easier than using *_SUB since there's no flavor helper for that.
PLIST_FILES= lib/xfce4/panel/plugins/libworkrave-plugin.a \
lib/xfce4/panel/plugins/libworkrave-plugin.so \
share/xfce4/panel/plugins/workrave-xfce-applet.desktop
.endif
USE_CXXSTD= c++11
USE_GNOME= gdkpixbuf2 gtkmm30 intlhack intltool introspection:build
USE_LDCONFIG= yes
USE_XORG= ice sm x11 xext xmu xorgproto xscrnsaver xtst
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-gconf \
--disable-gnome3 \
--disable-gsettings \
--disable-indicator \
--disable-mate \
--disable-pulse
.if ${FLAVOR} != xfce
CONFIGURE_ARGS+= --disable-xfce
.endif
INSTALL_TARGET= install-strip
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
OPTIONS_DEFINE= DBUS DISTRIBUTION GSTREAMER NLS
OPTIONS_DEFAULT= DBUS GSTREAMER
OPTIONS_SUB= yes
DISTRIBUTION_DESC= Build with networking support
DBUS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2@${PY_FLAVOR} \
boost-libs>0:devel/boost-libs
DBUS_USES= python:build
DBUS_CONFIGURE_ENABLE= dbus
DISTRIBUTION_CONFIGURE_ENABLE= distribution
GSTREAMER_USES= gstreamer
GSTREAMER_USE= GSTREAMER=good
GSTREAMER_CONFIGURE_ENABLE= gstreamer
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
.include <bsd.port.mk>