Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # $OpenBSD: Makefile,v 1.21 2017/04/28 18:06:06 ajacoutot Exp $
  2. PORTROACH= skipv:0.98.11_01
  3. COMMENT= full featured DVD copy program
  4. VERSION= 0.98.11
  5. REVISION= 2
  6. DISTNAME= dvdrip-${VERSION}
  7. CATEGORIES= graphics audio multimedia perl5
  8. HOMEPAGE= http://www.exit1.org/dvdrip/
  9. # Artistic and GPL
  10. PERMIT_PACKAGE_CDROM= Yes
  11. WANTLIB= c
  12. MASTER_SITES= http://www.exit1.org/dvdrip/dist/
  13. RUN_DEPENDS= graphics/ImageMagick \
  14. devel/desktop-file-utils \
  15. devel/p5-Event-ExecFlow \
  16. multimedia/transcode \
  17. multimedia/subtitleripper \
  18. multimedia/xine-ui \
  19. net/fping \
  20. net/p5-Event-RPC \
  21. x11/p5-Gtk2-Ex-FormFactory \
  22. multimedia/ogmtools \
  23. multimedia/lsdvd>=0.15 \
  24. x11/gtk+3,-guic
  25. BUILD_DEPENDS= devel/p5-Event-ExecFlow \
  26. net/p5-Event-RPC \
  27. x11/p5-Gtk2-Ex-FormFactory
  28. CONFIGURE_STYLE=perl
  29. CONFIGURE_ENV= SKIP_UNPACK_REQUIRED_MODULES=1
  30. TEST_DEPENDS=x11/p5-Gtk2-Ex-FormFactory
  31. TEST_FLAGS= HOME=${TMPDIR}
  32. pre-build:
  33. @sed -i "s,/usr/sbin/fping,${LOCALBASE}/sbin/fping,g" \
  34. ${WRKSRC}/lib/Video/DVDRip/Cluster/Master.pm \
  35. ${WRKSRC}/lib/Video/DVDRip/Depend.pm
  36. post-install:
  37. mv ${PREFIX}/${P5SITE}/LocaleData ${PREFIX}/share/locale
  38. ${INSTALL_DATA_DIR} ${PREFIX}/share/applications/
  39. ${INSTALL_DATA} ${WRKSRC}/dvdrip.desktop ${PREFIX}/share/applications
  40. rm -f ${PREFIX}/${P5SITE}/Video/DVDRip/Config.pm.orig
  41. rm -f ${PREFIX}/${P5SITE}/Video/DVDRip/GUI/Project/Title.pm.orig
  42. ${INSTALL_DATA_DIR} ${PREFIX}/share/icons/hicolor/scalable/apps/
  43. ${INSTALL_DATA} ${WRKSRC}/dvdrip-icon-hq.svg ${PREFIX}/share/icons/hicolor/scalable/apps/dvdrip.svg
  44. .include <bsd.port.mk>