aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/beryl-plugins/Makefile
blob: ad029279207847e6d39c1045a670b9e12ee5e015 (plain) (blame)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# New ports collection makefile for:    beryl-plugins
# Date created:             Oct 29 2006
# Whom:                 Florent Thoumie <flz@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   beryl-plugins
PORTVERSION=    0.2.1
PORTREVISION=   1
CATEGORIES= x11-wm
MASTER_SITES=   http://releases.beryl-project.org/${PORTVERSION}/ \
        ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= flz/beryl/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Plugins for Beryl Composite/Window Manager

# XXX - Might depends on graphics/libsvg-cairo instead.
LIB_DEPENDS=    cairo.2:${PORTSDIR}/graphics/cairo
BUILD_DEPENDS=  ${LOCALBASE}/libdata/pkgconfig/beryl.pc:${PORTSDIR}/x11-wm/beryl-core
RUN_DEPENDS=    ${BUILD_DEPENDS}

GNU_CONFIGURE=  yes
USE_GL=     yes
USE_BZIP2=  yes
USE_GMAKE=  yes
USE_GNOME=  glib20 librsvg2
USE_XORG=   glproto
USE_GETTEXT=    yes
USE_LDCONFIG=   yes

CONFIGURE_TARGET=   --build=${ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"

OPTIONS=    DBUS "Enable dbus support" On

.include <bsd.port.pre.mk>

.if defined(WITH_DBUS)
CONFIGURE_ARGS= --enable-dbus
BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/dbus-1.pc:${PORTSDIR}/devel/dbus
PLIST_SUB=  DBUS=""
.else
CONFIGURE_ARGS= --disable-dbus
PLIST_SUB=  DBUS="@comment "
.endif

.include <bsd.port.post.mk>