mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
- Fix build with WITHOUT_X11=true [1]
- Support NOPORTDOCS - Fix portlint warnings PR: ports/163093 [1] Submitted by: Christian Gusenbauer <c47g@gmx.at> [1]
This commit is contained in:
parent
38a11578a2
commit
1b93ba31b0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=287668
@ -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"
|
||||
|
@ -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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user