openbsd-ports/astro/xephem/Makefile

67 lines
1.9 KiB
Makefile
Raw Normal View History

2000-03-18 21:20:30 -05:00
# $OpenBSD: Makefile,v 1.12 2000/03/19 02:20:31 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
2000-02-22 12:08:31 -05:00
NEED_VERSION= 1.210
2000-03-18 21:20:30 -05:00
MASTER_SITES= ftp://iraf.noao.edu/contrib/xephem/xephem-3.2/
1997-12-02 23:06:51 -05:00
LICENSE_TYPE= NOFEE
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
1999-09-23 17:58:00 -04:00
1997-12-02 23:06:51 -05:00
MAINTAINER= angelos@openbsd.org
2000-03-18 21:20:30 -05:00
USE_MOTIF= Yes
USE_IMAKE= Yes
FAKE= Yes
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:
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
@mkdir -p ${PREFIX}/lib/X11/app-defaults
@cd ${WRKSRC}/GUI/xephem && \
sed -e 's,: .$$,: ${TRUEPREFIX}/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
2000-03-18 21:20:30 -05:00
@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
@mkdir -p ${PREFIX}/lib/X11/xephem/catalogs
2000-03-18 21:20:30 -05:00
@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
@mkdir -p ${PREFIX}/lib/X11/xephem/tools
2000-03-18 21:20:30 -05: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; \
2000-03-18 21:20:30 -05:00
done
1997-12-02 23:06:51 -05:00
.include <bsd.port.mk>