pkgsrc/net/knewstuff/Makefile
jperkin e54cefee7e kde: SUBST_STAGE should be pre-configure, not post-patch.
Performing substitutions during *-patch phases makes it impossible to
generate patches via mkpatches without introducing substitution noise.
2018-02-07 15:35:09 +00:00

27 lines
820 B
Makefile

# $NetBSD: Makefile,v 1.20 2018/02/07 15:35:09 jperkin Exp $
DISTNAME= knewstuff-${KF5VER}
PKGREVISION= 3
CATEGORIES= net
HOMEPAGE= https://community.kde.org/Frameworks
COMMENT= Support for downloading application assets from the network
LICENSE= gnu-lgpl-v2.1
.include "../../meta-pkgs/kf5/Makefile.common"
USE_TOOLS+= msgmerge
SUBST_CLASSES+= xdg
SUBST_STAGE.xdg= pre-configure
SUBST_MESSAGE.xdg= Install via examples dir.
SUBST_FILES.xdg= CMakeLists.txt
SUBST_SED.xdg= -e 's:{KDE_INSTALL_CONFDIR}:{KDE_INSTALL_DATAROOTDIR}/examples/kde-xdg:'
MAKE_DIRS+= ${PKG_SYSCONFDIR}/xdg
CONF_FILES+= ${PREFIX}/share/examples/kde-xdg/knewstuff.categories \
${PKG_SYSCONFDIR}/xdg/knewstuff.categories
.include "../../devel/kio/buildlink3.mk"
.include "../../x11/qt5-qtbase/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"