1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- Add LICENSE

- Switch to options helpers
- Update WWW
- Pet portlint
This commit is contained in:
Dmitry Marakasov 2018-06-07 09:34:26 +00:00
parent ab7daddca8
commit 78036308e4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=471905
2 changed files with 17 additions and 22 deletions

View File

@ -8,7 +8,10 @@ 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
COMMENT= Message-of-the-day browser for X11 and dumb-terminals
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/GNU
USES= imake:noman
USE_XORG= ice sm x11 xaw xext xmu xt
@ -18,23 +21,15 @@ 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>
HTML_DESC= Use HTML widget instead of ASCII text
HTML_MAKE_ARGS= -DHAVE_HTML
HTML_BROKEN= Does not compile when WITH_HTML is set
.if ${PORT_OPTIONS:MHTML}
MAKE_ARGS+= -DHAVE_HTML
BROKEN= Does not compile when WITH_HTML is set
.endif
MOTIF_MAKE_ARGS= -DMOTIF
MOTIF_USES= motif
.if ${PORT_OPTIONS:MMOTIF}
MAKE_ARGS+= -DMOTIF
USES+= motif
.endif
.if ${PORT_OPTIONS:MXPM}
USE_XORG+= xpm
.endif
XPM_USE= XORG=xpm
post-extract:
@${TOUCH} ${WRKSRC}/xmotd.man
@ -44,15 +39,15 @@ post-patch:
.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}
post-patch-HTML-on:
@${REINPLACE_CMD} -e 's:XCOMM #define HAVE_HTML:#define HAVE_HTML:g' ${WRKSRC}/Imakefile
.endif
.if ${PORT_OPTIONS:MMOTIF}
post-patch-MOTIF-on:
@${REINPLACE_CMD} -e 's:XCOMM #define MOTIF:#define MOTIF:g' ${WRKSRC}/Imakefile
.endif
.if ${PORT_OPTIONS:MXPM}
post-patch-XPM-on:
@${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

View File

@ -3,4 +3,4 @@ can also be used to broadcast messages to users logged in across a
network. xmotd periodically checks whether a file has been modified
and pops up and displays the contents of the file, if it has.
WWW: http://www.ee.ryerson.ca/~elf/xmotd/
WWW: https://www.ee.ryerson.ca/~elf/xmotd/