Makefile 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. # $OpenBSD: Makefile,v 1.15 2017/05/24 16:30:52 espie Exp $
  2. COMMENT-main = multimedia transformations framework
  3. COMMENT-gpl2 = GPLv2-licensed modules for mlt
  4. VERSION = 6.0.0
  5. DISTNAME = mlt-${VERSION}
  6. PKGNAME-main = ${DISTNAME}
  7. PKGNAME-gpl2 = mlt-gpl2-${VERSION}
  8. REVISION-main = 2
  9. REVISION-gpl2 = 0
  10. # XXX versions should be kept in sync together
  11. SHARED_LIBS = mlt 1.1
  12. SHARED_LIBS += mlt++ 1.1
  13. CATEGORIES = multimedia devel
  14. HOMEPAGE = http://www.mltframework.org/
  15. MAINTAINER = KDE porting team <openbsd-kde@googlegroups.com>
  16. # GPLv2+, LGPLv2.1+
  17. # Actually, qimage module could be under GPLv3+ if one more object
  18. # file gets included, see --enable-gpl3 configure option.
  19. PERMIT_PACKAGE_CDROM = Yes
  20. WANTLIB-main = ${MODGCC4_CPPWANTLIB} SDL SDL_image X11 avcodec
  21. WANTLIB-main += avdevice avformat avutil c cairo exif gdk-x11-2.0
  22. WANTLIB-main += gdk_pixbuf-2.0 glib-2.0 gobject-2.0 jack m pango-1.0
  23. WANTLIB-main += pangoft2-1.0 pthread sox swscale xml2 fftw3
  24. WANTLIB-gpl2 = ${MODGCC4_CPPWANTLIB} ${MODQT4_WANTLIB} lib/qt4/QtGui
  25. WANTLIB-gpl2 += lib/qt4/QtSvg lib/qt4/QtXml lib/qt4/QtOpenGL
  26. WANTLIB-gpl2 += X11 exif m mlt mlt++ pthread samplerate
  27. MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=mlt/}
  28. EXTRACT_SUFX = .tar.gz
  29. MULTI_PACKAGES = -main -gpl2
  30. MODULES = x11/kde4
  31. MODKDE4_USE =
  32. KDE4_ONLY = Yes
  33. BUILD_DEPENDS = audio/ladspa \
  34. textproc/libxml>=2.5 \
  35. ${MODKDE4_DEP_DIR}/libs>=${MODKDE4_DEP_VERSION}
  36. RUN_DEPENDS-main = audio/ladspa \
  37. x11/gtk+3,-guic
  38. LIB_DEPENDS-main = ${MODGCC4_CPPLIBDEP} \
  39. audio/jack \
  40. audio/sox \
  41. devel/sdl>=1.2 \
  42. devel/sdl-image>=1.2 \
  43. graphics/ffmpeg \
  44. graphics/libexif \
  45. math/fftw3 \
  46. x11/gtk+2,-main
  47. LIB_DEPENDS-gpl2 = ${BUILD_PKGPATH},-main \
  48. ${MODGCC4_CPPLIBDEP} \
  49. ${MODQT4_LIB_DEPENDS} \
  50. audio/libsamplerate>=0.1.5 \
  51. graphics/libexif
  52. MAKE_FLAGS = soversion=${LIBmlt_VERSION}
  53. MAKE_ENV = LDFLAGS="${LDFLAGS} -L${X11BASE}/lib" \
  54. SHFLAGS="-shared" CXX=${CXX}
  55. USE_GMAKE = Yes
  56. CONFIGURE_STYLE = simple
  57. CONFIGURE_ARGS = --mandir=${PREFIX}/man \
  58. --disable-dv \
  59. --disable-frei0r \
  60. --disable-kino \
  61. --disable-swfdec \
  62. --enable-gpl
  63. # one test fails due to lack of support of locale-specific numeric formatting
  64. TEST_DEPENDS = ${BUILD_PKGPATH},-main
  65. TEST_FLAGS = -e
  66. # LFLAGS is not a typo
  67. TEST_ENV = COPTS="${CXXFLAGS}" LFLAGS="${LDFLAGS} -pthread"
  68. do-test:
  69. cd ${WRKSRC}/src/tests; ${SETENV} ${ALL_TEST_ENV} qmake4 tests.pro
  70. cd ${WRKSRC}/src/tests; ${SETENV} ${ALL_TEST_ENV} ${MAKE_PROGRAM} \
  71. ${ALL_TEST_FLAGS} clean all check
  72. .include <bsd.port.mk>