1996-08-16 17:04:26 +00:00
|
|
|
# New ports collection makefile for: xephem
|
|
|
|
# Date created: Thu Aug 1 09:10:22 CDT 1996
|
|
|
|
# Whom: erich@FreeBSD.org
|
|
|
|
#
|
1999-08-25 04:22:48 +00:00
|
|
|
# $FreeBSD$
|
1996-08-16 17:04:26 +00:00
|
|
|
#
|
|
|
|
|
2000-04-08 22:04:57 +00:00
|
|
|
PORTNAME= xephem
|
2004-10-11 22:18:57 +00:00
|
|
|
PORTVERSION= 3.6.1
|
1996-10-31 10:45:45 +00:00
|
|
|
CATEGORIES= astro
|
2002-08-10 05:39:39 +00:00
|
|
|
MASTER_SITES= # http://www.clearskyinstitute.com/xephem/
|
1996-08-16 17:04:26 +00:00
|
|
|
|
2000-04-23 22:59:51 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 17:07:10 +00:00
|
|
|
COMMENT= An interactive astronomical ephemeris program
|
1996-08-16 17:04:26 +00:00
|
|
|
|
2000-10-28 14:55:37 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/GUI/xephem
|
|
|
|
|
2000-11-07 23:28:20 +00:00
|
|
|
USE_MOTIF= yes
|
1996-08-16 17:04:26 +00:00
|
|
|
USE_IMAKE= yes
|
2002-07-08 10:16:37 +00:00
|
|
|
USE_REINPLACE= yes
|
2000-10-28 14:55:37 +00:00
|
|
|
MAN1= xephem.1
|
1998-04-29 11:12:12 +00:00
|
|
|
|
2001-10-25 11:30:51 +00:00
|
|
|
LIBASTROSRC= ${WRKDIR}/${DISTNAME}/libastro
|
|
|
|
LIBIPSRC= ${WRKDIR}/${DISTNAME}/libip
|
2004-06-25 11:34:46 +00:00
|
|
|
LIBJPEGDSRC= ${WRKDIR}/${DISTNAME}/libjpegd
|
|
|
|
LIBLILXMLSRC= ${WRKDIR}/${DISTNAME}/liblilxml
|
1998-04-29 11:12:12 +00:00
|
|
|
|
2002-08-10 05:39:39 +00:00
|
|
|
NO_CDROM= Personal use only
|
|
|
|
|
2004-07-23 11:48:12 +00:00
|
|
|
# XXX needs to be the same as DISTFILES
|
|
|
|
XEPHEMSRC= ${PORTNAME}-${PORTVERSION}.tar.gz
|
|
|
|
|
2002-08-10 05:39:39 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-07-23 11:48:12 +00:00
|
|
|
.for file in ${XEPHEMSRC}
|
2002-08-10 05:39:39 +00:00
|
|
|
.if !exists(${DISTDIR}/${file})
|
2004-07-23 11:48:12 +00:00
|
|
|
ECHO_MSG= /usr/bin/printf
|
|
|
|
IGNORE=:\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
|
2002-08-10 05:39:39 +00:00
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
|
2001-12-30 17:18:07 +00:00
|
|
|
post-patch:
|
2002-08-10 05:39:39 +00:00
|
|
|
@${CHMOD} u+w ${LIBASTROSRC}/Makefile ${LIBIPSRC}/Makefile
|
2002-07-08 10:16:37 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|CC =|CC?=|g ; \
|
2001-12-30 17:18:07 +00:00
|
|
|
s|CFLAGS=|CFLAGS+=|g ; \
|
|
|
|
s|-O2 ||g' ${LIBASTROSRC}/Makefile ${LIBIPSRC}/Makefile
|
|
|
|
|
1998-04-29 11:12:12 +00:00
|
|
|
pre-build:
|
2001-10-25 11:30:51 +00:00
|
|
|
@cd ${LIBASTROSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE}
|
|
|
|
@cd ${LIBIPSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE}
|
2004-06-25 11:34:46 +00:00
|
|
|
@cd ${LIBJPEGDSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE}
|
|
|
|
@cd ${LIBLILXMLSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE}
|
2002-01-29 09:33:26 +00:00
|
|
|
@${ECHO_CMD} 'XEphem.ShareDir: ${PREFIX}/lib/X11/xephem' > ${WRKSRC}/XEphem.ad
|
1996-08-16 17:04:26 +00:00
|
|
|
|
2000-10-28 14:55:37 +00:00
|
|
|
post-install:
|
2000-12-08 23:15:01 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/XEphem.ad ${PREFIX}/lib/X11/app-defaults/XEphem
|
|
|
|
@${MKDIR} ${PREFIX}/lib/X11/xephem
|
2004-06-25 11:34:46 +00:00
|
|
|
${TAR} -C ${WRKSRC} -cf - auxil catalogs fits fifos help tools \
|
2000-12-08 23:15:01 +00:00
|
|
|
| ${TAR} -C ${PREFIX}/lib/X11/xephem --unlink -xf -
|
2002-01-29 09:33:26 +00:00
|
|
|
@${FIND} ${PREFIX}/lib/X11/xephem | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREMODE}
|
|
|
|
@${FIND} ${PREFIX}/lib/X11/xephem -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
|
1999-04-06 01:11:20 +00:00
|
|
|
|
2002-08-10 05:39:39 +00:00
|
|
|
.include <bsd.port.post.mk>
|