freebsd-ports/astro/sscalc/Makefile
2012-12-31 14:17:15 +00:00

32 lines
755 B
Makefile

# Created by: Keith Walker <kew@icehouse.net>
# $FreeBSD$
PORTNAME= sscalc
PORTVERSION= 1.0
CATEGORIES= astro
MASTER_SITES= http://www.icehouse.net/kew/
MAINTAINER= ports@FreeBSD.org
COMMENT= A sunrise/sunset time calculator
MAN1= sscalc.1
.include <bsd.port.options.mk>
pre-fetch:
.if !defined(LAT)
@${ECHO_MSG} "Type \"make LAT=<nnn.nn> LON=<nnn.nn>\" to hardwire your site"
.else
@${ECHO_MSG} "Compiling in lat/longs"
.endif
do-install:
${INSTALL_PROGRAM} ${WRKDIR}/${DISTNAME}/sscalc ${PREFIX}/bin
${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/sscalc.1 ${MAN1PREFIX}/man/man1
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/cities.txt ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
.include <bsd.port.mk>