openbsd-ports/astro/xephem/Makefile

68 lines
2.1 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.32 2008/01/04 17:48:33 espie Exp $
1997-12-02 23:06:51 -05:00
2007-09-15 06:37:21 -04:00
COMMENT= interactive astronomical ephemeris
2000-05-29 06:34:20 -04:00
DISTNAME= xephem-3.2.3
2007-11-13 07:44:22 -05:00
PKGNAME= ${DISTNAME}p0
1997-12-02 23:06:51 -05:00
CATEGORIES= astro
2006-10-12 11:16:44 -04:00
MASTER_SITES= http://humppa.nl/distfiles/
1997-12-02 23:06:51 -05:00
2001-03-13 22:54:43 -05:00
HOMEPAGE= http://www.clearskyinstitute.com/xephem/
2007-09-15 06:37:21 -04:00
PERMIT_PACKAGE_CDROM= no modifications, no fee
PERMIT_PACKAGE_FTP= no modifications
PERMIT_DISTFILES_CDROM= no fee
PERMIT_DISTFILES_FTP= Yes
2007-11-13 07:44:22 -05:00
WANTLIB= ICE SM X11 Xau Xdmcp 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}
2006-11-13 05:08:12 -05:00
USE_X11= Yes
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} \
${MAKE_PROGRAM} ${ALL_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>