Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # $OpenBSD: Makefile,v 1.11 2017/02/25 20:11:33 mglocker Exp $
  2. COMMENT = retrieve and process nzb-files via web interface
  3. VERSION = 1.2.1
  4. DISTNAME = SABnzbd-${VERSION}-src
  5. PKGNAME = sabnzbd-${VERSION}
  6. CATEGORIES = news
  7. HOMEPAGE = http://sabnzbd.org/
  8. MAINTAINER = Marcus Glocker <marcus@nazgul.ch>
  9. # GPLv2
  10. PERMIT_PACKAGE_CDROM = Yes
  11. MASTER_SITES = https://github.com/sabnzbd/sabnzbd/releases/download/${VERSION}/
  12. MODULES = lang/python
  13. BUILD_DEPENDS = ${_MODPY_BUILD_DEPENDS}
  14. RUN_DEPENDS = archivers/par2cmdline \
  15. archivers/unrar \
  16. archivers/unzip \
  17. devel/py-cheetah \
  18. devel/py-notify \
  19. news/py-yenc \
  20. security/py-openssl
  21. NO_BUILD = Yes
  22. NO_TEST = Yes
  23. PKG_ARCH = *
  24. WRKSRC = ${WRKDIR}/SABnzbd-${VERSION}
  25. do-install:
  26. ${INSTALL_DATA_DIR} \
  27. ${PREFIX}/lib/python${MODPY_VERSION}/site-packages/sabnzbd
  28. cp -Rp ${WRKSRC}/* \
  29. ${PREFIX}/lib/python${MODPY_VERSION}/site-packages/sabnzbd
  30. ${SUBST_CMD} -m 555 -c ${FILESDIR}/sabnzbd ${WRKSRC}/sabnzbd/sabnzbd
  31. ${INSTALL_SCRIPT} ${WRKSRC}/sabnzbd/sabnzbd ${PREFIX}/bin/sabnzbd
  32. chown -R ${BINOWN}:${BINGRP} \
  33. ${PREFIX}/lib/python${MODPY_VERSION}/site-packages/sabnzbd
  34. post-install:
  35. ${MODPY_BIN} ${MODPY_LIBDIR}/compileall.py \
  36. ${PREFIX}/lib/python${MODPY_VERSION}/site-packages/sabnzbd
  37. .include <bsd.port.mk>