openbsd-ports/astro/xephem/Makefile

66 lines
2.0 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.27 2004/11/21 12:50:33 espie 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
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/
PERMIT_PACKAGE_CDROM= "no modifications, no fee"
PERMIT_PACKAGE_FTP= "no modifications"
PERMIT_DISTFILES_CDROM= "no fee"
PERMIT_DISTFILES_FTP= Yes
WANTLIB= ICE SM X11 Xext Xp Xt c m
1999-09-23 17:58:00 -04:00
USE_MOTIF= any
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}
2002-10-24 12:21:35 -04:00
NO_REGRESS= Yes
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} \
2002-04-08 15:05:16 -04:00
${MAKE} ${FAKE_FLAGS} -f ${MAKE_FILE} ${INSTALL_TARGET}
2000-03-18 21:20:30 -05:00
@cd ${WRKSRC}/GUI/xephem && \
${SETENV} ${MAKE_ENV} \
2002-04-08 15:05:16 -04:00
${MAKE} ${FAKE_FLAGS} -f ${MAKE_FILE} install.man
2000-03-18 21:20:30 -05:00
@cd ${WRKSRC}/GUI/xephem && \
sed -e 's,ShareDir: \.$$,ShareDir: ${TRUEPREFIX}/lib/X11/xephem,' XEphem.ad > XEphem && \
2000-03-18 21:20:30 -05:00
${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
1997-12-02 23:06:51 -05:00
.include <bsd.port.mk>