Makefile 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. # $OpenBSD: Makefile,v 1.24 2013/12/06 16:19:58 naddy Exp $
  2. COMMENT-main= display the phase of the Sun on a map of the Earth
  3. COMMENT-maps= additional maps of the Earth for sunclock
  4. VERSION= 3.56
  5. DISTNAME= sunclock-${VERSION}
  6. PKGNAME-main= ${DISTNAME}
  7. PKGNAME-maps= sunclock-maps-${VERSION}
  8. CATEGORIES= astro
  9. HOMEPAGE= http://www.arvernes.com/wiki/index.php/Sunclock
  10. MASTER_SITES= ftp://ftp.ac-grenoble.fr/ge/geosciences/sunclock/
  11. MASTER_SITES0= ftp://ftp.ac-grenoble.fr/ge/geosciences/sunclock/data_packages/
  12. SUPDISTFILES= big_images_270804.tar.bz2:0 \
  13. medium_images_270804.tar.bz2:0 \
  14. e43_color1_sh_16k.jpg:0 \
  15. huge.jpg:0
  16. EXTRACT_SUFX= .tar.bz2
  17. CONFIGURE_STYLE= imake
  18. NO_TEST= Yes
  19. PSEUDO_FLAVORS= no_maps
  20. FLAVOR?= no_maps
  21. MULTI_PACKAGES= -main -maps
  22. .include <bsd.port.arch.mk>
  23. PERMIT_PACKAGE_CDROM-maps= no license for additional maps
  24. PERMIT_PACKAGE_FTP-maps= no license for additional maps
  25. RUN_DEPENDS-maps= astro/sunclock
  26. PKG_ARCH-maps= *
  27. # GPL
  28. PERMIT_PACKAGE_CDROM= Yes
  29. REVISION-main = 3
  30. REVISION-maps = 0
  31. WANTLIB-main= X11 Xext Xpm Xau Xdmcp c m z jpeg png
  32. DIST_SUBDIR= sunclock
  33. LIB_DEPENDS-main= graphics/jpeg \
  34. graphics/png
  35. DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
  36. EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
  37. .if ${BUILD_PACKAGES:M-maps} # with maps
  38. DISTFILES+= ${SUPDISTFILES}
  39. post-extract:
  40. ${BZIP2} -dkc ${FULLDISTDIR}/medium_images_270804.tar.bz2 | tar -xf - \
  41. -C ${WRKSRC}/vmf -s '#images/medium#.#'
  42. ${BZIP2} -dkc ${FULLDISTDIR}/big_images_270804.tar.bz2 | tar -xf - \
  43. -C ${WRKSRC}/vmf -s '#images/big#.#'
  44. cp ${FULLDISTDIR}/e43_color1_sh_16k.jpg ${WRKSRC}/vmf/
  45. cp ${FULLDISTDIR}/huge.jpg ${WRKSRC}/vmf/
  46. .endif
  47. do-install:
  48. ${INSTALL_PROGRAM} ${WRKBUILD}/sunclock ${PREFIX}/bin
  49. ${INSTALL_MAN} ${WRKSRC}/sunclock.man ${PREFIX}/man/man1/sunclock.1
  50. ${INSTALL_DATA_DIR} ${PREFIX}/share/sunclock
  51. ${INSTALL_DATA} ${WRKSRC}/Sunclockrc ${PREFIX}/share/sunclock/
  52. ${INSTALL_DATA_DIR} ${PREFIX}/share/sunclock/earthmaps
  53. ${INSTALL_DATA_DIR} ${PREFIX}/share/sunclock/earthmaps/vmf
  54. ${INSTALL_DATA_DIR} ${PREFIX}/share/sunclock/i18n
  55. ${INSTALL_DATA_DIR} ${PREFIX}/share/sunclock/wm_icons/
  56. ${INSTALL_DATA} ${WRKSRC}/wm_icons/* ${PREFIX}/share/sunclock/wm_icons/
  57. .if ${BUILD_PACKAGES:M-maps}
  58. ${INSTALL_DATA} ${WRKSRC}/vmf/*jpg ${PREFIX}/share/sunclock/earthmaps/
  59. ${INSTALL_DATA} ${WRKSRC}/vmf/*png ${PREFIX}/share/sunclock/earthmaps/
  60. .endif
  61. ${INSTALL_DATA} ${WRKSRC}/vmf/*vmf ${PREFIX}/share/sunclock/earthmaps/vmf/
  62. ${INSTALL_DATA} ${WRKSRC}/i18n/Sunclock.* ${PREFIX}/share/sunclock/i18n/
  63. .include <bsd.port.mk>