[Midnightbsd-cvs] mports: mports/Mk: Add bsd.kde4.mk and bsd.xfce.mk for their respective

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Wed Sep 24 22:48:43 EDT 2008


Log Message:
-----------
Add bsd.kde4.mk and bsd.xfce.mk for their respective environments.

Add them to bsd.mport.mk and remove qmail options as we don't do qmail.

Modified Files:
--------------
    mports/Mk:
        bsd.mport.mk (r1.115 -> r1.116)

Added Files:
-----------
    mports/Mk:
        bsd.kde4.mk (r1.1)
        bsd.xfce.mk (r1.1)

-------------- next part --------------
--- /dev/null
+++ Mk/bsd.kde4.mk
@@ -0,0 +1,135 @@
+# $MidnightBSD: mports/Mk/bsd.kde4.mk,v 1.1 2008/09/25 02:48:42 laffer1 Exp $
+#
+
+.if !defined(_POSTMKINCLUDED) && !defined(Kde_Pre_Include)
+
+# Please make sure all changes to this file are past through the maintainer.
+# Do not commit them yourself (unless of course you're the Port's Wraith ;).
+Kde_Pre_Include=	bsd.kde4.mk
+Kde_Include_MAINTAINER=	ports at MidnightBSD.org
+
+#
+# This file contains some variable definitions that are supposed to
+# make your life easier when dealing with ports related to the KDE4
+# desktop environment. It's automatically included when USE_KDE4
+# is defined in the ports' makefile.
+#
+# KDE4 related ports can use this as follows:
+#
+# USE_KDE4=	kdehier kdeprefix kdelibs
+# USE_QT_VER=	4
+# QT_COMPONENTS=corelib #set additional qt4 components here
+#
+# .include <bsd.port.mk>
+#
+# Available KDE4 components are:
+#
+# akonadi	- Akonadi PIM storage service
+# automoc4	- automoc4 tool
+# kdebase	- Basic KDE applications (Konqueror, Dolphin)
+# kdehier	- Provides common KDE directories
+# kdelibs	- The base set of KDE4 libraries
+# kdeprefix	- If set, port will be installed into ${KDE4_PREFIX} instead of ${LOCALBASE}
+# pimlibs	- KDE4 PIM libraries
+# runtime	- More KDE applications
+# sharedmime	- share-mime-info wrapper for KDE4 ports
+# workspace	- More KDE applications (Plasma, kwin, etc.)
+#
+# These read-only variables can be used in port Makefile:
+#
+# MASTER_SITE_KDE_kde
+#		- MASTER_SITE_KDE_kde is equivalent to MASTER_SITE_KDE
+#		with :kde tag. It could be used when port needs multiple
+#		distfiles from different sites. See for details porters-handbook:
+#		http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/makefile-distfiles.html
+# KDE4_PREFIX	- The place where KDE4 ports live. Currently it is {LOCALBASE}/kde4,
+#		but this could be changed in a future.
+#
+
+KDE4_VERSION=		4.1.1
+
+#
+# KDE4 is installed into its own prefix to not conflict with KDE3
+#
+KDE4_PREFIX?=		${LOCALBASE}/kde4
+
+#
+# Tagged MASTER_SITE_KDE
+#
+kmaster=		${MASTER_SITE_KDE:S@%/@%/:kde at g}
+.if !defined(MASTER_SITE_SUBDIR)
+MASTER_SITE_KDE_kde=	${kmaster:S@%SUBDIR%/@@g}
+.else
+ksub=${MASTER_SITE_SUBDIR}
+MASTER_SITE_KDE_kde=	${kmaster:S@%SUBDIR%/@${ksub}/@g}
+.endif # !defined(MASTER_SITE_SUBDIR)
+
+#
+# KDE4 modules
+#
+_USE_KDE4_ALL=			akonadi automoc4 kdebase kdehier kdelibs kdeprefix \
+				pimlibs runtime sharedmime workspace
+
+akonadi_LIB_DEPENDS=		akonadiprotocolinternals.1:${PORTSDIR}/databases/akonadi
+
+automoc4_BUILD_DEPENDS=		${KDE4_PREFIX}/bin/automoc4:${PORTSDIR}/devel/automoc4
+
+kdebase_LIB_DEPENDS=		konq.7:${PORTSDIR}/x11/kdebase4
+
+kdehier_RUN_DEPENDS=		kdehier4>=1:${PORTSDIR}/misc/kdehier4
+
+kdelibs_LIB_DEPENDS=		kimproxy.5:${PORTSDIR}/x11/kdelibs4
+
+kdeprefix_PREFIX=		${KDE4_PREFIX}
+
+pimlibs_LIB_DEPENDS=		kpimutils.5:${PORTSDIR}/deskutils/kdepimlibs4
+
+runtime_BUILD_DEPENDS=		${KDE4_PREFIX}/bin/kdebugdialog:${PORTSDIR}/x11/kdebase4-runtime
+runtime_RUN_DEPENDS=		${KDE4_PREFIX}/bin/kdebugdialog:${PORTSDIR}/x11/kdebase4-runtime
+
+sharedmime_BUILD_DEPENDS=	kde4-shared-mime-info>=1:${PORTSDIR}/misc/kde4-shared-mime-info
+sharedmime_RUN_DEPENDS=		kde4-shared-mime-info>=1:${PORTSDIR}/misc/kde4-shared-mime-info
+
+workspace_LIB_DEPENDS=		kscreensaver.5:${PORTSDIR}/x11/kdebase4-workspace
+
+.endif
+
+.if defined(_POSTMKINCLUDED) && !defined(Kde_Post_Include)
+
+Kde_Post_Include=	bsd.kde4.mk
+
+.for component in ${USE_KDE4}
+. if ${_USE_KDE4_ALL:M${component}}!=""
+BUILD_DEPENDS+=	${${component}_BUILD_DEPENDS}
+LIB_DEPENDS+=	${${component}_LIB_DEPENDS}
+RUN_DEPENDS+=	${${component}_RUN_DEPENDS}
+.  if defined(${component}_PREFIX)
+.   if ${.MAKEFLAGS:MPREFIX=*}==""
+PREFIX=	${${component}_PREFIX}
+.    if ${KDE4_PREFIX} != ${LOCALBASE}
+NO_MTREE=	yes
+.    endif
+.   endif
+.  endif
+. else
+IGNORE=	cannot install: Unknown component ${component}
+. endif
+.endfor
+
+#
+# Common build related stuff for kde4 ports. It's not intended for usage
+# in KDE4-dependent ports
+#
+.if defined(KDE4_BUILDENV)
+USE_CMAKE=	yes
+CMAKE_DEBUG=	yes
+CMAKE_VERBOSE=	yes
+
+USE_LDCONFIG=	${KDE4_PREFIX}/lib ${KDE4_PREFIX}/lib/kde4
+
+WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}/build
+CMAKE_SOURCE_PATH=	..
+
+.endif # KDE4_BUILDENV
+
+.endif
Index: bsd.mport.mk
===================================================================
RCS file: /home/cvs/mports/Mk/bsd.mport.mk,v
retrieving revision 1.115
retrieving revision 1.116
diff -L Mk/bsd.mport.mk -L Mk/bsd.mport.mk -u -r1.115 -r1.116
--- Mk/bsd.mport.mk
+++ Mk/bsd.mport.mk
@@ -1405,14 +1405,18 @@
 .include "${PORTSDIR}/Mk/bsd.gstreamer.mk"
 .endif
 
-.if defined(USE_QMAIL) || defined(USE_QMAIL_RUN) || defined(USE_QMAIL_BUILD) || defined(WANT_QMAIL)
-.include "${PORTSDIR}/Mk/bsd.mail.mk"
-.endif
-
 .if defined(USE_SDL) || defined(WANT_SDL)
 .include "${PORTSDIR}/Mk/bsd.sdl.mk"
 .endif
 
+.if defined(USE_XFCE)
+.include "${PORTSDIR}/Mk/bsd.xfce.mk"
+.endif
+
+.if defined(USE_KDE4) || defined(KDE4_BUILDENV)
+.include "${PORTSDIR}/Mk/bsd.kde4.mk"
+.endif
+
 # These do some path checks if DESTDIR is set correctly.
 # You can force skipping these test by defining IGNORE_PATH_CHECKS
 .if !defined(IGNORE_PATH_CHECKS)
--- /dev/null
+++ Mk/bsd.xfce.mk
@@ -0,0 +1,66 @@
+# $MidnightBSD: mports/Mk/bsd.xfce.mk,v 1.1 2008/09/25 02:48:42 laffer1 Exp $
+#
+
+.if !defined(_POSTMKINCLUDED) && !defined(Xfce_Pre_Include)
+
+Xfce_Pre_Include=		bsd.xfce.mk
+Xfce_Include_MAINTAINER=	ports at MidnightBSD.org
+
+# This file contains some variable definitions that are supposed to
+# make your life easier when dealing with ports related to the Xfce
+# desktop environment. It's automatically included when USE_XFCE
+# is defined in the ports' makefile.
+
+_USE_XFCE_ALL=			configenv libexo libgui libutil libmcs mcsmanager panel \
+				thunar wm xfdev
+
+MASTER_SITE_SUBDIR?=		xfce-4.4.2
+
+configenv_CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib"
+
+libexo_BUILD_DEPENDS=		libexo>=0.3.4:${PORTSDIR}/x11/libexo
+libexo_RUN_DEPENDS=		libexo>=0.3.4:${PORTSDIR}/x11/libexo
+
+libgui_BUILD_DEPENDS=		libxfce4gui>=4.4.2:${PORTSDIR}/x11-toolkits/libxfce4gui
+libgui_RUN_DEPENDS=		libxfce4gui>=4.4.2:${PORTSDIR}/x11-toolkits/libxfce4gui
+
+libutil_BUILD_DEPENDS=		libxfce4util>=4.4.2:${PORTSDIR}/x11/libxfce4util
+libutil_RUN_DEPENDS=		libxfce4util>=4.4.2:${PORTSDIR}/x11/libxfce4util
+
+libmcs_BUILD_DEPENDS=		libxfce4mcs>=4.4.2:${PORTSDIR}/x11/libxfce4mcs
+libmcs_RUN_DEPENDS=		libxfce4mcs>=4.4.2:${PORTSDIR}/x11/libxfce4mcs
+
+mcsmanager_BUILD_DEPENDS=	xfce4-mcs-manager>=4.4.2:${PORTSDIR}/sysutils/xfce4-mcs-manager
+mcsmanager_RUN_DEPENDS=		xfce4-mcs-manager>=4.4.2:${PORTSDIR}/sysutils/xfce4-mcs-manager
+
+panel_BUILD_DEPENDS=		xfce4-panel>=4.4.2:${PORTSDIR}/x11-wm/xfce4-panel
+panel_RUN_DEPENDS=		xfce4-panel>=4.4.2:${PORTSDIR}/x11-wm/xfce4-panel
+
+thunar_BUILD_DEPENDS=		Thunar>=0.9.0:${PORTSDIR}/x11-fm/thunar
+thunar_RUN_DEPENDS=		Thunar>=0.9.0:${PORTSDIR}/x11-fm/thunar
+
+wm_BUILD_DEPENDS=		xfce4-wm>=4.4.2:${PORTSDIR}/x11-wm/xfce4-wm
+wm_RUN_DEPENDS=			xfce4-wm>=4.4.2:${PORTSDIR}/x11-wm/xfce4-wm
+
+xfdev_RUN_DEPENDS=		xfce4-dev-tools:${PORTSDIR}/devel/xfce4-dev-tools
+
+.endif
+
+.if defined(_POSTMKINCLUDED) && !defined(Xfce_Post_Include)
+
+Xfce_Post_Include=		bsd.xfce.mk
+
+.for component in ${USE_XFCE}
+BUILD_DEPENDS+=	${${component}_BUILD_DEPENDS}
+LIB_DEPENDS+=	${${component}_LIB_DEPENDS}
+RUN_DEPENDS+=	${${component}_RUN_DEPENDS}
+CONFIGURE_ENV+=	${${component}_CONFIGURE_ENV}
+.endfor
+
+.for component in ${USE_XFCE}
+. if ${_USE_XFCE_ALL:M${component}}==""
+IGNORE=	cannot install: Unknown component ${component}
+. endif
+.endfor
+
+.endif


More information about the Midnightbsd-cvs mailing list