pkgsrc/meta-pkgs/kde4/kde4.mk
brook 39f8e1a4e0 In a recent thread [1], the value of including USE_CMAKE=yes in the file
meta-pkgs/kde4/kde4.mk was discussed.  The conclusion was that it did
make sense to include that definition because kde4.mk is included by
packages that use the kde4 configure and build system, which is cmake.
Thus, they will need to define USE_CMAKE anyway and currently must do
so in addition to including kde4.mk.  This adds the needed definition
so that it is no longer necessary to do both things.

Many other packages currently include kde4.mk and also define USE_CMAKE.
In many cases they also define CMAKE_ARGS.  To avoid potential confusion
centering around wondering whether or not USE_CMAKE was forgotten (e.g.,
if readers do not know it is now defined in kde4.mk), the definition was
not removed from those packages.

Future package authors can determine whether or not it is clearer to
include the definition even though kde4.mk is also included.

[1] http://mail-index.netbsd.org/tech-pkg/2011/08/28/msg007595.html
2011-08-31 19:40:43 +00:00

37 lines
1.3 KiB
Makefile

# $NetBSD: kde4.mk,v 1.3 2011/08/31 19:40:43 brook Exp $
#
# This Makefile fragment is included by packages that use the KDE4
# configure-and-build process.
#
.if !defined(KDE4_MK)
KDE4_MK= # defined
USE_PKGLOCALEDIR= YES
USE_CMAKE= yes
CMAKE_ARGS+= -DHTML_INSTALL_DIR=${PREFIX}/share/doc/kde/HTML
CMAKE_ARGS+= -DDATA_INSTALL_DIR=${PREFIX}/share/kde/apps
CMAKE_ARGS+= -DCONFIG_INSTALL_DIR=${PREFIX}/share/kde/config
CMAKE_ARGS+= -DKCFG_INSTALL_DIR=${PREFIX}/share/kde/config.kcfg
CMAKE_ARGS+= -DLOCALE_INSTALL_DIR=${PREFIX}/${PKGLOCALEDIR}/locale
CMAKE_ARGS+= -DMIME_INSTALL_DIR=${PREFIX}/share/kde/mimelnk
CMAKE_ARGS+= -DTEMPLATES_INSTALL_DIR=${PREFIX}/share/kde/templates
CMAKE_ARGS+= -DWALLPAPER_INSTALL_DIR=${PREFIX}/share/kde/wallpapers
CMAKE_ARGS+= -DAUTOSTART_INSTALL_DIR=${PREFIX}/share/kde/autostart
CMAKE_ARGS+= -DSYSCONF_INSTALL_DIR=${PKG_SYSCONFDIR:Q}
CMAKE_ARGS+= -DINFO_INSTALL_DIR=${PREFIX}/${PKGINFODIR}
CMAKE_ARGS+= -DMAN_INSTALL_DIR=${PREFIX}/${PKGMANDIR}
pre-configure: qmake-bin-add
qmake-bin-add:
${LN} -sf ${QTDIR}/bin/qmake ${BUILDLINK_DIR}/bin/
BUILDLINK_API_DEPENDS.qt4-libs+= qt4-libs>=4.4.0
.include "../../x11/qt4-libs/buildlink3.mk"
BUILDLINK_API_DEPENDS.qt4-tools+= qt4-tools>=4.4.0
.include "../../x11/qt4-tools/buildlink3.mk"
.include "../../x11/qt4-qdbus/buildlink3.mk"
.endif # KDE4_MK