aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/mbmon/Makefile
blob: d25feca2a6027f978cf16a23db31117c404f58c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Ports collection makefile for:    xmbmon
# Date created:             2001/08/30
# Whom:                 kaz@kobe1995.net (NAKAMURA Kauzushi)
#
# $FreeBSD$
#

PORTNAME=   xmbmon
PORTVERSION=    205
PORTREVISION=   1
CATEGORIES= sysutils
MASTER_SITES=   http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/xmbmon/
.if defined(WITHOUT_X11)
PKGNAMESUFFIX=  -nox11
.endif
DISTNAME=   ${PORTNAME}${PORTVERSION}

MAINTAINER= kaz@kobe1995.net
COMMENT=    X/tty motherboard monitor for LM78/79, W8378x, AS99127F, VT82C686 and ADM9240

USE_REINPLACE=  yes
GNU_CONFIGURE=  yes
.if defined(WITHOUT_X11)
PLIST_SUB=  X11_ONLY="@comment "
.else
USE_XLIB=   yes
PLIST_SUB=  X11_ONLY=""
.endif

MAKE_ARGS+= DOCSDIR='${DOCSDIR}' INSTALL_DATA='${INSTALL_DATA}' PREFIX='${PREFIX}'

MAN1=       xmbmon.1x mbmon.1

.include <bsd.port.pre.mk>

.if ${ARCH} != "i386" && ${ARCH} != "amd64"
BROKEN=     "Does not compile on !i386 and !amd64"
.endif

pre-everything::
    @${ECHO_CMD} ""
    @${ECHO_CMD} "Definable build options"
    @${ECHO_CMD} "-----------------------"
    @${ECHO_CMD} "WITHOUT_X11   - Self explanatory"
    @${ECHO_CMD} ""

post-patch:
    @${REINPLACE_CMD} -e 's+/usr/share/doc/mbmon+${DOCSDIR}+' ${WRKSRC}/mbmon.1

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    (cd ${WRKSRC}; ${MAKE} ${MAKE_ARGS} install-man install-doc)
.endif

.include <bsd.port.post.mk>