aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/musca/Makefile
blob: f34905e86c89e7b61c951e84a74a421e413230ea (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:    musca
# Date created:     2009-03-30
# Whom:         Dennis Herrmann <dhn@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   musca
PORTVERSION=    0.9.24
CATEGORIES= x11-wm
MASTER_SITES=   http://aerosuidae.net/ \
        http://mirror.mcx2.org/
EXTRACT_SUFX=   .tgz

MAINTAINER= dhn@FreeBSD.org
COMMENT=    A simple window manager for X, with features from ratpoison and dwm

RUN_DEPENDS=    dmenu:${PORTSDIR}/x11/dmenu

USE_XORG=   x11
MAKE_ARGS=  CFLAGS="-I${LOCALBASE}/include \
        -L${LOCALBASE}/lib"
MAKE_JOBS_SAFE= yes

PLIST_FILES=    bin/musca
MAN1=   musca.1

pre-everything::
    @${ECHO_MSG} "You can build musca with your own config.h using the MUSCA_CONF knob:"
    @${ECHO_MSG} "make MUSCA_CONF=/path/to/musca/config.h install clean"

post-extract:
.if defined(MUSCA_CONF)
    @${ECHO_MSG} "creating config.h from ${MUSCA_CONF}"
    @${CP} ${MUSCA_CONF} ${WRKSRC}/config.h
.endif

do-install:
    @${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
    ${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MANPREFIX}/man/man1

.include <bsd.port.mk>