2000-02-22 12:08:31 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.10 2000/02/22 17:08:35 espie Exp $
|
1997-12-02 23:06:51 -05:00
|
|
|
|
1999-03-16 22:56:37 -05:00
|
|
|
DISTNAME= xephem-3.2.2
|
1997-12-02 23:06:51 -05:00
|
|
|
CATEGORIES= astro
|
1999-03-13 00:50:33 -05:00
|
|
|
MASTER_SITES= ftp://iraf.noao.edu/contrib/xephem/xephem-3.2/
|
2000-02-22 12:08:31 -05:00
|
|
|
NEED_VERSION= 1.210
|
1997-12-02 23:06:51 -05:00
|
|
|
|
1999-09-23 17:58:00 -04:00
|
|
|
NO_CDROM= "NOFEE: Can not sell"
|
|
|
|
|
1997-12-02 23:06:51 -05:00
|
|
|
MAINTAINER= angelos@openbsd.org
|
|
|
|
|
1999-03-13 00:50:33 -05:00
|
|
|
USE_MOTIF= yes
|
1997-12-02 23:06:51 -05:00
|
|
|
USE_IMAKE= yes
|
|
|
|
|
1998-08-05 02:00:00 -04:00
|
|
|
do-configure:
|
|
|
|
@(cd ${WRKSRC}/libastro && ${SETENV} ${XMKMF})
|
|
|
|
@(cd ${WRKSRC}/GUI/xephem && ${SETENV} ${XMKMF})
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
@(cd ${WRKSRC}/libastro && \
|
2000-02-22 12:08:31 -05:00
|
|
|
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} -f ${MAKE_FILE} ${ALL_TARGET})
|
1998-08-05 02:00:00 -04:00
|
|
|
@(cd ${WRKSRC}/GUI/xephem && \
|
2000-02-22 12:08:31 -05:00
|
|
|
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} -f ${MAKE_FILE} ${ALL_TARGET})
|
1998-08-05 02:00:00 -04:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
@(cd ${WRKSRC}/GUI/xephem && \
|
|
|
|
${SETENV} ${MAKE_ENV} \
|
2000-02-22 12:08:31 -05:00
|
|
|
${MAKE} ${MAKE_FLAGS} -f ${MAKE_FILE} ${INSTALL_TARGET})
|
1998-08-05 02:00:00 -04:00
|
|
|
@(cd ${WRKSRC}/GUI/xephem && \
|
|
|
|
${SETENV} ${MAKE_ENV} \
|
2000-02-22 12:08:31 -05:00
|
|
|
${MAKE} ${MAKE_FLAGS} -f ${MAKE_FILE} install.man)
|
1998-08-05 02:00:00 -04:00
|
|
|
@(cd ${WRKSRC}/GUI/xephem && \
|
2000-02-10 20:09:59 -05:00
|
|
|
sed -e 's,: .$$,: ${PREFIX}/lib/X11/xephem,' XEphem.ad > XEphem && \
|
1998-08-05 02:00:00 -04:00
|
|
|
${INSTALL_DATA} XEphem ${PREFIX}/lib/X11/app-defaults)
|
2000-02-10 20:09:59 -05:00
|
|
|
@mkdir -p ${PREFIX}/lib/X11/xephem
|
|
|
|
@mkdir -p ${PREFIX}/lib/X11/xephem/auxil
|
1999-09-23 17:58:00 -04:00
|
|
|
@(cd ${WRKSRC}/GUI/xephem/auxil; \
|
1998-08-05 02:00:00 -04:00
|
|
|
for f in *; do \
|
|
|
|
${INSTALL_DATA} $$f ${PREFIX}/lib/X11/xephem/auxil; \
|
1999-09-23 17:58:00 -04:00
|
|
|
done)
|
2000-02-10 20:09:59 -05:00
|
|
|
@mkdir -p ${PREFIX}/lib/X11/xephem/catalogs
|
1999-09-23 17:58:00 -04:00
|
|
|
@(cd ${WRKSRC}/GUI/xephem/catalogs; \
|
1998-08-05 02:00:00 -04:00
|
|
|
for f in *; do \
|
|
|
|
${INSTALL_DATA} $$f ${PREFIX}/lib/X11/xephem/catalogs; \
|
1999-09-23 17:58:00 -04:00
|
|
|
done)
|
2000-02-10 20:09:59 -05:00
|
|
|
@mkdir -p ${PREFIX}/lib/X11/xephem/tools
|
1999-09-23 17:58:00 -04:00
|
|
|
@(cd ${WRKSRC}/GUI/xephem/tools; \
|
1998-08-05 02:00:00 -04:00
|
|
|
for f in *; do \
|
|
|
|
if [ -d $$f ]; then \
|
2000-02-10 20:09:59 -05:00
|
|
|
mkdir -p ${PREFIX}/lib/X11/xephem/tools/$$f; \
|
1999-09-23 17:58:00 -04:00
|
|
|
(cd $$f; \
|
1998-08-05 02:00:00 -04:00
|
|
|
for i in *; do \
|
|
|
|
${INSTALL_DATA} $$i ${PREFIX}/lib/X11/xephem/tools/$$f; \
|
1999-09-23 17:58:00 -04:00
|
|
|
done) \
|
1998-08-05 02:00:00 -04:00
|
|
|
else \
|
|
|
|
${INSTALL_DATA} $$f ${PREFIX}/lib/X11/xephem/tools; \
|
|
|
|
fi; \
|
1999-09-23 17:58:00 -04:00
|
|
|
done)
|
2000-02-10 20:09:59 -05:00
|
|
|
@echo ""
|
|
|
|
@echo "*** The initial auxil, catalogs, and tools files have"
|
|
|
|
@echo "*** been placed in ${PREFIX}/lib/X11/xephem. Move them"
|
|
|
|
@echo "*** where you will. Once moved you MUST modify"
|
|
|
|
@echo "*** ${PREFIX}/lib/X11/app-defaults/XEphem"
|
|
|
|
@echo "*** At a minimum you must change XEphem.BaseDir."
|
|
|
|
@echo ""
|
1998-08-05 02:00:00 -04:00
|
|
|
|
1997-12-02 23:06:51 -05:00
|
|
|
.include <bsd.port.mk>
|