blob: 127439f86ec6d8bc5bc02fdbf6f3199421e0681f (
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
57
|
# New ports collection makefile for: aa
# Date created: 11 August 2006
# Whom: Frank W. Josellis <frank@dynamical-systems.org>
#
# $FreeBSD$
#
PORTNAME= aa
PORTVERSION= 56
PORTREVISION= 1
CATEGORIES= astro
MASTER_SITES= http://moshier.net/ \
http://www.mirrorservice.org/sites/www.moshier.net/
MAINTAINER= frank@dynamical-systems.org
COMMENT= Self-contained ephemeris calculator
EXTRACT_AFTER_ARGS= -d ${WRKSRC}
EXTRACT_BEFORE_ARGS= -aqo
USE_ZIP= yes
MAKEFILE= makefile
ALL_TARGET= aa
SUB_FILES= pkg-message
PORTDOCS= read.me readme.404 Readme.FreeBSD
PORTDATA= messier.cat orbit.cat star.cat
PLIST_FILES= bin/aa etc/aa.ini.default
post-patch:
@${REINPLACE_CMD} \
's|%%PREFIX%%|${PREFIX}|g ; s|%%DATADIR%%|${DATADIR}|g' \
${WRKSRC}/kfiles.c
@${REINPLACE_CMD} 's|CFLAGS= -O2|CFLAGS+=|' ${WRKSRC}/makefile
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/aa ${PREFIX}/bin
@${INSTALL_DATA} ${WRKSRC}/aa.ini ${PREFIX}/etc/aa.ini.default
.if !defined(NOPORTDATA)
@${MKDIR} ${DATADIR}
.for i in ${PORTDATA}
@${INSTALL_DATA} ${WRKSRC}/${i} ${DATADIR}
.endfor
.endif
post-install:
.if !defined(NOPORTDOCS)
@${CAT} ${PKGMESSAGE} > ${WRKSRC}/Readme.FreeBSD
@${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
@${INSTALL_MAN} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|