freebsd-ports/x11/xmotd/Makefile
2014-08-18 19:13:18 +00:00

62 lines
1.5 KiB
Makefile

# Created by: Matthew West <mwest@uct.ac.za>
# $FreeBSD$
PORTNAME= xmotd
DISTVERSION= 1.17.3b
PORTREVISION= 2
CATEGORIES= x11
MASTER_SITES= http://www.ee.ryerson.ca/~elf/pub/
MAINTAINER= ports@FreeBSD.org
COMMENT= message-of-the-day browser for X11 and dumb-terminals
USES= imake:noman
USE_XORG= ice sm x11 xaw xext xmu xt
XFREE86_HTML_MAN= no
PLIST_FILES= bin/xmotd \
man/man8/xmotd.8.gz
OPTIONS_DEFINE= HTML MOTIF XPM
HTML_DESC= Use HTML widget instead of ASCII text
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MHTML}
MAKE_ARGS+= -DHAVE_HTML
BROKEN= Does not compile when WITH_HTML is set
.endif
.if ${PORT_OPTIONS:MMOTIF}
MAKE_ARGS+= -DMOTIF
USES+= motif
.endif
.if ${PORT_OPTIONS:MXPM}
USE_XORG+= xpm
.endif
post-extract:
@${TOUCH} ${WRKSRC}/xmotd.man
post-patch:
@${REINPLACE_CMD} -e 's:/usr/local/bin/::g' ${WRKSRC}/xmotd.8
.for file in libhtmlw/HTML-PSformat.c main.c textmode.c xmotd.c
@${REINPLACE_CMD} -e 's:malloc.h:stdlib.h:' ${WRKSRC}/${file}
.endfor
.if ${PORT_OPTIONS:MHTML}
@${REINPLACE_CMD} -e 's:XCOMM #define HAVE_HTML:#define HAVE_HTML:g' ${WRKSRC}/Imakefile
.endif
.if ${PORT_OPTIONS:MMOTIF}
@${REINPLACE_CMD} -e 's:XCOMM #define MOTIF:#define MOTIF:g' ${WRKSRC}/Imakefile
.endif
.if ${PORT_OPTIONS:MXPM}
@${REINPLACE_CMD} -e 's:XCOMM #define HAVE_XPM:#define HAVE_XPM:g' ${WRKSRC}/Imakefile
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/xmotd ${STAGEDIR}${LOCALBASE}/bin/xmotd
${INSTALL_MAN} ${WRKSRC}/xmotd.8 ${STAGEDIR}${MANPREFIX}/man/man8
.include <bsd.port.mk>