Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # $OpenBSD: Makefile,v 1.12 2016/07/08 10:32:34 jasper Exp $
  2. COMMENT = spaced learning system
  3. DISTNAME = anki-2.0.36
  4. CATEGORIES = education
  5. HOMEPAGE = http://ankisrs.net/
  6. MAINTAINER = Federico G. Schwindt <fgsch@openbsd.org>
  7. # AGPL3
  8. PERMIT_PACKAGE_CDROM = Yes
  9. MASTER_SITES = http://ankisrs.net/download/mirror/
  10. EXTRACT_SUFX = .tgz
  11. MODULES = lang/python
  12. MODPY_ADJ_FILES = anki/anki
  13. RUN_DEPENDS = audio/py-audio \
  14. devel/desktop-file-utils \
  15. devel/py-send2trash \
  16. www/py-beautifulsoup \
  17. www/py-httplib2>=0.7.7 \
  18. x11/mplayer \
  19. x11/py-qt4
  20. CONFIGURE_STYLE = none
  21. NO_TEST = Yes
  22. do-build:
  23. ${MODPY_BIN} -mcompileall -q ${WRKSRC}
  24. do-install:
  25. ${INSTALL_DATA_DIR} ${PREFIX}/bin
  26. ${INSTALL_SCRIPT} ${WRKSRC}/anki/anki ${PREFIX}/bin
  27. ${INSTALL_DATA_DIR} ${PREFIX}/man/man1
  28. ${INSTALL_DATA} ${WRKSRC}/anki.1 ${PREFIX}/man/man1
  29. ${INSTALL_DATA_DIR} ${PREFIX}/share/applications
  30. ${INSTALL_DATA} ${WRKSRC}/anki.desktop \
  31. ${PREFIX}/share/applications
  32. ${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps
  33. cd ${WRKSRC} && ${INSTALL_DATA} anki.xpm anki.png \
  34. ${PREFIX}/share/pixmaps
  35. ${INSTALL_DATA_DIR} \
  36. ${PREFIX}/lib/python${MODPY_VERSION}/site-packages
  37. cd ${WRKSRC} && pax -rw anki \
  38. ${PREFIX}/lib/python${MODPY_VERSION}/site-packages
  39. cd ${WRKSRC} && pax -rw locale \
  40. ${PREFIX}/lib/python${MODPY_VERSION}/site-packages/anki
  41. cd ${WRKSRC} && pax -rw aqt \
  42. ${PREFIX}/lib/python${MODPY_VERSION}/site-packages
  43. rm ${PREFIX}/lib/python${MODPY_VERSION}/site-packages/anki/*.orig
  44. .include <bsd.port.mk>