1996-08-16 19:04:26 +02:00
|
|
|
# New ports collection makefile for: xephem
|
|
|
|
# Date created: Thu Aug 1 09:10:22 CDT 1996
|
|
|
|
# Whom: erich@FreeBSD.org
|
|
|
|
#
|
1999-08-25 06:22:48 +02:00
|
|
|
# $FreeBSD$
|
1996-08-16 19:04:26 +02:00
|
|
|
#
|
|
|
|
|
2000-04-09 00:04:57 +02:00
|
|
|
PORTNAME= xephem
|
2002-01-15 13:25:47 +01:00
|
|
|
PORTVERSION= 3.5.2
|
1996-10-31 11:45:45 +01:00
|
|
|
CATEGORIES= astro
|
2002-08-10 07:39:39 +02:00
|
|
|
MASTER_SITES= # http://www.clearskyinstitute.com/xephem/
|
|
|
|
DISTFILES= ${PORTNAME}-${PORTVERSION}.tar.gz
|
1996-08-16 19:04:26 +02:00
|
|
|
|
2000-04-24 00:59:51 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
1996-08-16 19:04:26 +02:00
|
|
|
|
2000-10-28 16:55:37 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/GUI/xephem
|
|
|
|
|
2000-11-08 00:28:20 +01:00
|
|
|
USE_MOTIF= yes
|
1996-08-16 19:04:26 +02:00
|
|
|
USE_IMAKE= yes
|
2002-07-08 12:16:37 +02:00
|
|
|
USE_REINPLACE= yes
|
2000-10-28 16:55:37 +02:00
|
|
|
MAN1= xephem.1
|
1998-04-29 13:12:12 +02:00
|
|
|
|
2001-10-25 13:30:51 +02:00
|
|
|
LIBASTROSRC= ${WRKDIR}/${DISTNAME}/libastro
|
|
|
|
LIBIPSRC= ${WRKDIR}/${DISTNAME}/libip
|
1998-04-29 13:12:12 +02:00
|
|
|
|
2002-08-10 07:39:39 +02:00
|
|
|
NO_CDROM= Personal use only
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.for file in ${DISTFILES}
|
|
|
|
.if !exists(${DISTDIR}/${file})
|
|
|
|
IGNORE=You must manually fetch ${file} from http://www.clearskyinstitute.com/xephem/, place it in ${DISTDIR} and then run make again.
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
|
2001-12-30 18:18:07 +01:00
|
|
|
post-patch:
|
2002-08-10 07:39:39 +02:00
|
|
|
@${CHMOD} u+w ${LIBASTROSRC}/Makefile ${LIBIPSRC}/Makefile
|
2002-07-08 12:16:37 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|CC =|CC?=|g ; \
|
2001-12-30 18:18:07 +01:00
|
|
|
s|CFLAGS=|CFLAGS+=|g ; \
|
|
|
|
s|-O2 ||g' ${LIBASTROSRC}/Makefile ${LIBIPSRC}/Makefile
|
|
|
|
|
1998-04-29 13:12:12 +02:00
|
|
|
pre-build:
|
2001-10-25 13:30:51 +02:00
|
|
|
@cd ${LIBASTROSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE}
|
|
|
|
@cd ${LIBIPSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE}
|
2002-01-29 10:33:26 +01:00
|
|
|
@${ECHO_CMD} 'XEphem.ShareDir: ${PREFIX}/lib/X11/xephem' > ${WRKSRC}/XEphem.ad
|
1996-08-16 19:04:26 +02:00
|
|
|
|
2000-10-28 16:55:37 +02:00
|
|
|
post-install:
|
2000-12-09 00:15:01 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/XEphem.ad ${PREFIX}/lib/X11/app-defaults/XEphem
|
|
|
|
@${MKDIR} ${PREFIX}/lib/X11/xephem
|
|
|
|
${TAR} -C ${WRKSRC} -cf - auxil catalogs fits fifos tools \
|
|
|
|
| ${TAR} -C ${PREFIX}/lib/X11/xephem --unlink -xf -
|
2002-01-29 10:33:26 +01:00
|
|
|
@${FIND} ${PREFIX}/lib/X11/xephem | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREMODE}
|
|
|
|
@${FIND} ${PREFIX}/lib/X11/xephem -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
|
1999-04-06 03:11:20 +02:00
|
|
|
|
2002-08-10 07:39:39 +02:00
|
|
|
.include <bsd.port.post.mk>
|