aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/wmii/Makefile
blob: e10d4ed5055322658de8c76e8fd2371e7e3872e2 (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
# New ports collection makefile for:    Window Manager Improved 2
# Date created:             02 Jun 2005
# Whom:                 Alexey Dokuchaev <danfe@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   wmii
DISTVERSION=    2
PORTREVISION=   1
CATEGORIES= x11-wm
MASTER_SITES=   http://wmi.modprobe.de/download/

MAINTAINER= danfe@FreeBSD.org
COMMENT=    The next generation of WMI window manager

USE_BZIP2=  yes
USE_REINPLACE=  yes
USE_X_PREFIX=   yes

MAKE_ARGS=  PREFIX="${PREFIX}" X11DIR="${X11BASE}" CC="${CC}" \
        MANPREFIX="${PREFIX}/man"

OPTIONS=    CAIRO   "Enable Cairo rendering backend"    off \
        STRL    "Use strlcpy()/strlcat() functions" off

MAN1=       wmibar.1 wmifs.1 wmii.1 wmikeys.1 wmimenu.1 wmir.1
MAN5=       wmii.rc.5

.include <bsd.port.pre.mk>

# The cairo backend is not recommended in production use, because the cairo
# library is still very buggy and causes crashes often.
.if defined(WITH_CAIRO)
LIB_DEPENDS=    cairo.2:${PORTSDIR}/graphics/cairo
MAKE_ARGS+= DRAW=cairo
.endif

.if defined(WITH_STRL)
MAKE_ARGS+= STRLCPY="strlcpy" STRLCAT="strlcat"
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|/usr/include|${LOCALBASE}/include|' \
        -e 's|/usr/lib|${LOCALBASE}/lib|' \
        -e 's|-O0 -g -Wall -pedantic|${CFLAGS}|; s|-g||' \
        ${WRKSRC}/config.mk
.if defined(WITH_CAIRO)
    @${REINPLACE_CMD} -e 's,^#CAIRO,CAIRO,' ${WRKSRC}/config.mk
.endif

.include <bsd.port.post.mk>