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
|
2000-12-09 00:15:01 +01:00
|
|
|
MASTER_SITES= http://www.clearskyinstitute.com/xephem/ \
|
2000-05-30 01:46:11 +02:00
|
|
|
ftp://iraf.noao.edu/contrib/xephem/ \
|
1998-04-29 13:12:12 +02:00
|
|
|
ftp://wolf.ifj.edu.pl/mirror/xephem/
|
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
|
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
|
|
|
|
2001-12-30 18:18:07 +01:00
|
|
|
post-patch:
|
|
|
|
@${PERL} -pi -e 's|CC =|CC?=|g ; \
|
|
|
|
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
|
|
|
|
1996-08-16 19:04:26 +02:00
|
|
|
.include <bsd.port.mk>
|