mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
5102a3de12
- Fix build with clang - WITHOUT_X11 -> PORT_OPTIONS:MX11 - Use PORTDOCS instead of pkg-plist - Simplify docs install commands Approved by: culot / jpaetzel (mentors, implicit)
70 lines
2.0 KiB
Makefile
70 lines
2.0 KiB
Makefile
# Created by: faulkner@cactus.org
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= astrolog
|
|
PORTVERSION= 5.41g
|
|
PORTREVISION= 1
|
|
CATEGORIES= misc astro
|
|
MASTER_SITES= ftp://ftp.astro.com/pub/swisseph/ephe/archive_gzip/:ephe \
|
|
ftp://ftp.astro.com/pub/swisseph/:libswe \
|
|
http://astrolog.offline.ee/astrolog/changed/:dist
|
|
DISTFILES= a541gsrc.tar.gz:dist ${EPHE} \
|
|
swe_unix_src_1.78.00.tar.gz:libswe
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Astrology program for X11 and alpha-numeric terminals
|
|
|
|
# Swiss Ephemeris GPLv2 licensed, see
|
|
# http://www.astro.com/ftp/swisseph/LICENSE.TXT
|
|
LICENSE= GPLv2 # (or later)
|
|
|
|
EPHE= sweph_00.tar.gz:ephe sweph_06.tar.gz:ephe \
|
|
sweph_12.tar.gz:ephe sweph_18.tar.gz:ephe \
|
|
sweph_24.tar.gz:ephe sweph_30.tar.gz:ephe \
|
|
sweph_36.tar.gz:ephe sweph_42.tar.gz:ephe \
|
|
sweph_48.tar.gz:ephe swephm06.tar.gz:ephe \
|
|
swephm12.tar.gz:ephe swephm18.tar.gz:ephe \
|
|
swephm24.tar.gz:ephe swephm30.tar.gz:ephe \
|
|
swephm36.tar.gz:ephe swephm42.tar.gz:ephe \
|
|
swephm48.tar.gz:ephe swephm54.tar.gz:ephe
|
|
|
|
DIST_SUBDIR= astrolog
|
|
ALL_TARGET= astrolog
|
|
MAKEFILE= makefile
|
|
NO_WRKSUBDIR= yes
|
|
|
|
PORTDOCS= helpfile.540 readme.541 changes.txt
|
|
|
|
OPTIONS_DEFINE= X11
|
|
OPTIONS_DEFAULT=X11
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MX11}
|
|
USE_XORG= x11
|
|
MAKE_ARGS= -DX11
|
|
.endif
|
|
|
|
post-extract:
|
|
${RM} ${WRKDIR}/swe[a-z]*
|
|
|
|
do-install:
|
|
-@${MKDIR} ${PREFIX}/lib/astrolog
|
|
cd ${WRKDIR} && \
|
|
${INSTALL_DATA} fixstars.ast *.se1 ${PREFIX}/lib/astrolog
|
|
cd ${WRKSRC}; \
|
|
${INSTALL_DATA} astrolog.dat ${PREFIX}/lib/astrolog/astrolog.dat-dist; \
|
|
if [ ! -f ${PREFIX}/lib/astrolog/astrolog.dat ] ; then \
|
|
${INSTALL_DATA} astrolog.dat ${PREFIX}/lib/astrolog; \
|
|
fi
|
|
cd ${WRKSRC} && ${INSTALL_PROGRAM} astrolog ${PREFIX}/bin
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
|
|
.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"
|
|
|
|
.include <bsd.port.mk>
|