aboutsummaryrefslogtreecommitdiffstats
path: root/x11/wmbutton/Makefile
blob: d3a9b199270d3562870a36e58a6daed790c1548b (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
# Created by: Jim Mock <jim@FreeBSD.org>
# $FreeBSD$

PORTNAME=   wmbutton
PORTVERSION=    0.6.1
PORTREVISION=   2
CATEGORIES= x11 windowmaker
MASTER_SITES=   http://greek0.net/wmbutton/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Dockapp that displays 9 buttons to run apps of your choice

LICENSE=    GPLv2

USE_XORG=   xpm

SUB_FILES=  pkg-message

PORTDOCS=   README
PORTEXAMPLES=   dot.wmbutton
PLIST_FILES=    bin/wmbutton

OPTIONS_DEFINE= DOCS EXAMPLES

.include <bsd.port.options.mk>

do-build:
    cd ${BUILD_WRKSRC} && ${CC} ${CFLAGS} \
        -I${LOCALBASE}/include/X11 -I${LOCALBASE}/include \
        wmb_libs.c wmbutton.c -o wmbutton \
        -L${LOCALBASE}/lib -lXpm -lXext -lX11

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/wmbutton ${STAGEDIR}${PREFIX}/bin/wmbutton
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/README
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/.wmbutton ${STAGEDIR}${EXAMPLESDIR}/dot.wmbutton
.endif

.include <bsd.port.mk>