aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/awesome2/Makefile
blob: 65587c70e5d939bac1ab9b7898fc6804e3efba5d (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
51
52
53
54
55
56
57
58
59
60
61
62
# New ports collection makefile for:   awesome
# Date created:                September 26, 2007
# Whom:                        Nikos Ntarmos <ntarmos@ceid.upatras.gr>
#
# $FreeBSD$
#

PORTNAME=   awesome
PORTVERSION=    3.1.1
CATEGORIES= x11-wm
MASTER_SITES=   http://awesome.naquadah.org/download/

MAINTAINER= ntarmos@ceid.upatras.gr
COMMENT=    A tiling window manager initially based on a dwm code rewriting

BUILD_DEPENDS=  asciidoc:${PORTSDIR}/textproc/asciidoc \
        xmlto:${PORTSDIR}/textproc/xmlto \
        xcb-util>=0.3.3:${PORTSDIR}/x11/xcb-util \
        xproto>=7.0.11:${PORTSDIR}/x11/xproto \
        gperf>=3.0.3:${PORTSDIR}/devel/gperf
LIB_DEPENDS=    cairo.2:${PORTSDIR}/graphics/cairo \
        ev.3:${PORTSDIR}/devel/libev \
        freetype.9:${PORTSDIR}/print/freetype2 \
        xcb.2:${PORTSDIR}/x11/libxcb \
        xcb-event.1:${PORTSDIR}/x11/xcb-util

USE_ICONV=  yes
USE_CMAKE=  yes
CMAKE_ARGS+=    -DSYSCONFDIR=${PREFIX}/etc
USE_EFL=    imlib2
USE_GNOME=  glib20 pango
USE_LUA=    5.1+
USE_XORG=   pixman x11 xau xdmcp xext xft xinerama xrandr xrender xproto

MAN1=       awesome.1 \
        awesome-client.1 \
        awsetbg.1
MAN5=       awesomerc.5
MANCOMPRESSED=  yes
PORTDOCS=   AUTHORS BUGS LICENSE README

.include <bsd.port.pre.mk>

.if (exists(${LOCALBASE}/libdata/pkgconfig/cairo.pc) && \
    !exists(${LOCALBASE}/libdata/pkgconfig/cairo-xcb.pc))
IGNORE= cannot find dependency: The cairo exists but not with XCB support. Please reinstall graphics/cairo with XCB support
.endif

pre-configure:
    @${REINPLACE_CMD} \
    -e 's/"generate luadoc" ON/\"generate luadoc" OFF/g' \
        ${WRKSRC}/awesomeConfig.cmake
    @${REINPLACE_CMD} \
    -e 's,gperf,${LOCALBASE}/bin/gperf,g' \
        ${WRKSRC}/build-utils/gperf.sh
.if defined(NOPORTDOCS)
    @${REINPLACE_CMD} \
        -e 's/"install port docs" ON/\"install port docs" OFF/g' \
        ${WRKSRC}/awesomeConfig.cmake
.endif

.include <bsd.port.post.mk>