View | Details | Raw Unified | Return to bug 121238
Collapse All | Expand All

(-)aa/Makefile (-1 / +9 lines)
Lines 7-12 Link Here
7
7
8
PORTNAME=	aa
8
PORTNAME=	aa
9
PORTVERSION=	56
9
PORTVERSION=	56
10
PORTREVISION=	1
10
CATEGORIES=	astro
11
CATEGORIES=	astro
11
MASTER_SITES=	http://moshier.net/ \
12
MASTER_SITES=	http://moshier.net/ \
12
		http://www.mirrorservice.org/sites/www.moshier.net/
13
		http://www.mirrorservice.org/sites/www.moshier.net/
Lines 24-38 Link Here
24
SUB_FILES=	pkg-message
25
SUB_FILES=	pkg-message
25
26
26
PORTDOCS=	read.me readme.404 Readme.FreeBSD
27
PORTDOCS=	read.me readme.404 Readme.FreeBSD
28
PORTDATA=	messier.cat orbit.cat star.cat
27
PLIST_FILES=	bin/aa etc/aa.ini.default
29
PLIST_FILES=	bin/aa etc/aa.ini.default
28
30
29
post-patch:
31
post-patch:
30
	@${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/kfiles.c
32
	@${REINPLACE_CMD} \
33
		's|%%PREFIX%%|${PREFIX}|g ; s|%%DATADIR%%|${DATADIR}|g' \
34
		${WRKSRC}/kfiles.c
31
	@${REINPLACE_CMD} 's|CFLAGS=  -O2|CFLAGS+=|' ${WRKSRC}/makefile
35
	@${REINPLACE_CMD} 's|CFLAGS=  -O2|CFLAGS+=|' ${WRKSRC}/makefile
32
36
33
do-install:
37
do-install:
34
	@${INSTALL_PROGRAM} ${WRKSRC}/aa ${PREFIX}/bin
38
	@${INSTALL_PROGRAM} ${WRKSRC}/aa ${PREFIX}/bin
35
	@${INSTALL_DATA} ${WRKSRC}/aa.ini ${PREFIX}/etc/aa.ini.default
39
	@${INSTALL_DATA} ${WRKSRC}/aa.ini ${PREFIX}/etc/aa.ini.default
40
	@${MKDIR} ${DATADIR}
41
.for i in ${PORTDATA}
42
	@${INSTALL_DATA} ${WRKSRC}/${i} ${DATADIR}
43
.endfor
36
44
37
post-install:
45
post-install:
38
.if !defined(NOPORTDOCS)
46
.if !defined(NOPORTDOCS)
(-)aa/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (aa-56.zip) = 74dfb091d8a749e6583bfc2880aecd10
1
MD5 (aa-56.zip) = 39c5e66a0650b17e405266fd3ed603ca
2
SHA256 (aa-56.zip) = c7b1a3d2bcf46b7e649fbe7858725f80be153668cbb8ce51d9f39ee4567c262b
2
SHA256 (aa-56.zip) = 6ecd9d84ab5022b8952d7f1a88d1f7e9f05109b1d5c27abe2866f2494ff3f861
3
SIZE (aa-56.zip) = 415059
3
SIZE (aa-56.zip) = 415444
(-)aa/files/patch-gplan.c (+54 lines)
Line 0 Link Here
1
--- gplan.c.orig	2003-11-27 02:37:42.000000000 +0100
2
+++ gplan.c	2008-02-29 19:00:02.000000000 +0100
3
@@ -83,12 +83,8 @@
4
   /* VAX CC rejects "signed char."  */
5
   char *p;
6
 #else
7
-#ifdef __STDC__
8
-  signed char *p;
9
-#else
10
   char *p;
11
 #endif
12
-#endif
13
   double *pl, *pb, *pr;
14
 #endif
15
 
16
@@ -441,12 +437,8 @@
17
   /* VAX CC rejects "signed char."  */
18
   char *p;
19
 #else
20
-#ifdef __STDC__
21
-  signed char *p;
22
-#else
23
   char *p;
24
 #endif
25
-#endif
26
   long *pl, *pb, *pr;
27
 #endif
28
   double su, cu, sv, cv;
29
@@ -613,12 +605,8 @@
30
   /* VAX CC rejects "signed char."  */
31
   char *p;
32
 #else
33
-#ifdef __STDC__
34
-  signed char *p;
35
-#else
36
   char *p;
37
 #endif
38
-#endif
39
   long *pl, *pr;
40
 #endif
41
   double su, cu, sv, cv;
42
@@ -764,12 +752,8 @@
43
   /* VAX CC rejects "signed char."  */
44
   char *p;
45
 #else
46
-#ifdef __STDC__
47
-  signed char *p;
48
-#else
49
   char *p;
50
 #endif
51
-#endif
52
   long *pl;
53
 #endif
54
   double su, cu, sv, cv;
(-)aa/files/patch-kfiles.c (-3 / +18 lines)
Lines 1-16 Link Here
1
--- kfiles.c.orig	Sat Aug  9 17:01:51 2003
1
--- kfiles.c.orig	Sat Aug  9 17:01:51 2003
2
+++ kfiles.c	Fri Aug 11 18:51:05 2006
2
+++ kfiles.c	Fri Feb 29 16:51:58 2008
3
@@ -3,9 +3,7 @@
3
@@ -3,9 +3,8 @@
4
  * or file containing orbital elements.
4
  * or file containing orbital elements.
5
  */
5
  */
6
 
6
 
7
-#if __BORLANDC__
7
-#if __BORLANDC__
8
 #include <stdlib.h>
8
 #include <stdlib.h>
9
-#endif
9
-#endif
10
+#include <stdio.h>
10
 
11
 
11
 #include "kep.h"
12
 #include "kep.h"
12
 
13
 
13
@@ -67,13 +65,33 @@
14
@@ -26,8 +25,8 @@
15
 
16
 extern char *intfmt, *strfmt;/* see dms.c */
17
 
18
-static char starnam[80] = {'s','t','a','r','.','c','a','t','\0'};
19
-static char orbnam[80] = {'o','r','b','i','t','.','c','a','t','\0'};
20
+static char starnam[80];
21
+static char orbnam[80];
22
 static int linenum = 1;
23
 
24
 /* Read initialization file aa.ini
25
@@ -67,13 +66,36 @@
14
 int kinit()
26
 int kinit()
15
 {
27
 {
16
 double a, b, fl, co, si, u;
28
 double a, b, fl, co, si, u;
Lines 23-28 Link Here
23
 printf( "Planetary and lunar positions approximate DE404.\n" );
35
 printf( "Planetary and lunar positions approximate DE404.\n" );
24
 
36
 
25
-f = fopen( "aa.ini", "r" );
37
-f = fopen( "aa.ini", "r" );
38
+ snprintf(starnam, 80, "%%DATADIR%%/star.cat");
39
+ snprintf(orbnam, 80, "%%DATADIR%%/orbit.cat"); 
40
+
26
+/* User inifile */
41
+/* User inifile */
27
+ if(home){
42
+ if(home){
28
+   inifile = strdup(home);
43
+   inifile = strdup(home);
(-)aa/pkg-descr (-1 / +1 lines)
Lines 5-10 Link Here
5
catalogues of stars and orbital elements. Displays all adjustments as it finds
5
catalogues of stars and orbital elements. Displays all adjustments as it finds
6
local azimuth and elevation, rise and set times, etc.
6
local azimuth and elevation, rise and set times, etc.
7
7
8
Latest update 2005-11-09.
8
Latest update 2006-09-02.
9
9
10
WWW: http://moshier.net/aadoc.html
10
WWW: http://moshier.net/aadoc.html

Return to bug 121238