Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/mate.mk
Show All 14 Lines | |||||
# | # | ||||
# MAINTAINER: gnome@FreeBSD.org | # MAINTAINER: gnome@FreeBSD.org | ||||
.if !defined(_INCLUDE_USES_MATE_MK) | .if !defined(_INCLUDE_USES_MATE_MK) | ||||
_INCLUDE_USES_MATE_MK= yes | _INCLUDE_USES_MATE_MK= yes | ||||
_USES_POST+= mate | _USES_POST+= mate | ||||
.if !empty(mate_ARGS) | . if !empty(mate_ARGS) | ||||
IGNORE= USES=mate takes no arguments | IGNORE= USES=mate takes no arguments | ||||
.endif | . endif | ||||
# This section defines possible names of MATE components and all information | # This section defines possible names of MATE components and all information | ||||
# necessary for ports to use those components. | # necessary for ports to use those components. | ||||
# Ports can use this as follows: | # Ports can use this as follows: | ||||
# | # | ||||
# USE_MATE= caja common desktop | # USE_MATE= caja common desktop | ||||
# | # | ||||
▲ Show 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | |||||
intltool_DETECT= ${LOCALBASE}/bin/intltool-extract | intltool_DETECT= ${LOCALBASE}/bin/intltool-extract | ||||
intltool_BUILD_DEPENDS= ${intltool_DETECT}:textproc/intltool | intltool_BUILD_DEPENDS= ${intltool_DETECT}:textproc/intltool | ||||
intlhack_PRE_PATCH= ${FIND} ${WRKSRC} -name "intltool-merge.in" | ${XARGS} ${REINPLACE_CMD} -e \ | intlhack_PRE_PATCH= ${FIND} ${WRKSRC} -name "intltool-merge.in" | ${XARGS} ${REINPLACE_CMD} -e \ | ||||
's|mkdir $$lang or|mkdir $$lang, 0777 or| ; \ | 's|mkdir $$lang or|mkdir $$lang, 0777 or| ; \ | ||||
s|^push @INC, "/.*|push @INC, "${LOCALBASE}/share/intltool";| ; \ | s|^push @INC, "/.*|push @INC, "${LOCALBASE}/share/intltool";| ; \ | ||||
s|/usr/bin/iconv|${LOCALBASE}/bin/iconv|g ; \ | s|/usr/bin/iconv|${LOCALBASE}/bin/iconv|g ; \ | ||||
s|unpack *[(]'"'"'U\*'"'"'|unpack ('"'"'C*'"'"'|' | s|unpack *[(]'"'"'U\*'"'"'|unpack ('"'"'C*'"'"'|' | ||||
.if ${USE_MATE:Mintlhack}!="" | . if ${USE_MATE:Mintlhack}!="" | ||||
USE_MATE+= intltool | USE_MATE+= intltool | ||||
.endif | . endif | ||||
libmatekbd_DETECT= ${LOCALBASE}/libdata/pkgconfig/libmatekbd.pc | libmatekbd_DETECT= ${LOCALBASE}/libdata/pkgconfig/libmatekbd.pc | ||||
libmatekbd_BUILD_DEPENDS= ${libmatekbd_DETECT}:x11/libmatekbd | libmatekbd_BUILD_DEPENDS= ${libmatekbd_DETECT}:x11/libmatekbd | ||||
libmatekbd_LIB_DEPENDS= libmatekbd.so:x11/libmatekbd | libmatekbd_LIB_DEPENDS= libmatekbd.so:x11/libmatekbd | ||||
libmatekbd_RUN_DEPENDS= ${libmatekbd_DETECT}:x11/libmatekbd | libmatekbd_RUN_DEPENDS= ${libmatekbd_DETECT}:x11/libmatekbd | ||||
libmateweather_DETECT= ${LOCALBASE}/libdata/pkgconfig/mateweather.pc | libmateweather_DETECT= ${LOCALBASE}/libdata/pkgconfig/mateweather.pc | ||||
libmateweather_BUILD_DEPENDS= ${libmateweather_DETECT}:net/libmateweather | libmateweather_BUILD_DEPENDS= ${libmateweather_DETECT}:net/libmateweather | ||||
Show All 37 Lines | |||||
session_RUN_DEPENDS= ${session_DETECT}:x11/mate-session-manager | session_RUN_DEPENDS= ${session_DETECT}:x11/mate-session-manager | ||||
settingsdaemon_DETECT= ${LOCALBASE}/libdata/pkgconfig/mate-settings-daemon.pc | settingsdaemon_DETECT= ${LOCALBASE}/libdata/pkgconfig/mate-settings-daemon.pc | ||||
settingsdaemon_BUILD_DEPENDS= ${settingsdaemon_DETECT}:sysutils/mate-settings-daemon | settingsdaemon_BUILD_DEPENDS= ${settingsdaemon_DETECT}:sysutils/mate-settings-daemon | ||||
settingsdaemon_RUN_DEPENDS= ${settingsdaemon_DETECT}:sysutils/mate-settings-daemon | settingsdaemon_RUN_DEPENDS= ${settingsdaemon_DETECT}:sysutils/mate-settings-daemon | ||||
# End component definition section | # End component definition section | ||||
.if defined(USE_MATE) | . if defined(USE_MATE) | ||||
# Comparing between USE_MATE and _USE_MATE_ALL to make sure the component | # 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. | # exists in _USE_MATE_ALL. If it does not exist then give an error about it. | ||||
#. for component in ${USE_MATE:O:u:C/^([^:]+).*/\1/} | #. for component in ${USE_MATE:O:u:C/^([^:]+).*/\1/} | ||||
. for component in ${USE_MATE:C/^([^:]+).*/\1/} | . for component in ${USE_MATE:C/^([^:]+).*/\1/} | ||||
#. for component in ${USE_GNOME:C/^([^:]+).*/\1/} | #. for component in ${USE_GNOME:C/^([^:]+).*/\1/} | ||||
. if ${_USE_MATE_ALL:M${component}}=="" | . if ${_USE_MATE_ALL:M${component}}=="" | ||||
.error cannot install: Unknown component USE_MATE=${component} | .error cannot install: Unknown component USE_MATE=${component} | ||||
. endif | . endif | ||||
. endfor | . endfor | ||||
. for component in ${USE_MATE:O:u:C/^([^:]+).*/\1/} | . for component in ${USE_MATE:O:u:C/^([^:]+).*/\1/} | ||||
. if defined(${component}_PATCH_DEPENDS) | . if defined(${component}_PATCH_DEPENDS) | ||||
PATCH_DEPENDS+= ${${component}_PATCH_DEPENDS} | PATCH_DEPENDS+= ${${component}_PATCH_DEPENDS} | ||||
. endif | . endif | ||||
. if defined(${component}_DETECT) | . if defined(${component}_DETECT) | ||||
. if ${USE_MATE:M${component}\:build}!="" | . if ${USE_MATE:M${component}\:build}!="" | ||||
BUILD_DEPENDS+= ${${component}_BUILD_DEPENDS} | BUILD_DEPENDS+= ${${component}_BUILD_DEPENDS} | ||||
. elif ${USE_MATE:M${component}\:run}!="" | . elif ${USE_MATE:M${component}\:run}!="" | ||||
RUN_DEPENDS+= ${${component}_RUN_DEPENDS} | RUN_DEPENDS+= ${${component}_RUN_DEPENDS} | ||||
. else | . else | ||||
. if defined(${component}_LIB_DEPENDS) | . if defined(${component}_LIB_DEPENDS) | ||||
LIB_DEPENDS+= ${${component}_LIB_DEPENDS} | LIB_DEPENDS+= ${${component}_LIB_DEPENDS} | ||||
. else | . else | ||||
BUILD_DEPENDS+= ${${component}_BUILD_DEPENDS} | BUILD_DEPENDS+= ${${component}_BUILD_DEPENDS} | ||||
RUN_DEPENDS+= ${${component}_RUN_DEPENDS} | RUN_DEPENDS+= ${${component}_RUN_DEPENDS} | ||||
. endif | . endif | ||||
. endif | . endif | ||||
. endif | . endif | ||||
. if defined(${component}_CONFIGURE_TARGET) | . if defined(${component}_CONFIGURE_TARGET) | ||||
CONFIGURE_ARGS+=${${component}_CONFIGURE_ARGS} | CONFIGURE_ARGS+=${${component}_CONFIGURE_ARGS} | ||||
. endif | . endif | ||||
. if defined(${component}_CONFIGURE_ENV) | . if defined(${component}_CONFIGURE_ENV) | ||||
CONFIGURE_ENV+= ${${component}_CONFIGURE_ENV} | CONFIGURE_ENV+= ${${component}_CONFIGURE_ENV} | ||||
. endif | . endif | ||||
. if defined(${component}_MAKE_ENV) | . if defined(${component}_MAKE_ENV) | ||||
MAKE_ENV+= ${${component}_MAKE_ENV} | MAKE_ENV+= ${${component}_MAKE_ENV} | ||||
. endif | . endif | ||||
. if !defined(CONFIGURE_TARGET) && defined(${component}_CONFIGURE_TARGET) | . if !defined(CONFIGURE_TARGET) && defined(${component}_CONFIGURE_TARGET) | ||||
CONFIGURE_TARGET= ${${component}_CONFIGURE_TARGET} | CONFIGURE_TARGET= ${${component}_CONFIGURE_TARGET} | ||||
. endif | . endif | ||||
. if defined(${component}_PRE_PATCH) | . if defined(${component}_PRE_PATCH) | ||||
MATE_PRE_PATCH+= ; ${${component}_PRE_PATCH} | MATE_PRE_PATCH+= ; ${${component}_PRE_PATCH} | ||||
. endif | . endif | ||||
. endfor | . endfor | ||||
.endif # USE_MATE check | . endif # USE_MATE check | ||||
.endif | .endif | ||||
# End of optional part. | # End of optional part. | ||||
.if defined(_POSTMKINCLUDED) && !defined(_INCLUDE_USES_MATE_POST_MK) | .if defined(_POSTMKINCLUDED) && !defined(_INCLUDE_USES_MATE_POST_MK) | ||||
_INCLUDE_USES_MATE_POST_MK= yes | _INCLUDE_USES_MATE_POST_MK= yes | ||||
.if ${USE_MATE:Mautogen}!="" | . if ${USE_MATE:Mautogen}!="" | ||||
CONFIGURE_ENV+= NOCONFIGURE=yes | CONFIGURE_ENV+= NOCONFIGURE=yes | ||||
_USES_configure+= 295:mate-pre-configure | _USES_configure+= 295:mate-pre-configure | ||||
mate-pre-configure: | mate-pre-configure: | ||||
@(cd ${CONFIGURE_WRKSRC} ; ${SETENV} ${CONFIGURE_ENV} ./autogen.sh) | @(cd ${CONFIGURE_WRKSRC} ; ${SETENV} ${CONFIGURE_ENV} ./autogen.sh) | ||||
.endif | . endif | ||||
.if defined(MATE_PRE_PATCH) | . if defined(MATE_PRE_PATCH) | ||||
_USES_configure+= 445:mate-pre-configure-script | _USES_configure+= 445:mate-pre-configure-script | ||||
mate-pre-configure-script: | mate-pre-configure-script: | ||||
@${MATE_PRE_PATCH:C/^;//1} | @${MATE_PRE_PATCH:C/^;//1} | ||||
.endif | . endif | ||||
.endif | .endif | ||||
# End of use part. | # End of use part. |