View | Details | Raw Unified | Return to bug 128279
Collapse All | Expand All

(-)dzen2/Makefile (-1 / +25 lines)
Lines 7-12 Link Here
7
7
8
PORTNAME=	dzen2
8
PORTNAME=	dzen2
9
PORTVERSION=	0.8.5
9
PORTVERSION=	0.8.5
10
PORTREVISION=	1
10
CATEGORIES=	x11
11
CATEGORIES=	x11
11
MASTER_SITES=	http://gotmor.googlepages.com/
12
MASTER_SITES=	http://gotmor.googlepages.com/
12
13
Lines 17-24 Link Here
17
18
18
PLIST_FILES=	bin/${PORTNAME}
19
PLIST_FILES=	bin/${PORTNAME}
19
20
21
OPTIONS=	XPM		"Enable XPM support" On \
22
		XINERAMA	"Enable Xinerama support" On
23
24
.include <bsd.port.pre.mk>
25
26
.if !defined(WITHOUT_XPM)
27
USE_XORG+=	xpm
28
.endif
29
30
.if !defined(WITHOUT_XINERAMA)
31
USE_XORG+=	xinerama
32
.endif
33
20
post-patch:
34
post-patch:
35
.if !defined(WITHOUT_XPM)
36
	${REINPLACE_CMD} -e 's/^LIBS =\(.*\)$$/LIBS =\1 -lXpm/g'	\
37
	  	-e 's/^CFLAGS =\(.*\)$$/CFLAGS =\1 -DDZEN_XPM/g'	\
38
		${WRKSRC}/config.mk
39
.endif
40
.if !defined(WITHOUT_XINERAMA)
41
	${REINPLACE_CMD} -e 's/^LIBS =\(.*\)$$/LIBS =\1 -lXinerama/g'	\
42
	  	-e 's/^CFLAGS =\(.*\)$$/CFLAGS =\1 -DDZEN_XINERAMA/g'	\
43
		${WRKSRC}/config.mk
44
.endif
21
	${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},g'       \
45
	${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},g'       \
22
		${WRKSRC}/config.mk
46
		${WRKSRC}/config.mk
23
47
24
.include <bsd.port.mk>
48
.include <bsd.port.post.mk>

Return to bug 128279