Makefile 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # $OpenBSD: Makefile,v 1.50 2016/05/05 19:52:28 naddy Exp $
  2. COMMENT= interactive astronomical ephemeris
  3. DISTNAME= xephem-3.2.3
  4. CATEGORIES= astro
  5. MASTER_SITES= https://distfiles.nl/
  6. HOMEPAGE= http://www.clearskyinstitute.com/xephem/
  7. PERMIT_PACKAGE_CDROM= no modifications, no fee
  8. PERMIT_PACKAGE_FTP= no modifications
  9. PERMIT_DISTFILES_FTP= Yes
  10. REVISION = 8
  11. WANTLIB= ICE SM X11 Xau Xdmcp Xext Xt c m Xm
  12. LIB_DEPENDS += x11/motif
  13. MAKE_ENV+=MOTIFLIB='-L${LOCALBASE}/lib -lXm'
  14. CONFIGURE_STYLE= imake
  15. do-configure:
  16. @cd ${WRKSRC}/libastro && ${SETENV} ${XMKMF}
  17. @cd ${WRKSRC}/GUI/xephem && ${SETENV} ${XMKMF}
  18. do-build:
  19. @cd ${WRKSRC}/libastro && \
  20. ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} -f ${MAKE_FILE} ${ALL_TARGET}
  21. @cd ${WRKSRC}/GUI/xephem && \
  22. ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} -f ${MAKE_FILE} ${ALL_TARGET}
  23. NO_TEST= Yes
  24. do-install:
  25. ${INSTALL_DATA_DIR} ${PREFIX}/lib/X11/xephem/auxil
  26. ${INSTALL_DATA_DIR} ${PREFIX}/lib/X11/xephem/catalogs
  27. ${INSTALL_DATA_DIR} ${PREFIX}/lib/X11/xephem/tools
  28. @cd ${WRKSRC}/GUI/xephem && \
  29. ${SETENV} ${MAKE_ENV} \
  30. ${MAKE_PROGRAM} ${ALL_FAKE_FLAGS} -f ${MAKE_FILE} ${INSTALL_TARGET}
  31. @cd ${WRKSRC}/GUI/xephem && \
  32. sed -e 's,ShareDir: \.$$,ShareDir: ${TRUEPREFIX}/lib/X11/xephem,' XEphem.ad > XEphem && \
  33. ${INSTALL_DATA} XEphem ${PREFIX}/lib/X11/app-defaults
  34. @cd ${WRKSRC}/GUI/xephem/auxil; \
  35. for f in *; do \
  36. ${INSTALL_DATA} $$f ${PREFIX}/lib/X11/xephem/auxil; \
  37. done
  38. @cd ${WRKSRC}/GUI/xephem/catalogs; \
  39. for f in *; do \
  40. ${INSTALL_DATA} $$f ${PREFIX}/lib/X11/xephem/catalogs; \
  41. done
  42. @cd ${WRKSRC}/GUI/xephem/tools; \
  43. for f in *; do \
  44. if [ -d $$f ]; then \
  45. ${INSTALL_DATA_DIR} ${PREFIX}/lib/X11/xephem/tools/$$f; \
  46. (cd $$f; \
  47. for i in *; do \
  48. ${INSTALL_DATA} $$i ${PREFIX}/lib/X11/xephem/tools/$$f; \
  49. done) \
  50. else \
  51. ${INSTALL_DATA} $$f ${PREFIX}/lib/X11/xephem/tools; \
  52. fi; \
  53. done
  54. .include <bsd.port.mk>