Tweak x11/gdesklets-tasklist version 0.10_11
[dports.git] / x11 / xmotd / Makefile
1 # Created by: Matthew West <mwest@uct.ac.za>
2 # $FreeBSD: x11/xmotd/Makefile 340722 2014-01-22 17:00:46Z mat $
3
4 PORTNAME=       xmotd
5 DISTVERSION=    1.17.3b
6 PORTREVISION=   2
7 CATEGORIES=     x11
8 MASTER_SITES=   http://www.ee.ryerson.ca/~elf/pub/
9
10 MAINTAINER=     ports@FreeBSD.org
11 COMMENT=        message-of-the-day browser for X11 and dumb-terminals
12
13 USES=           imake
14 USE_XORG=       ice sm x11 xaw xext xmu xt
15 NO_INSTALL_MANPAGES=    yes
16 XFREE86_HTML_MAN=       no
17
18 PLIST_FILES=    bin/xmotd \
19                 man/man8/xmotd.8.gz
20
21 OPTIONS_DEFINE= HTML MOTIF XPM
22 HTML_DESC=      Use HTML widget instead of ASCII text
23
24 .include <bsd.port.options.mk>
25
26 .if ${PORT_OPTIONS:MHTML}
27 MAKE_ARGS+=     -DHAVE_HTML
28 BROKEN=         Does not compile when WITH_HTML is set
29 .endif
30
31 .if ${PORT_OPTIONS:MMOTIF}
32 MAKE_ARGS+=     -DMOTIF
33 USES+=          motif
34 .endif
35
36 .if ${PORT_OPTIONS:MXPM}
37 USE_XORG+=      xpm
38 .endif
39
40 post-extract:
41         @${TOUCH} ${WRKSRC}/xmotd.man
42
43 post-patch:
44         @${REINPLACE_CMD} -e 's:/usr/local/bin/::g' ${WRKSRC}/xmotd.8
45 .for file in libhtmlw/HTML-PSformat.c main.c textmode.c xmotd.c
46         @${REINPLACE_CMD} -e 's:malloc.h:stdlib.h:' ${WRKSRC}/${file}
47 .endfor
48 .if ${PORT_OPTIONS:MHTML}
49         @${REINPLACE_CMD} -e 's:XCOMM #define HAVE_HTML:#define HAVE_HTML:g' ${WRKSRC}/Imakefile
50 .endif
51 .if ${PORT_OPTIONS:MMOTIF}
52         @${REINPLACE_CMD} -e 's:XCOMM #define MOTIF:#define MOTIF:g' ${WRKSRC}/Imakefile
53 .endif
54 .if ${PORT_OPTIONS:MXPM}
55         @${REINPLACE_CMD} -e 's:XCOMM #define HAVE_XPM:#define HAVE_XPM:g' ${WRKSRC}/Imakefile
56 .endif
57
58 do-install:
59         ${INSTALL_PROGRAM} ${WRKSRC}/xmotd ${STAGEDIR}${LOCALBASE}/bin/xmotd
60         ${INSTALL_MAN} ${WRKSRC}/xmotd.8 ${STAGEDIR}${MANPREFIX}/man/man8
61
62 .include <bsd.port.mk>