aboutsummaryrefslogtreecommitdiffstats
path: root/misc/astrolog
diff options
context:
space:
mode:
Diffstat (limited to 'misc/astrolog')
-rw-r--r--misc/astrolog/Makefile20
-rw-r--r--misc/astrolog/files/patch-ab26
-rw-r--r--misc/astrolog/pkg-plist8
3 files changed, 37 insertions, 17 deletions
diff --git a/misc/astrolog/Makefile b/misc/astrolog/Makefile
index 52d28de2d0d1..22f57c239bd0 100644
--- a/misc/astrolog/Makefile
+++ b/misc/astrolog/Makefile
@@ -14,13 +14,14 @@ PORTREVISION= 11
CATEGORIES= misc
MASTER_SITES= http://www.astrolog.org/ftp/ephem/:ephem \
http://www.astrolog.org/ftp/:dist
-EXTRACT_ONLY= ast54unx.shr
-EPHEM= ephemall.zip
DISTFILES= ${EXTRACT_ONLY}:dist ${EPHEM}:ephem
+EXTRACT_ONLY= ast54unx.shr
MAINTAINER= ports@FreeBSD.org
COMMENT= An astrology program for X11 and alpha-numeric terminals
+EPHEM= ephemall.zip
+
USE_ZIP= yes
USE_DOS2UNIX= ephem/EPHINDEX.TXT
.if !defined(WITHOUT_X11)
@@ -34,6 +35,8 @@ DIST_SUBDIR= astrolog
ALL_TARGET= astrolog
NO_WRKSUBDIR= yes
+DOCS= Helpfile.540 Update.540 README.540
+
post-extract:
-@${MKDIR} ${WRKDIR}/ephem
${UNZIP_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/${EPHEM} -d ${WRKDIR}/ephem
@@ -52,13 +55,12 @@ do-install:
${INSTALL_DATA} astrolog.dat ${PREFIX}/lib/astrolog; \
fi
cd ${WRKSRC} && ${INSTALL_PROGRAM} astrolog ${PREFIX}/bin
- -@${MKDIR} ${PREFIX}/share/doc/astrolog
- cd ${WRKSRC} && \
- ${INSTALL_DATA} Helpfile.540 ${PREFIX}/share/doc/astrolog
- cd ${WRKSRC} && \
- ${INSTALL_DATA} Update.540 ${PREFIX}/share/doc/astrolog
- cd ${WRKSRC} && \
- ${INSTALL_DATA} README.540 ${PREFIX}/share/doc/astrolog
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for doc in ${DOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
+.endfor
+.endif
@${ECHO_MSG}
@${ECHO_MSG} "See the file ${PREFIX}/share/doc/astrolog/Helpfile.540 for help"
@${ECHO_MSG} "and tune ${PREFIX}/lib/astrolog/astrolog.dat"
diff --git a/misc/astrolog/files/patch-ab b/misc/astrolog/files/patch-ab
index 5d2c79c73c1a..d9cf300d1f0b 100644
--- a/misc/astrolog/files/patch-ab
+++ b/misc/astrolog/files/patch-ab
@@ -1,5 +1,5 @@
---- astrolog.h.orig Thu Jan 26 06:19:59 2006
-+++ astrolog.h Thu Jan 26 06:24:50 2006
+--- astrolog.h.orig 1998-12-23 23:29:05.000000000 +0000
++++ astrolog.h 2011-11-30 16:32:47.000000000 +0000
@@ -52,7 +52,7 @@
/*#define MAC /* Comment out this #define if you're not compiling for a Mac. */
@@ -40,7 +40,25 @@
#else
#define DEFAULT_DIR "C:\\ASTROLOG"
#endif
-@@ -1046,9 +1050,9 @@
+@@ -271,7 +275,7 @@
+ #endif
+ #include <math.h>
+ #ifdef PC
+-#include <malloc.h>
++#include <stdlib.h>
+ #endif
+ #ifdef TIME
+ #include <time.h>
+@@ -281,6 +285,8 @@
+ #define ISG
+ #include <X11/Xlib.h>
+ #include <X11/Xutil.h>
++#else
++#include <sys/types.h>
+ #endif
+ #ifdef WIN
+ #define ISG
+@@ -1046,9 +1052,9 @@
*/
#define byte unsigned char
@@ -52,4 +70,4 @@
+#define word4 int32_t
#define real double
#define _char unsigned char
- #define _int unsigned int
+ #define _int unsigned int \ No newline at end of file
diff --git a/misc/astrolog/pkg-plist b/misc/astrolog/pkg-plist
index 8b351b20ee41..b79a4c6bb444 100644
--- a/misc/astrolog/pkg-plist
+++ b/misc/astrolog/pkg-plist
@@ -98,8 +98,8 @@ lib/astrolog/LRZ5_M2
@unexec if [ -f %D/lib/astrolog/astrolog.dat ] && cmp -s %D/lib/astrolog/astrolog.dat %D/lib/astrolog/astrolog.dat-dist; then rm -f %D/lib/astrolog/astrolog.dat; fi
lib/astrolog/astrolog.dat-dist
@exec if [ ! -f %D/lib/astrolog/astrolog.dat ] ; then cp -p %D/%F %B/astrolog.dat; fi
-share/doc/astrolog/Helpfile.540
-share/doc/astrolog/README.540
-share/doc/astrolog/Update.540
+%%PORTDOCS%%%%DOCSDIR%%/Helpfile.540
+%%PORTDOCS%%%%DOCSDIR%%/README.540
+%%PORTDOCS%%%%DOCSDIR%%/Update.540
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrmtry lib/astrolog
-@dirrm share/doc/astrolog