freebsd-ports/astro/xephem/Makefile

75 lines
2.1 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: xephem
# Date created: Thu Aug 1 09:10:22 CDT 1996
# Whom: erich@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= xephem
PORTVERSION= 3.7.4
PORTREVISION= 3
CATEGORIES= astro
MASTER_SITES= # http://www.clearskyinstitute.com/xephem/
MAINTAINER= jpaetzel@FreeBSD.org
2003-02-20 18:07:10 +01:00
COMMENT= An interactive astronomical ephemeris program
LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png \
2010-02-05 12:46:55 +01:00
jpeg.11:${PORTSDIR}/graphics/jpeg
USE_MOTIF= yes
USE_GMAKE= yes
MAKE_JOBS_UNSAFE= yes
1998-04-29 13:12:12 +02:00
WRKSRC= ${WRKDIR}/${DISTNAME}/GUI/xephem
MAN1= xephem.1
1998-04-29 13:12:12 +02:00
RESTRICTED= Personal use only
# XXX needs to be the same as DISTFILES
XEPHEMSRC= ${PORTNAME}-${PORTVERSION}.tar.gz
.include <bsd.port.pre.mk>
.for file in ${XEPHEMSRC}
.if !exists(${DISTDIR}/${file}) && !defined(PACKAGE_BUILDING)#{
DISTFILE_INSTRUCTIONS=\n\
Because of licensing restrictions, you must manually fetch \n\ ${file} from http://www.clearskyinstitute.com/xephem/, \n\ place it in ${DISTDIR} and then run make again.\n\n
.endif
.endfor
pre-fetch:
.if defined(DISTFILE_INSTRUCTIONS)
@${PRINTF} "${DISTFILE_INSTRUCTIONS}"
@exit 1
.endif
post-patch:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
-e 's|/usr/X11R6|${X11BASE}|g' \
${WRKSRC}/Makefile
@${FIND} ${WRKSRC}/../.. -name Makefile -type f | \
${XARGS} ${REINPLACE_CMD} -e 's|CC =|CC?=|g ; \
s|CFLAGS=|CFLAGS+=|g ; \
s|-O2 ||g'
1998-04-29 13:12:12 +02:00
pre-build:
@${ECHO_CMD} 'XEphem.ShareDir: ${PREFIX}/lib/X11/xephem' > ${WRKSRC}/XEphem.ad
pre-install:
@${FIND} ${WRKSRC}/../.. -name Makefile.bak -type f | ${XARGS} ${RM} -f
@${CP} ${WRKSRC}/xephem.man ${WRKSRC}/xephem.1
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/xephem ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/xephem.1 ${MANPREFIX}/man/man1
${INSTALL_DATA} ${WRKSRC}/XEphem.ad ${PREFIX}/lib/X11/app-defaults/XEphem
@${MKDIR} ${PREFIX}/lib/X11/xephem
${TAR} -C ${WRKSRC} -cf - auxil catalogs fifos fits gallery help lo tools \
| ${TAR} -C ${PREFIX}/lib/X11/xephem --unlink -xf -
@${FIND} ${PREFIX}/lib/X11/xephem | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGROUP}
@${FIND} ${PREFIX}/lib/X11/xephem -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
.include <bsd.port.post.mk>