Skip to content

Commit

Permalink
Framework: sync with upstream
Browse files Browse the repository at this point in the history
Taken from: FreeBSD
  • Loading branch information
fichtner committed Feb 9, 2016
1 parent df0a2cf commit 507b312
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 72 deletions.
12 changes: 12 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@ in the release notes and/or placed into UPDATING.

All ports committers are allowed to commit to this file.

20160207:
AUTHOR: [email protected]

The GNOME and MATE framework activation changed. To use the frameworks
now either gnome or mate needs to be added USES.

The usage of USE_GNOME, USE_MATE, INSTALLS_ICONS and for example
GLIB_SCHEMAS stays the same.

Like with USES, the use of USE_GNOME and so after bsd.port.pre.mk
is now forbidden.

20160112:
AUTHOR: [email protected]

Expand Down
49 changes: 25 additions & 24 deletions Mk/bsd.gnome.mk → Mk/Uses/gnome.mk
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,8 @@
#
# ======================= /USERS ================================

.if !defined(_POSTMKINCLUDED) && !defined(Gnome_Pre_Include)

# Please make sure all changes to this file are passed through the maintainer.
# Do not commit them yourself (unless of course you're the Port's Wraith ;).
Gnome_Include_MAINTAINER= [email protected]
Gnome_Pre_Include= bsd.gnome.mk

# This section defines possible names of GNOME components and all information
# necessary for ports to use those components.
Expand Down Expand Up @@ -59,6 +55,16 @@ Gnome_Pre_Include= bsd.gnome.mk
# and will display correctly. This macro isn't needed
# for QT based applications, which use a different method.
#
# MAINTAINER: [email protected]

.if !defined(_INCLUDE_USES_GNOME_MK)
_INCLUDE_USES_GNOME_MK= yes

_USES_POST+= gnome

.if !empty(gnome_ARGS)
IGNORE= USES=gnome takes no arguments
.endif

# non-version specific components
_USE_GNOME_ALL= esound intlhack intltool introspection \
Expand Down Expand Up @@ -554,17 +560,6 @@ HAVE_GNOME+= ${component}
. endif
.endif

.endif
# End of optional part.

.if defined(_POSTMKINCLUDED) && !defined(Gnome_Post_Include)

Gnome_Post_Include= bsd.gnome.mk

.if !defined(Gnome_Pre_Include)
.error The Pre include part of bsd.gnome.mk part is not included. Did you forget WANT_GNOME=yes before bsd.port.pre.mk?
.endif

.if defined(USE_GNOME)
# First of all expand all USE_GNOME_IMPL recursively
. for component in ${_USE_GNOME_ALL}
Expand Down Expand Up @@ -653,14 +648,6 @@ MAKE_ENV+= GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
. endif
.endif

.if defined(GNOME_PRE_PATCH)

pre-patch: gnome-pre-patch

gnome-pre-patch:
@${GNOME_PRE_PATCH:C/^;//1}
.endif

.if defined(WANT_GNOME)
USE_GNOME?=
. if ${_USE_GNOME_SAVED}==${USE_GNOME}
Expand All @@ -676,9 +663,23 @@ RUN_DEPENDS+= ${GNOME_SUBR}:${PORTSDIR}/sysutils/gnome_subr
SUB_LIST+= GNOME_SUBR=${GNOME_SUBR}
.endif

.endif
# end of the part

.if defined(_POSTMKINCLUDED) && !defined(_INCLUDE_USES_GNOME_POST_MK)
_INCLUDE_USES_GNOME_POST_MK= yes

.if defined(GNOME_PRE_PATCH)

_USES_patch+= 290:gnome-pre-patch

gnome-pre-patch:
@${GNOME_PRE_PATCH:C/^;//1}
.endif

.if defined(GCONF_SCHEMAS) || defined(INSTALLS_OMF) || defined(INSTALLS_ICONS) \
|| defined(GLIB_SCHEMAS)
post-install: gnome-post-install
_USES_install+= 690:gnome-post-install

gnome-post-install:
. if defined(GCONF_SCHEMAS)
Expand Down
47 changes: 20 additions & 27 deletions Mk/bsd.mate.mk → Mk/Uses/mate.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,29 @@
# ex:ts=4
#
# $FreeBSD$
# $NetBSD$
# $MCom: ports-experimental/Mk/bsd.mate.mk,v 1.13 2012/09/03 17:02:31 mezz Exp $
#
# Please view me with 4 column tabs!

#######################################################
#
# *** WARNING: Disable MARCUSCOM before merge in FreeBSD!
# Please also remove this section before merging into FreeBSD.
#
#MARCUSCOM_CVS=yes

# ======================= USERS =================================
#
# There are no significant user-definable settings in here.
# This file is a framework to make it easier to create MATE ports.
#
# ======================= /USERS ================================

.if !defined(_POSTMKINCLUDED) && !defined(Mate_Pre_Include)

#
# Please make sure all changes to this file are passed through the maintainer.
# Do not commit them yourself (unless of course you're the Port's Wraith ;).
Mate_Include_MAINTAINER= [email protected]
Mate_Pre_Include= bsd.mate.mk
#
# MAINTAINER: [email protected]

.if !defined(_INCLUDE_USES_MATE_MK)
_INCLUDE_USES_MATE_MK= yes

_USES_POST+= mate

.if !empty(mate_ARGS)
IGNORE= USES=mate takes no arguments
.endif

# This section defines possible names of MATE components and all information
# necessary for ports to use those components.
Expand Down Expand Up @@ -142,13 +140,6 @@ settingsdaemon_RUN_DEPENDS= ${settingsdaemon_DETECT}:${PORTSDIR}/sysutils/mate-s

# End component definition section

.endif
# End of optional part.

.if defined(_POSTMKINCLUDED) && !defined(Mate_Post_Include)

Mate_Post_Include= bsd.mate.mk

.if defined(USE_MATE)
# Comparing between USE_MATE and _USE_MATE_ALL to make sure the component
# exists in _USE_MATE_ALL. If it does not exist then give an error about it.
Expand Down Expand Up @@ -202,27 +193,29 @@ MATE_PRE_PATCH+= ; ${${component}_PRE_PATCH}
. endfor
.endif # USE_MATE check

.endif
# End of optional part.

.if defined(_POSTMKINCLUDED) && !defined(_INCLUDE_USES_MATE_POST_MK)
_INCLUDE_USES_MATE_POST_MK= yes

.if ${USE_MATE:Mautogen}!=""

CONFIGURE_ENV+= NOCONFIGURE=yes

pre-configure: mate-pre-configure
_USES_configure+= 295:mate-pre-configure

mate-pre-configure:
@(cd ${CONFIGURE_WRKSRC} ; ${SETENV} ${CONFIGURE_ENV} ./autogen.sh)
.endif

.if defined(MATE_PRE_PATCH)

pre-configure-script: mate-pre-configure-script
_USES_configure+= 445:mate-pre-configure-script

mate-pre-configure-script:
@${MATE_PRE_PATCH:C/^;//1}
.endif

.if ${MAINTAINER}=="[email protected]"
CONFIGURE_FAIL_MESSAGE= "Please run the gnomelogalyzer, available from \"http://www.freebsd.org/gnome/gnomelogalyzer.sh\", which will diagnose the problem and suggest a solution. If - and only if - the gnomelogalyzer cannot solve the problem, report the build failure to the FreeBSD MATE team at ${MAINTAINER}, and attach (a) \"${CONFIGURE_WRKSRC}/${CONFIGURE_LOG}\", (b) the output of the failed make command, and (c) the gnomelogalyzer output. Also, it might be a good idea to provide an overview of all packages installed on your system (i.e. an \`ls ${PKG_DBDIR}\`). Put your attachment up on any website, copy-and-paste into http://freebsd-gnome.pastebin.com, or use send-pr(1) with the attachment. Try to avoid sending any attachments to the mailing list (${MAINTAINER}), because attachments sent to FreeBSD mailing lists are usually discarded by the mailing list software."
.endif
.endif
# End of use part.
2 changes: 1 addition & 1 deletion Mk/bsd.kde4.mk
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ KDE4_WORKSPACE_VERSION= 4.11.14
KDE4_BRANCH?= stable
KTP_VERSION?= 0.8.0
KTP_BRANCH?= stable
CALLIGRA_VERSION?= 2.9.10
CALLIGRA_VERSION?= 2.9.11
CALLIGRA_BRANCH?= stable
KDEVELOP_VERSION?= 4.7.1
KDEVELOP_BRANCH?= stable
Expand Down
22 changes: 2 additions & 20 deletions Mk/bsd.port.mk
Original file line number Diff line number Diff line change
Expand Up @@ -388,16 +388,6 @@ FreeBSD_MAINTAINER= [email protected]
# USE_GECKO - If set, this port uses the Gecko/Mozilla product.
# See bsd.gecko.mk for more details.
##
# USE_GNOME - A list of the Gnome dependencies the port has (e.g.,
# glib12, gtk12). Implies that the port needs Gnome.
# Implies inclusion of bsd.gnome.mk. See bsd.gnome.mk
# or http://www.FreeBSD.org/gnome/docs/porting.html
# for more details.
##
# USE_MATE - A list of the MATE dependencies the port has. Implies
# that the port needs MATE. Implies inclusion of
# bsd.mate.mk. See bsd.mate.mk for more details.
##
# USE_WX - If set, this port uses the WxWidgets library and related
# components. See bsd.wx.mk for more details.
##
Expand Down Expand Up @@ -1398,11 +1388,11 @@ PKGCOMPATDIR?= ${LOCALBASE}/lib/compat/pkg
.endif

.if defined(WANT_GNOME) || defined(USE_GNOME) || defined(INSTALLS_ICONS)
.include "${PORTSDIR}/Mk/bsd.gnome.mk"
USES+= gnome
.endif

.if defined(USE_MATE)
.include "${PORTSDIR}/Mk/bsd.mate.mk"
USES+= mate
.endif

.if defined(WANT_WX) || defined(USE_WX) || defined(USE_WX_NOT)
Expand Down Expand Up @@ -1913,14 +1903,6 @@ _FORCE_POST_PATTERNS= rmdir kldxref mkfontscale mkfontdir fc-cache \
.include "${PORTSDIR}/Mk/bsd.gecko.mk"
.endif

.if defined(WANT_GNOME) || defined(USE_GNOME)
.include "${PORTSDIR}/Mk/bsd.gnome.mk"
.endif

.if defined(USE_MATE)
.include "${PORTSDIR}/Mk/bsd.mate.mk"
.endif

.if defined(USE_KDE4)
.include "${PORTSDIR}/Mk/bsd.kde4.mk"
.endif
Expand Down

0 comments on commit 507b312

Please sign in to comment.