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

PORTNAME=   wmii
DISTVERSION=    3.6
PORTREVISION=   2
CATEGORIES= x11-wm
MASTER_SITES=    http://code.suckless.org/dl/${PORTNAME}/

MAINTAINER= danfe@FreeBSD.org
COMMENT=    A dynamic, minimalist window manager for X11

LIB_DEPENDS=    ixp.1:${PORTSDIR}/devel/libixp
RUN_DEPENDS=    dmenu:${PORTSDIR}/x11/dmenu \
        ${LOCALBASE}/9/bin/rc:${PORTSDIR}/devel/9base

USE_ICONV=  yes
USE_XORG=   x11 xextproto xt xext

MAKE_ARGS=  PREFIX="${PREFIX}" INCLUDE="${LOCALBASE}/include" \
        INCX11="-I${LOCALBASE}/include" LIBX11="-L${LOCALBASE}/lib" \
        CC="${CC} -c" LD="${CC}" LIBIXP="-lixp" STATIC="" \
        LIBICONV="-liconv" MAN="${MANPREFIX}/man"

MAN1=       wmii.1 wmiiloop.1 wmiir.1

post-patch: .SILENT
    ${REINPLACE_CMD} -e 's|-lfmt -lutf|$${LIBX11} & -lX11|' \
        ${WRKSRC}/cmd/Makefile
# Strip debug build options
    ${REINPLACE_CMD} -E 's| -g( -O0)?||' ${WRKSRC}/config.mk
    ${REINPLACE_CMD} -e 's|CFLAGS += -DIXPlint|& -DIXP_NEEDAPI=89|' \
        ${WRKSRC}/config.mk$
# Make actual compile/link command appear in the build log
    ${REINPLACE_CMD} -e 's|^COMPILE=|& noisycc=yes | ; \
        s|^LINK=|& noisycc=yes |' ${WRKSRC}/mk/hdr.mk

.include <bsd.port.mk>