summaryrefslogtreecommitdiff
path: root/astro/xmoontool/Makefile
blob: 9e0212ac0f8cbca691338580fa1a68ec0932f274 (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
# Created by: Frank W. Josellis <frank@dynamical-systems.org>
# $FreeBSD$

PORTNAME=	xmoontool
PORTVERSION=	3.0.3
PORTREVISION=	8
CATEGORIES=	astro
MASTER_SITES=	http://www.senax.net/xmoontool/

MAINTAINER=	frank@dynamical-systems.org
COMMENT=	A version of John Walker's classical moontool for X11/Motif

NO_STAGE=	yes
USES=		motif

MAN1=		xmoontool.1
PORTDOCS=	NOTES
PLIST_FILES=	bin/xmoontool

.if defined(WITHOUT_LIBNOVA)
MAKE_ENV+=	WITHOUT_LIBNOVA=yes
.else
LIB_DEPENDS+=	libnova.so:${PORTSDIR}/astro/libnova
.endif

.include <bsd.port.options.mk>

pre-everything::
.if !defined(WITHOUT_LIBNOVA)
	@${ECHO_MSG} "You can disable libnova support by defining WITHOUT_LIBNOVA"
.endif

pre-configure:
.if !defined(WITHOUT_DEFAULT_COLOR)
	@${ECHO_MSG} "For use with monochrome displays try to set WITHOUT_DEFAULT_COLOR"
.endif

do-configure:
.if defined(WITHOUT_DEFAULT_COLOR)
	@${REINPLACE_CMD} -e 's|-DDEFAULT_COLOR||g' ${WRKSRC}/Makefile
.endif

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/xmoontool ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/xmoontool.1 ${PREFIX}/man/man1

post-install:
.if ${PORT_OPTIONS:MDOCS}
	${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
	${INSTALL_MAN} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>