Makefile 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # $OpenBSD: Makefile,v 1.21 2016/12/25 14:34:39 zhuk Exp $
  2. COMMENT = multimedia layer for Qt4/KDE4
  3. CATEGORIES = multimedia devel
  4. VERSION = 4.8.3
  5. DISTNAME = phonon-${VERSION}
  6. HOMEPAGE = http://phonon.kde.org/
  7. REVISION = 4
  8. # The phonon_s* are for KDE4-only; the phonon4qt5* are Qt5-only
  9. # Renamed to avoid clashing with Qt4's one
  10. # XXX major should be tweaked on any update, to unbreak
  11. # IMPORTED_LINK_INTERFACE_LIBRARIES CMake feature.
  12. SHARED_LIBS = phonon_s 2.0
  13. SHARED_LIBS += phonon_sexperimental 1.0
  14. SHARED_LIBS += phonon4qt5 0.0
  15. SHARED_LIBS += phonon4qt5experimental 0.0
  16. MAINTAINER = KDE porting team <openbsd-kde@googlegroups.com>
  17. # LGPL v2.1
  18. PERMIT_PACKAGE_CDROM = Yes
  19. MASTER_SITES = ${MASTER_SITE_KDE:=stable/phonon/${VERSION}/src/}
  20. EXTRACT_SUFX = .tar.xz
  21. # XXX Qt5 FLAVOR doesn't work yet!
  22. FLAVORS = qt5
  23. FLAVOR ?=
  24. WANTLIB = m pulse pulse-mainloop-glib
  25. LIB_DEPENDS = audio/pulseaudio
  26. .if ${FLAVOR:Mqt5}
  27. MODULES = x11/qt5 devel/cmake
  28. PHONON_INCLUDE_DIR = include/phonon4qt5
  29. PKGNAME = phonon-qt5-${VERSION}
  30. FULLPKGNAME = ${PKGNAME}
  31. WANTLIB += Qt5Core Qt5DBus Qt5Gui Qt5Widgets
  32. .else
  33. MODULES = x11/kde4
  34. MODKDE4_USE =
  35. MODKDE4_LIB_LINKS = Yes
  36. PHONON_INCLUDE_DIR = ${MODKDE4_INCLUDE_DIR}
  37. WANTLIB += QtDBus QtGui
  38. .endif
  39. # Not sure if it's needed at all but doesn't hurt either for now.
  40. CONFIGURE_ARGS = -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT:Bool=Yes
  41. # Clashes with the one provided by Qt itself.
  42. CONFIGURE_ARGS += -DPHONON_BUILD_DESIGNER_PLUGIN:Bool=No \
  43. -DCMAKE_POLICY_DEFAULT_CMP0017=NEW \
  44. -DPHONON_INSTALL_QT_COMPAT_HEADERS=No
  45. .if ${FLAVOR:Mqt5}
  46. CONFIGURE_ARGS += -DPHONON_BUILD_PHONON4QT5=Yes \
  47. -DINCLUDE_INSTALL_DIR=include/phonon4qt5
  48. .else
  49. CONFIGURE_ARGS += -DBACKEND_INSTALL_DIR="${PREFIX}/lib/kde4/plugins/phonon_backend"
  50. .endif
  51. # Upstream says, tests need to be redone.
  52. NO_TEST = Yes
  53. SUBST_VARS = PHONON_INCLUDE_DIR
  54. .include <bsd.port.mk>