1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/astro/aa/Makefile
2014-03-07 15:48:59 +00:00

43 lines
1.0 KiB
Makefile

# Created by: Frank W. Josellis <frank@dynamical-systems.org>
# $FreeBSD$
PORTNAME= aa
PORTVERSION= 56
PORTREVISION= 2
CATEGORIES= astro
MASTER_SITES= http://moshier.net/
MAINTAINER= frank@dynamical-systems.org
COMMENT= Self-contained ephemeris calculator
MAKEFILE= makefile
USES= dos2unix zip
ALL_TARGET= aa
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -Wall"
NO_WRKSUBDIR= yes
SUB_FILES= pkg-message
PORTDOCS= read.me readme.404
PORTDATA= messier.cat orbit.cat star.cat
PLIST_FILES= bin/aa etc/aa.ini.default
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} \
's|%%PREFIX%%|${PREFIX}|g ; s|%%DATADIR%%|${DATADIR}|g' \
${WRKSRC}/kfiles.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/aa ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/aa.ini ${STAGEDIR}${PREFIX}/etc/aa.ini.default
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${PORTDATA:S|^|${WRKSRC}/|} ${STAGEDIR}${DATADIR}
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>