2001-08-28 09:13:10 +02:00
|
|
|
# New ports collection makefile for: xmotd
|
|
|
|
# Date created: 29 January 2001
|
|
|
|
# Whom: Matthew West <mwest@uct.ac.za>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= xmotd
|
2006-05-09 09:45:51 +02:00
|
|
|
DISTVERSION= 1.17.3b
|
2009-06-09 17:33:28 +02:00
|
|
|
PORTREVISION= 2
|
2001-08-28 09:13:10 +02:00
|
|
|
CATEGORIES= x11
|
|
|
|
MASTER_SITES= http://www.ee.ryerson.ca/~elf/pub/
|
|
|
|
|
2004-02-22 03:09:15 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-21 15:08:24 +01:00
|
|
|
COMMENT= A message-of-the-day browser for X11 and dumb-terminals
|
2001-08-28 09:13:10 +02:00
|
|
|
|
|
|
|
USE_IMAKE= yes
|
2009-06-09 17:33:28 +02:00
|
|
|
USE_XORG= ice sm x11 xaw xext xmu xt
|
2001-08-28 09:13:10 +02:00
|
|
|
NO_INSTALL_MANPAGES= yes
|
|
|
|
XFREE86_HTML_MAN= no
|
|
|
|
|
|
|
|
MAN8= xmotd.8
|
2004-02-06 14:12:53 +01:00
|
|
|
PLIST_FILES= bin/xmotd
|
2001-08-28 09:13:10 +02:00
|
|
|
|
2006-04-10 09:46:21 +02:00
|
|
|
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)
|
2001-08-28 09:13:10 +02:00
|
|
|
MAKE_ARGS+= -DHAVE_HTML
|
2009-06-09 17:33:28 +02:00
|
|
|
BROKEN= Does not compile when WITH_HTML is set
|
2001-08-28 09:13:10 +02:00
|
|
|
.endif
|
|
|
|
|
2006-04-10 09:46:21 +02:00
|
|
|
.if defined(WITH_MOTIF)
|
2001-08-28 09:13:10 +02:00
|
|
|
MAKE_ARGS+= -DMOTIF
|
2006-04-10 09:46:21 +02:00
|
|
|
USE_MOTIF= yes
|
2001-08-28 09:13:10 +02:00
|
|
|
.endif
|
|
|
|
|
2006-04-10 09:46:21 +02:00
|
|
|
.if defined(WITH_XPM)
|
2009-06-09 17:33:28 +02:00
|
|
|
USE_XORG+= xpm
|
2006-04-10 09:46:21 +02:00
|
|
|
.endif
|
2001-08-28 09:13:10 +02:00
|
|
|
|
|
|
|
post-extract:
|
|
|
|
@${TOUCH} ${WRKSRC}/xmotd.man
|
|
|
|
|
|
|
|
post-patch:
|
2006-04-10 09:46:21 +02:00
|
|
|
@${REINPLACE_CMD} -e 's:/usr/local/bin/::g' ${WRKSRC}/xmotd.8
|
2001-08-28 09:13:10 +02:00
|
|
|
.for file in libhtmlw/HTML-PSformat.c main.c textmode.c xmotd.c
|
2006-04-10 09:46:21 +02:00
|
|
|
@${REINPLACE_CMD} -e 's:malloc.h:stdlib.h:' ${WRKSRC}/${file}
|
2001-08-28 09:13:10 +02:00
|
|
|
.endfor
|
2006-04-10 09:46:21 +02:00
|
|
|
.if defined(WITH_HTML)
|
|
|
|
@${REINPLACE_CMD} -e 's:XCOMM #define HAVE_HTML:#define HAVE_HTML:g' ${WRKSRC}/Imakefile
|
2001-08-28 09:13:10 +02:00
|
|
|
.endif
|
2006-04-10 09:46:21 +02:00
|
|
|
.if defined (WITH_MOTIF)
|
|
|
|
@${REINPLACE_CMD} -e 's:XCOMM #define MOTIF:#define MOTIF:g' ${WRKSRC}/Imakefile
|
2001-08-28 09:13:10 +02:00
|
|
|
.endif
|
2006-04-10 09:46:21 +02:00
|
|
|
.if defined(WITH_XPM)
|
|
|
|
@${REINPLACE_CMD} -e 's:XCOMM #define HAVE_XPM:#define HAVE_XPM:g' ${WRKSRC}/Imakefile
|
2001-08-28 09:13:10 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- 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)
2008-04-19 19:56:05 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/xmotd ${LOCALBASE}/bin/xmotd
|
2001-08-28 09:13:10 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/xmotd.8 ${MANPREFIX}/man/man8
|
|
|
|
|
2006-04-10 09:46:21 +02:00
|
|
|
.include <bsd.port.post.mk>
|