Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # $OpenBSD: Makefile,v 1.29 2014/11/30 05:41:34 brad Exp $
  2. COMMENT= astrology program for X11 and alpha-numeric terminals
  3. V= 5.40
  4. DISTNAME= ast54unx
  5. PKGNAME= astrolog-${V}
  6. REVISION= 1
  7. CATEGORIES= misc
  8. HOMEPAGE= http://www.astrolog.org/astrolog.htm
  9. MASTER_SITES= http://www.astrolog.org/ftp/ephem/ \
  10. http://www.astrolog.org/ftp/ \
  11. ftp://ftp.kiarchive.ru/pub/unix/magick/astrology/astrolog/
  12. EXTRACT_ONLY= ${DISTNAME}.shr
  13. EPHEM= LRZ5_24 CHI_24 CPJV_24
  14. DISTFILES= ${EXTRACT_ONLY} ${EPHEM}
  15. PERMIT_PACKAGE_CDROM= No
  16. PERMIT_PACKAGE_FTP= Yes
  17. WANTLIB= X11 c m pthread-stubs xcb
  18. EXTRACT_CASES= *.shr) ${_PERL_FIX_SHAR} ${FULLDISTDIR}/$$archive | /bin/sh;;
  19. DIST_SUBDIR= astrolog
  20. ALL_TARGET= astrolog
  21. WRKDIST= ${WRKDIR}
  22. NO_TEST= Yes
  23. _V= ${V:S/.//}
  24. SUBST_VARS= _V
  25. do-install:
  26. -@${INSTALL_DATA_DIR} ${PREFIX}/lib/astrolog
  27. cd ${FULLDISTDIR} && \
  28. ${INSTALL_DATA} ${EPHEM} ${PREFIX}/lib/astrolog
  29. cd ${WRKSRC} && \
  30. if [ -f ${PREFIX}/lib/astrolog/astrolog.dat ] ; then \
  31. ${INSTALL_DATA} astrolog.dat ${PREFIX}/lib/astrolog/astrolog.dat-dist; \
  32. else \
  33. ${INSTALL_DATA} astrolog.dat ${PREFIX}/lib/astrolog; \
  34. fi
  35. cd ${WRKSRC} && ${INSTALL_PROGRAM} astrolog ${PREFIX}/bin
  36. -@${INSTALL_DATA_DIR} ${PREFIX}/share/doc/astrolog
  37. cd ${WRKSRC} && \
  38. ${INSTALL_DATA} Helpfile.${_V} ${PREFIX}/share/doc/astrolog
  39. cd ${WRKSRC} && \
  40. ${INSTALL_DATA} Update.${_V} ${PREFIX}/share/doc/astrolog
  41. cd ${WRKSRC} && \
  42. ${INSTALL_DATA} README.${_V} ${PREFIX}/share/doc/astrolog
  43. .include <bsd.port.mk>