freebsd-ports/x11/workrave/Makefile
Mathieu Arnold 551be3c723 Convert Python ports to FLAVORS.
Ports using USE_PYTHON=distutils are now flavored.  They will
  automatically get flavors (py27, py34, py35, py36) depending on what
  versions they support.

  There is also a USE_PYTHON=flavors for ports that do not use distutils
  but need FLAVORS to be set.  A USE_PYTHON=noflavors can be set if
  using distutils but flavors are not wanted.

  A new USE_PYTHON=optsuffix that will add PYTHON_PKGNAMESUFFIX has been
  added to cope with Python ports that did not have the Python
  PKGNAMEPREFIX but are flavored.

  USES=python now also exports a PY_FLAVOR variable that contains the
  current python flavor.  It can be used in dependency lines when the
  port itself is not python flavored.  For example, deskutils/calibre.

  By default, all the flavors are generated.  To only generate flavors
  for the versions in PYTHON2_DEFAULT and PYTHON3_DEFAULT, define
  BUILD_DEFAULT_PYTHON_FLAVORS in your make.conf.

  In all the ports with Python dependencies, the *_DEPENDS entries MUST
  end with the flavor so that the framework knows which to build/use.
  This is done by appending '@${PY_FLAVOR}' after the origin (or
  @${FLAVOR} if in a Python module with Python flavors, as the content
  will be the same).  For example:

    RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}

PR:		223071
Reviewed by:	portmgr, python
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D12464
2017-11-30 15:50:30 +00:00

67 lines
1.7 KiB
Makefile

# Created by: Koop Mast <einekoai@chello.nl>
# $FreeBSD$
PORTNAME= workrave
DISTVERSIONPREFIX= v
DISTVERSION= 1_10_16
PORTREVISION= 1
CATEGORIES= x11
MAINTAINER= tobik@FreeBSD.org
COMMENT= RSI prevention tool
LICENSE= GPLv3+
LIB_DEPENDS= libgdome.so:textproc/gdome2
USES= compiler:c++11-lang autoreconf:build gettext gmake libtool \
localbase pathfix pkgconfig
USE_CXXSTD= c++11
USE_XORG= ice recordproto sm x11 xext xmu xscrnsaver xtst
USE_GNOME= intltool intlhack introspection gtkmm30
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-gsettings \
--disable-pulse \
--disable-gconf \
--disable-mate \
--disable-gnome2 \
--disable-gnome3 \
--disable-xfce \
--disable-indicator
INSTALLS_ICONS= yes
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= rcaelers
INSTALL_TARGET= install-strip
OPTIONS_DEFINE= DBUS DISTRIBUTION GSTREAMER
OPTIONS_DEFAULT= DBUS GSTREAMER
OPTIONS_SUB= yes
DISTRIBUTION_DESC= Build with networking support
DBUS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cheetah>0:devel/py-cheetah@${PY_FLAVOR}
DBUS_CONFIGURE_ENABLE= dbus
DBUS_USES= python:2.7
DISTRIBUTION_CONFIGURE_ENABLE= distribution
GSTREAMER_LIB_DEPENDS= libgstreamer-1.0.so:multimedia/gstreamer1
GSTREAMER_CONFIGURE_ENABLE= gstreamer
GSTREAMER_USE= gstreamer1=good
# Remove gnome-shell cinnamon subdirs from build, so it doesn't install
# unused files
post-patch:
@${REINPLACE_CMD} -e 's| gnome-shell cinnamon | |' \
${WRKSRC}/frontend/applets/Makefile.am
# Run bundled autogen.sh instead of relying on USES=autoreconf which
# leads to errors like
# config.status: error: po/Makefile.in.in was not created by intltoolize.
pre-configure:
@cd ${WRKSRC} && ./autogen.sh
.include <bsd.port.mk>