Makefile 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. # $OpenBSD: Makefile,v 1.68 2017/06/02 10:51:56 schwarze Exp $
  2. COMMENT= create, alter and inspect Matroska files
  3. DISTNAME= mkvtoolnix-9.7.1
  4. REVISION= 0
  5. CATEGORIES= multimedia x11
  6. MASTER_SITES= ${HOMEPAGE}sources/
  7. EXTRACT_SUFX= .tar.xz
  8. HOMEPAGE = https://www.bunkus.org/videotools/mkvtoolnix/
  9. MAINTAINER= Brad Smith <brad@comstyle.com>
  10. # GPLv2
  11. PERMIT_PACKAGE_CDROM= Yes
  12. WANTLIB= FLAC boost_filesystem-mt boost_regex-mt boost_system-mt \
  13. c ebml m magic matroska ogg pthread vorbis z ${LIBECXX}
  14. MODULES= devel/gettext \
  15. lang/ruby
  16. MODRUBY_RUNDEP= No
  17. COMPILER = gcc
  18. BUILD_DEPENDS= devel/ruby-rake
  19. LIB_DEPENDS= audio/flac \
  20. audio/libogg \
  21. audio/libvorbis \
  22. devel/boost \
  23. devel/libmagic \
  24. multimedia/libmatroska>=1.4.5 \
  25. textproc/libebml>=1.3.4
  26. MAKE_ENV+= V=1
  27. CONFIGURE_STYLE= autoconf
  28. AUTOCONF_VERSION= 2.69
  29. CONFIGURE_ARGS= --disable-optimization \
  30. --with-boost-date-time=boost_date_time-mt \
  31. --with-boost-filesystem=boost_filesystem-mt \
  32. --with-boost-libdir=${LOCALBASE}/lib \
  33. --with-boost-regex=boost_regex-mt \
  34. --with-boost-system=boost_system-mt \
  35. --without-curl
  36. CPPFLAGS= -I${LOCALBASE}/include
  37. LDFLAGS= -L${LOCALBASE}/lib
  38. FLAVORS= no_x11
  39. FLAVOR?=
  40. .if ${FLAVOR:Mno_x11}
  41. CONFIGURE_ARGS+= --disable-gui
  42. .else
  43. MODULES+= x11/qt5
  44. WANTLIB+= Qt5Concurrent Qt5Core Qt5Gui Qt5Network Qt5Widgets
  45. RUN_DEPENDS+= devel/desktop-file-utils \
  46. misc/shared-mime-info \
  47. x11/gtk+3,-guic
  48. CPPFLAGS+= -I${X11BASE}/include
  49. LDFLAGS+= -L${X11BASE}/lib -L${MODQT5_LIBDIR}
  50. .endif
  51. CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" \
  52. LDFLAGS="${LDFLAGS}"
  53. # XXX does not build with our pugixml (it's too new)
  54. CONFIGURE_ENV +=ac_cv_header_pugixml_hpp=no
  55. # avoid hidden build dep on gtest
  56. CONFIGURE_ENV +=ac_cv_lib_gtest_main_main=no
  57. NO_TEST= Yes
  58. do-build:
  59. @cd ${WRKSRC} && \
  60. env -i ${MAKE_ENV} ${RUBY} ./drake -j${MAKE_JOBS} \
  61. ${MAKE_FLAGS}
  62. do-install:
  63. @cd ${WRKSRC} && \
  64. env -i ${MAKE_ENV} ${RUBY} ./drake \
  65. DESTDIR=${WRKINST} install
  66. .include <bsd.port.mk>