aboutsummaryrefslogtreecommitdiffstats
path: root/x11/dzen2/Makefile
blob: eb85450c24ad638c2c5ff697858d9f14d8cf476f (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
# New ports collection makefile for:   dzen2
# Date created:        May 26 2008
# Whom:                Morten Slot Kristensen
#
# $FreeBSD$
#

PORTNAME=   dzen2
PORTVERSION=    0.8.5
PORTREVISION=   1
CATEGORIES= x11
MASTER_SITES=   http://gotmor.googlepages.com/

MAINTAINER= msk@nullpointer.dk
COMMENT=    General purpose messaging, notification and menuing program for X11

USE_XORG=   x11

PLIST_FILES=    bin/${PORTNAME}

OPTIONS=    XPM     "Enable XPM support" On \
        XINERAMA    "Enable Xinerama support" On

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_XPM)
USE_XORG+=  xpm
.endif

.if !defined(WITHOUT_XINERAMA)
USE_XORG+=  xinerama
.endif

post-patch:
.if !defined(WITHOUT_XPM)
    ${REINPLACE_CMD} -e 's/^LIBS =\(.*\)$$/LIBS =\1 -lXpm/g'    \
        -e 's/^CFLAGS =\(.*\)$$/CFLAGS =\1 -DDZEN_XPM/g'    \
        ${WRKSRC}/config.mk
.endif
.if !defined(WITHOUT_XINERAMA)
    ${REINPLACE_CMD} -e 's/^LIBS =\(.*\)$$/LIBS =\1 -lXinerama/g'   \
        -e 's/^CFLAGS =\(.*\)$$/CFLAGS =\1 -DDZEN_XINERAMA/g'   \
        ${WRKSRC}/config.mk
.endif
    ${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},g'       \
        ${WRKSRC}/config.mk

.include <bsd.port.post.mk>