openbsd-ports/astro/xephem/Makefile

68 lines
2.1 KiB
Makefile
Raw Normal View History

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
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})
@(cd ${WRKSRC}/GUI/xephem && \
2000-02-22 12:08:31 -05:00
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} -f ${MAKE_FILE} ${ALL_TARGET})
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})
@(cd ${WRKSRC}/GUI/xephem && \
${SETENV} ${MAKE_ENV} \
2000-02-22 12:08:31 -05:00
${MAKE} ${MAKE_FLAGS} -f ${MAKE_FILE} install.man)
@(cd ${WRKSRC}/GUI/xephem && \
sed -e 's,: .$$,: ${PREFIX}/lib/X11/xephem,' XEphem.ad > XEphem && \
${INSTALL_DATA} XEphem ${PREFIX}/lib/X11/app-defaults)
@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; \
for f in *; do \
${INSTALL_DATA} $$f ${PREFIX}/lib/X11/xephem/auxil; \
1999-09-23 17:58:00 -04:00
done)
@mkdir -p ${PREFIX}/lib/X11/xephem/catalogs
1999-09-23 17:58:00 -04:00
@(cd ${WRKSRC}/GUI/xephem/catalogs; \
for f in *; do \
${INSTALL_DATA} $$f ${PREFIX}/lib/X11/xephem/catalogs; \
1999-09-23 17:58:00 -04:00
done)
@mkdir -p ${PREFIX}/lib/X11/xephem/tools
1999-09-23 17:58:00 -04:00
@(cd ${WRKSRC}/GUI/xephem/tools; \
for f in *; do \
if [ -d $$f ]; then \
mkdir -p ${PREFIX}/lib/X11/xephem/tools/$$f; \
1999-09-23 17:58:00 -04:00
(cd $$f; \
for i in *; do \
${INSTALL_DATA} $$i ${PREFIX}/lib/X11/xephem/tools/$$f; \
1999-09-23 17:58:00 -04:00
done) \
else \
${INSTALL_DATA} $$f ${PREFIX}/lib/X11/xephem/tools; \
fi; \
1999-09-23 17:58:00 -04:00
done)
@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 ""
1997-12-02 23:06:51 -05:00
.include <bsd.port.mk>