2016-10-07 20:25:29 +02:00
|
|
|
# $NetBSD: Makefile,v 1.57 2016/10/07 18:25:36 adam Exp $
|
2009-10-02 21:37:19 +02:00
|
|
|
|
2016-01-10 20:06:41 +01:00
|
|
|
DISTNAME= kde-workspace-4.11.22
|
2012-03-19 20:44:01 +01:00
|
|
|
PKGNAME= ${DISTNAME:S/-4/4-4/}
|
2016-10-07 20:25:29 +02:00
|
|
|
PKGREVISION= 6
|
2009-10-02 21:37:19 +02:00
|
|
|
CATEGORIES= x11
|
2012-03-19 20:44:01 +01:00
|
|
|
COMMENT= Base workspace for the KDE 4 integrated X11 desktop
|
2016-01-10 20:06:41 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_KDE:=applications/15.08.0/src/}
|
2009-10-02 21:37:19 +02:00
|
|
|
|
2016-07-09 15:03:30 +02:00
|
|
|
PYTHON_VERSIONS_INCOMPATIBLE= 34 35 # not yet ported as of 4.11.3
|
2014-01-25 11:29:56 +01:00
|
|
|
|
2009-10-02 21:37:19 +02:00
|
|
|
.include "../../meta-pkgs/kde4/Makefile.kde4"
|
|
|
|
|
|
|
|
DISTFILES= ${DEFAULT_DISTFILES} Daemon.png Daemon.README
|
|
|
|
DISTFILES+= NetBSD-flag-1.0.png
|
|
|
|
SITES.Daemon.png= ${MASTER_SITE_LOCAL}
|
|
|
|
SITES.Daemon.README= ${MASTER_SITE_LOCAL}
|
|
|
|
SITES.NetBSD-flag-1.0.png= ${MASTER_SITE_LOCAL}
|
|
|
|
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
|
2013-04-07 04:30:01 +02:00
|
|
|
CMAKE_ARGS+= -DKDE4_BUILD_TESTS:BOOL=OFF
|
2014-11-30 04:27:46 +01:00
|
|
|
CMAKE_ARGS+= -DWITH_NepomukCore:BOOL=OFF
|
|
|
|
CMAKE_ARGS+= -DWITH_Soprano:BOOL=OFF
|
2015-02-27 22:15:48 +01:00
|
|
|
CMAKE_ARGS+= -DWITH_libgps:BOOL=OFF
|
2013-04-07 04:30:01 +02:00
|
|
|
|
2009-10-02 21:37:19 +02:00
|
|
|
# BUILD_MAKE_FLAGS+= VERBOSE=1
|
|
|
|
|
2010-04-10 04:45:02 +02:00
|
|
|
USE_TOOLS+= mkfontdir bdftopcf gmake
|
2009-10-02 21:37:19 +02:00
|
|
|
|
|
|
|
FONTS_DIRS.x11+= ${PREFIX}/share/kde/fonts/override
|
|
|
|
REQD_DIRS+= ${PREFIX}/share/kde/fonts
|
|
|
|
REQD_DIRS+= ${PREFIX}/share/kde/fonts/override
|
|
|
|
|
|
|
|
RCD_SCRIPTS= kdm
|
|
|
|
|
|
|
|
CONF_FILES= ${PREFIX}/share/kde/config/kdm/kdmrc \
|
|
|
|
${PKG_SYSCONFDIR}/kdm/kdmrc
|
|
|
|
OWN_DIRS= ${PKG_SYSCONFDIR}/kdm
|
|
|
|
|
2012-03-19 20:44:01 +01:00
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/kde-workspace4/ksysguarddrc \
|
2009-10-02 21:37:19 +02:00
|
|
|
${PKG_SYSCONFDIR}/ksysguarddrc
|
2010-04-11 15:55:49 +02:00
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/kde4-dbus/org.kde.ksysguard.processlisthelper.conf \
|
|
|
|
${PKG_SYSCONFDIR}/dbus-1/system.d/org.kde.ksysguard.processlisthelper.conf
|
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/kde4-dbus/org.kde.fontinst.conf \
|
|
|
|
${PKG_SYSCONFDIR}/dbus-1/system.d/org.kde.fontinst.conf
|
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/kde4-dbus/org.kde.kcontrol.kcmclock.conf \
|
|
|
|
${PKG_SYSCONFDIR}/dbus-1/system.d/org.kde.kcontrol.kcmclock.conf
|
2012-03-19 20:44:01 +01:00
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/kde4-dbus/org.kde.kcontrol.kcmkdm.conf \
|
|
|
|
${PKG_SYSCONFDIR}/dbus-1/system.d/org.kde.kcontrol.kcmkdm.conf
|
2009-10-02 21:37:19 +02:00
|
|
|
|
2011-01-18 11:59:12 +01:00
|
|
|
SPECIAL_PERMS+= ${PREFIX}/lib/kde4/libexec/kcheckpass \
|
|
|
|
${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 6555
|
|
|
|
|
2016-06-28 00:17:23 +02:00
|
|
|
KDM_USER?= kdm
|
|
|
|
KDM_GROUP?= ${KDM_USER}
|
|
|
|
PKG_USERS_VARS+= KDM_USER
|
|
|
|
PKG_GROUPS_VARS+= KDM_GROUP
|
|
|
|
PKG_GROUPS= ${KDM_GROUP}
|
|
|
|
PKG_USERS= ${KDM_USER}:${KDM_GROUP}
|
|
|
|
PKG_GECOS.${KDM_USER}= kdm unprivileged user
|
|
|
|
|
2009-10-02 21:37:19 +02:00
|
|
|
REPLACE_PERL+= \
|
|
|
|
kcontrol/keys/convertShortcuts.pl \
|
2013-11-07 14:35:56 +01:00
|
|
|
kwin/clients/oxygen/data/update_oxygen.pl \
|
2009-10-02 21:37:19 +02:00
|
|
|
kwin/data/kwin3_plugin.pl \
|
|
|
|
kwin/data/pluginlibFix.pl
|
2013-06-23 00:39:10 +02:00
|
|
|
REPLACE_SH+= libs/plasmagenericshell/widgetsexplorer/package/Messages.sh
|
2009-10-02 21:37:19 +02:00
|
|
|
|
|
|
|
PY_PATCHPLIST= yes
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.include "options.mk"
|
|
|
|
|
2015-10-08 12:08:03 +02:00
|
|
|
PLIST_VARS+= gles utempter noutempter
|
2012-05-14 09:03:08 +02:00
|
|
|
.if ${OPSYS} == "Linux" && exists(/usr/include/utempter.h)
|
2012-03-19 20:44:01 +01:00
|
|
|
PLIST.utempter= yes
|
2015-01-15 18:59:10 +01:00
|
|
|
.elif ${OPSYS} == "FreeBSD" && exists(/usr/include/utempter.h)
|
|
|
|
PLIST.utempter= yes
|
2012-03-19 20:44:01 +01:00
|
|
|
.else
|
|
|
|
PLIST.noutempter= yes
|
|
|
|
.endif
|
|
|
|
|
2013-12-12 01:14:26 +01:00
|
|
|
.if ${OPSYS} == "Linux"
|
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/kde4-dbus/org.kde.powerdevil.backlighthelper.conf \
|
|
|
|
${PKG_SYSCONFDIR}/dbus-1/system.d/org.kde.powerdevil.backlighthelper.conf
|
|
|
|
.endif
|
|
|
|
|
2012-03-19 20:44:01 +01:00
|
|
|
SUBST_CLASSES+= paths
|
|
|
|
SUBST_FILES.paths= kdm/kcm/main.cpp
|
2009-10-02 21:37:19 +02:00
|
|
|
SUBST_SED.paths= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g'
|
|
|
|
SUBST_STAGE.paths= post-patch
|
|
|
|
|
2012-03-19 20:44:01 +01:00
|
|
|
SUBST_CLASSES+= qtpath
|
2009-10-02 21:37:19 +02:00
|
|
|
SUBST_FILES.qtpath= startkde.cmake
|
2011-01-23 08:55:12 +01:00
|
|
|
SUBST_VARS.qtpath= QTDIR
|
2009-10-02 21:37:19 +02:00
|
|
|
SUBST_STAGE.qtpath= post-patch
|
|
|
|
|
2012-03-19 20:44:01 +01:00
|
|
|
SUBST_CLASSES+= isocodes
|
2011-01-18 11:59:12 +01:00
|
|
|
SUBST_FILES.isocodes= kcontrol/keyboard/iso_codes.h
|
|
|
|
SUBST_SED.isocodes= -e 's,/usr/share/xml/iso-codes,${BUILDLINK_PREFIX.iso-codes}/share/xml/iso-codes,g'
|
|
|
|
SUBST_STAGE.isocodes= post-patch
|
|
|
|
|
2009-10-02 21:37:19 +02:00
|
|
|
ICONDIR= share/icons
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} == "NetBSD" && exists(/usr/include/sys/pset.h)
|
|
|
|
RT_LIB_SCHED= rt
|
|
|
|
.else
|
|
|
|
RT_LIB_SCHED= # empty
|
|
|
|
.endif
|
|
|
|
CMAKE_ARGS+= -DRT_LIB_SCHED=${RT_LIB_SCHED}
|
2011-03-06 17:04:32 +01:00
|
|
|
CMAKE_ARGS+= -DWITH_Xmms:BOOL=OFF
|
2009-10-02 21:37:19 +02:00
|
|
|
|
|
|
|
# genkdmconf wont install faces if using destdir so do it ourselves
|
|
|
|
INSTALLATION_DIRS+= share/kde/apps/kdm/faces
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/kdm/kfrontend/pics/default1.png \
|
|
|
|
${DESTDIR}${PREFIX}/share/kde/apps/kdm/faces/.default.face.icon
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/kdm/kfrontend/pics/root1.png \
|
|
|
|
${DESTDIR}${PREFIX}/share/kde/apps/kdm/faces/root.face.icon
|
|
|
|
${INSTALL_DATA} ${DISTDIR}/NetBSD-flag-1.0.png \
|
|
|
|
${DESTDIR}${PREFIX}/${ICONDIR}/NetBSD-flag.png
|
|
|
|
${INSTALL_DATA} ${DISTDIR}/Daemon.png ${DESTDIR}${PREFIX}/${ICONDIR}
|
|
|
|
${INSTALL_DATA} ${DISTDIR}/Daemon.README \
|
|
|
|
${DESTDIR}${PREFIX}/share/doc/kde/HTML/en/kdm
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
|
|
@# NetBSD Advertisement O:-)
|
|
|
|
cd ${DESTDIR}${PREFIX}/share/kde/config/kdm; \
|
|
|
|
${SED} -e 's|^\(LogoPixmap\)=.*|\1=${PREFIX}/${ICONDIR}/NetBSD-flag.png|' \
|
|
|
|
kdmrc > ${WRKDIR}/kdmrc.ad; \
|
|
|
|
${CP} -f ${WRKDIR}/kdmrc.ad kdmrc
|
|
|
|
.endif
|
2016-02-14 05:18:40 +01:00
|
|
|
${RM} ${DESTDIR}${PREFIX}/share/icons/oxygen/*/mimetypes/fonts-package.png
|
2009-10-02 21:37:19 +02:00
|
|
|
|
2013-06-23 00:39:10 +02:00
|
|
|
CFLAGS.SunOS+= -D__EXTENSIONS__ -D__uint16_t=uint16_t
|
|
|
|
LDFLAGS.SunOS+= -lsocket
|
|
|
|
|
2009-10-02 21:37:19 +02:00
|
|
|
BUILDLINK_DEPMETHOD.qt4-tools= full
|
|
|
|
.include "../../meta-pkgs/kde4/kde4.mk"
|
|
|
|
|
|
|
|
.include "../../lang/python/application.mk"
|
|
|
|
.include "../../lang/python/extension.mk"
|
|
|
|
.include "../../devel/libusb/buildlink3.mk"
|
2013-04-03 12:51:43 +02:00
|
|
|
.include "../../devel/qjson/buildlink3.mk"
|
2015-10-08 12:08:03 +02:00
|
|
|
.include "../../graphics/MesaLib/buildlink3.mk"
|
|
|
|
.if ${X11_TYPE} == "modular" && !empty(MESALIB_SUPPORTS_EGL:M[yY][eE][sS])
|
|
|
|
PLIST.gles= yes
|
|
|
|
.elif exists(${X11BASE:Q}/include/GLES2/gl2.h)
|
|
|
|
PLIST.gles= yes
|
|
|
|
.endif
|
2009-10-02 21:37:19 +02:00
|
|
|
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
|
|
|
|
.include "../../graphics/qimageblitz/buildlink3.mk"
|
2009-11-21 21:13:27 +01:00
|
|
|
.include "../../security/polkit-qt/buildlink3.mk"
|
2009-10-02 21:37:19 +02:00
|
|
|
# not yet - causes kdm logins to fail, presumably because
|
|
|
|
# I don't know how consolekit works
|
|
|
|
#.include "../../sysutils/consolekit/buildlink3.mk"
|
2012-03-19 20:44:01 +01:00
|
|
|
.include "../../sysutils/pciutils/buildlink3.mk"
|
2010-12-06 12:43:38 +01:00
|
|
|
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
|
2011-01-18 11:59:12 +01:00
|
|
|
.include "../../textproc/iso-codes/buildlink3.mk"
|
2014-11-13 11:53:49 +01:00
|
|
|
.include "../../math/qalculate/buildlink3.mk"
|
2013-04-03 12:51:43 +02:00
|
|
|
.include "../../misc/kdepimlibs4/buildlink3.mk"
|
2014-11-13 11:53:49 +01:00
|
|
|
#.include "../../misc/nepomuk-core/buildlink3.mk"
|
2012-03-19 20:44:01 +01:00
|
|
|
.include "../../multimedia/phonon/buildlink3.mk"
|
|
|
|
.include "../../x11/py-kde4/buildlink3.mk"
|
2016-05-08 12:50:44 +02:00
|
|
|
.include "../../x11/libkactivities4/buildlink3.mk"
|
2009-10-02 21:37:19 +02:00
|
|
|
.include "../../x11/kdelibs4/buildlink3.mk"
|
|
|
|
.include "../../x11/libxklavier/buildlink3.mk"
|
|
|
|
.include "../../x11/libXcomposite/buildlink3.mk"
|
|
|
|
.include "../../x11/libXdamage/buildlink3.mk"
|
|
|
|
.include "../../x11/libXi/buildlink3.mk"
|
|
|
|
.include "../../x11/libXres/buildlink3.mk"
|
|
|
|
.include "../../x11/libXxf86misc/buildlink3.mk"
|
|
|
|
.include "../../x11/libXScrnSaver/buildlink3.mk"
|
2013-04-03 12:51:43 +02:00
|
|
|
.include "../../x11/xcb-util-image/buildlink3.mk"
|
2013-11-07 14:35:56 +01:00
|
|
|
.include "../../x11/xcb-util-keysyms/buildlink3.mk"
|
2013-04-03 12:51:43 +02:00
|
|
|
.include "../../x11/xcb-util-renderutil/buildlink3.mk"
|
2009-10-02 21:37:19 +02:00
|
|
|
|
|
|
|
.include "../../mk/pam.buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|