pkgsrc/multimedia/kmplayer/Makefile
2021-12-08 16:01:42 +00:00

51 lines
1.7 KiB
Makefile

# $NetBSD: Makefile,v 1.146 2021/12/08 16:05:49 adam Exp $
#
DISTNAME= kmplayer-0.12.0b
PKGREVISION= 2
CATEGORIES= multimedia kde
MASTER_SITES= ${MASTER_SITE_KDE:=kmplayer/0.12/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= markd@NetBSD.org
HOMEPAGE= https://kmplayer.kde.org/
COMMENT= KDE frontend to mplayer
LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2.1 AND gnu-fdl-v1.2
BUILD_DEPENDS+= kdoctools>=5.19.0:../../devel/kdoctools
DEPENDS+= kinit>=5.19.0:../../x11/kinit
DEPENDS+= mplayer>=1.0rc3:../../multimedia/mplayer
DEPENDS+= mencoder>=1.0rc3:../../multimedia/mencoder
USE_TOOLS+= msgfmt perl pkg-config
SUBST_CLASSES+= fix-moc
SUBST_STAGE.fix-moc= post-configure
SUBST_MESSAGE.fix-moc= Cleaning up MOC includes
SUBST_FILES.fix-moc= _KDE_build/src/CMakeFiles/*_autogen.dir/AutogenInfo.json
SUBST_NOOP_OK.fix-moc= yes
SUBST_SED.fix-moc= -e 's;"${PREFIX}/include",;;g'
SUBST_CLASSES+= xdg
SUBST_STAGE.xdg= pre-configure
SUBST_MESSAGE.xdg= Install via examples dir.
SUBST_FILES.xdg= src/CMakeLists.txt
SUBST_SED.xdg= -e 's:{CONFIG_INSTALL_DIR}:{KDE_INSTALL_XDG_EX_DIR}:'
MAKE_DIRS+= ${PKG_SYSCONFDIR}/xdg
CONF_FILES+= ${PREFIX}/share/examples/kde-xdg/kmplayerrc \
${PKG_SYSCONFDIR}/xdg/kmplayerrc
.include "../../meta-pkgs/kde/applications.mk"
.include "../../graphics/cairo/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../multimedia/kmediaplayer/buildlink3.mk"
.include "../../multimedia/phonon-qt5/buildlink3.mk"
.include "../../sysutils/dbus-glib/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../x11/kdelibs4support/buildlink3.mk"
.include "../../x11/xcb-util-cursor/buildlink3.mk"
.include "../../x11/qt5-qtbase/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"