openbsd-ports/astro/xephem/Makefile

68 lines
2.1 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.19 2001/04/12 04:17:53 obecian Exp $
1997-12-02 23:06:51 -05:00
COMMENT= "interactive astronomical ephemeris"
2000-05-29 06:34:20 -04:00
DISTNAME= xephem-3.2.3
1997-12-02 23:06:51 -05:00
CATEGORIES= astro
NEED_VERSION= 1.364
2000-05-29 06:34:20 -04:00
MASTER_SITES= ftp://iraf.noao.edu/contrib/xephem/
1997-12-02 23:06:51 -05:00
2001-03-13 22:54:43 -05:00
HOMEPAGE= http://www.clearskyinstitute.com/xephem/
MAINTAINER= ports@openbsd.org
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
1999-09-23 17:58:00 -04:00
2000-03-18 21:20:30 -05:00
USE_MOTIF= Yes
CONFIGURE_STYLE= imake
1997-12-02 23:06:51 -05:00
do-configure:
2000-03-18 21:20:30 -05:00
@cd ${WRKSRC}/libastro && ${SETENV} ${XMKMF}
@cd ${WRKSRC}/GUI/xephem && ${SETENV} ${XMKMF}
do-build:
2000-03-18 21:20:30 -05:00
@cd ${WRKSRC}/libastro && \
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} -f ${MAKE_FILE} ${ALL_TARGET}
@cd ${WRKSRC}/GUI/xephem && \
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} -f ${MAKE_FILE} ${ALL_TARGET}
do-install:
2001-03-13 22:49:34 -05:00
${INSTALL_DATA_DIR} ${PREFIX}/lib/X11/xephem/auxil
${INSTALL_DATA_DIR} ${PREFIX}/lib/X11/xephem/catalogs
${INSTALL_DATA_DIR} ${PREFIX}/lib/X11/xephem/tools
2000-03-18 21:20:30 -05:00
@cd ${WRKSRC}/GUI/xephem && \
${SETENV} ${MAKE_ENV} \
2000-03-18 21:20:30 -05:00
${MAKE} ${MAKE_FLAGS} -f ${MAKE_FILE} ${INSTALL_TARGET}
@cd ${WRKSRC}/GUI/xephem && \
${SETENV} ${MAKE_ENV} \
2000-03-18 21:20:30 -05:00
${MAKE} ${MAKE_FLAGS} -f ${MAKE_FILE} install.man
@cd ${WRKSRC}/GUI/xephem && \
sed -e 's,: .$$,: ${TRUEPREFIX}/lib/X11/xephem,' XEphem.ad > XEphem && \
${INSTALL_DATA} XEphem ${PREFIX}/lib/X11/app-defaults
@cd ${WRKSRC}/GUI/xephem/auxil; \
for f in *; do \
${INSTALL_DATA} $$f ${PREFIX}/lib/X11/xephem/auxil; \
2000-03-18 21:20:30 -05:00
done
@cd ${WRKSRC}/GUI/xephem/catalogs; \
for f in *; do \
${INSTALL_DATA} $$f ${PREFIX}/lib/X11/xephem/catalogs; \
2000-03-18 21:20:30 -05:00
done
@cd ${WRKSRC}/GUI/xephem/tools; \
for f in *; do \
if [ -d $$f ]; then \
2001-03-13 22:49:34 -05:00
${INSTALL_DATA_DIR} ${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; \
2000-03-18 21:20:30 -05:00
done
${INSTALL_PROGRAM} ${WRKSRC}/GUI/xephem/xephem ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/GUI/xephem/xephem.0 ${PREFIX}/man/cat1
1997-12-02 23:06:51 -05:00
.include <bsd.port.mk>