openbsd-ports/misc/astrolog/Makefile
ajacoutot 1ed7513bb2 - update to astrolog-5.40
from Benoit Lecocq with some tweaks
2009-01-15 15:32:24 +00:00

59 lines
1.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.24 2009/01/15 15:32:24 ajacoutot Exp $
COMMENT= astrology program for X11 and alpha-numeric terminals
V= 5.40
DISTNAME= ast54unx
PKGNAME= astrolog-${V}
CATEGORIES= misc
HOMEPAGE= http://www.astrolog.org/astrolog.htm
MASTER_SITES= http://www.astrolog.org/ftp/ephem/ \
http://www.astrolog.org/ftp/ \
ftp://ftp.kiarchive.ru/pub/unix/magick/astrology/astrolog/
EXTRACT_ONLY= ${DISTNAME}.shr
EPHEM= LRZ5_24 CHI_24 CPJV_24
DISTFILES= ${EXTRACT_ONLY} ${EPHEM}
PERMIT_PACKAGE_CDROM= No
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= No
PERMIT_DISTFILES_FTP= Yes
WANTLIB= X11 c m
EXTRACT_CASES= *.shr) ${_PERL_FIX_SHAR} ${FULLDISTDIR}/$$archive | /bin/sh;;
USE_X11= Yes
DIST_SUBDIR= astrolog
ALL_TARGET= astrolog
WRKDIST= ${WRKDIR}
NO_REGRESS= Yes
_V= ${V:S/.//}
SUBST_VARS= _V
do-install:
-@${INSTALL_DATA_DIR} ${PREFIX}/lib/astrolog
cd ${FULLDISTDIR} && \
${INSTALL_DATA} ${EPHEM} ${PREFIX}/lib/astrolog
cd ${WRKSRC} && \
if [ -f ${PREFIX}/lib/astrolog/astrolog.dat ] ; then \
${INSTALL_DATA} astrolog.dat ${PREFIX}/lib/astrolog/astrolog.dat-dist; \
else \
${INSTALL_DATA} astrolog.dat ${PREFIX}/lib/astrolog; \
fi
cd ${WRKSRC} && ${INSTALL_PROGRAM} astrolog ${PREFIX}/bin
-@${INSTALL_DATA_DIR} ${PREFIX}/share/doc/astrolog
cd ${WRKSRC} && \
${INSTALL_DATA} Helpfile.${_V} ${PREFIX}/share/doc/astrolog
cd ${WRKSRC} && \
${INSTALL_DATA} Update.${_V} ${PREFIX}/share/doc/astrolog
cd ${WRKSRC} && \
${INSTALL_DATA} README.${_V} ${PREFIX}/share/doc/astrolog
.include <bsd.port.mk>