mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
3e4ed01146
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG - Remove X11BASE support in favor of LOCALBASE or PREFIX - Use USE_LDCONFIG instead of INSTALLS_SHLIB - Remove unneeded USE_GCC 3.4+ Thanks to all Helpers: Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr, ehaupt, nox, itetcu, flz, pav PR: 116263 Tested on: pointyhat Approved by: portmgr (pav)
66 lines
1.5 KiB
Makefile
66 lines
1.5 KiB
Makefile
# New ports collection makefile for: xmotd
|
|
# Date created: 29 January 2001
|
|
# Whom: Matthew West <mwest@uct.ac.za>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= xmotd
|
|
DISTVERSION= 1.17.3b
|
|
PORTREVISION= 1
|
|
CATEGORIES= x11
|
|
MASTER_SITES= http://www.ee.ryerson.ca/~elf/pub/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= A message-of-the-day browser for X11 and dumb-terminals
|
|
|
|
USE_IMAKE= yes
|
|
NO_INSTALL_MANPAGES= yes
|
|
XFREE86_HTML_MAN= no
|
|
|
|
MAN8= xmotd.8
|
|
PLIST_FILES= bin/xmotd
|
|
|
|
OPTIONS= HTML "Use HTML widget instead of ASCII text" off
|
|
OPTIONS+= MOTIF "Use Motif widget library" off
|
|
OPTIONS+= XPM "Allows colour XPM pixmaps" off
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITH_HTML)
|
|
MAKE_ARGS+= -DHAVE_HTML
|
|
.endif
|
|
|
|
.if defined(WITH_MOTIF)
|
|
MAKE_ARGS+= -DMOTIF
|
|
USE_MOTIF= yes
|
|
.endif
|
|
|
|
.if defined(WITH_XPM)
|
|
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 defined(WITH_HTML)
|
|
@${REINPLACE_CMD} -e 's:XCOMM #define HAVE_HTML:#define HAVE_HTML:g' ${WRKSRC}/Imakefile
|
|
.endif
|
|
.if defined (WITH_MOTIF)
|
|
@${REINPLACE_CMD} -e 's:XCOMM #define MOTIF:#define MOTIF:g' ${WRKSRC}/Imakefile
|
|
.endif
|
|
.if defined(WITH_XPM)
|
|
@${REINPLACE_CMD} -e 's:XCOMM #define HAVE_XPM:#define HAVE_XPM:g' ${WRKSRC}/Imakefile
|
|
.endif
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/xmotd ${LOCALBASE}/bin/xmotd
|
|
${INSTALL_MAN} ${WRKSRC}/xmotd.8 ${MANPREFIX}/man/man8
|
|
|
|
.include <bsd.port.post.mk>
|