Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/lxqt.mk
Show All 12 Lines | |||||
# lxqt - LXQt core library | # lxqt - LXQt core library | ||||
# qtxdg - Qt implementation of freedesktop.org xdg specs | # qtxdg - Qt implementation of freedesktop.org xdg specs | ||||
# | # | ||||
# MAINTAINER: ports@FreeBSD.org | # MAINTAINER: ports@FreeBSD.org | ||||
.if !defined(_INCLUDE_USES_LXQT_MK) | .if !defined(_INCLUDE_USES_LXQT_MK) | ||||
_INCLUDE_USES_LXQT_MK= yes | _INCLUDE_USES_LXQT_MK= yes | ||||
.if !empty(lxqt_ARGS) | . if !empty(lxqt_ARGS) | ||||
IGNORE= Incorrect 'USES+=lxqt:${lxqt_ARGS} takes no arguments | IGNORE= Incorrect 'USES+=lxqt:${lxqt_ARGS} takes no arguments | ||||
.endif | . endif | ||||
_LXQT_PROJECT= ${DISTNAME:S/-${DISTVERSION}//:tl} | _LXQT_PROJECT= ${DISTNAME:S/-${DISTVERSION}//:tl} | ||||
MASTER_SITE_LXQT+= \ | MASTER_SITE_LXQT+= \ | ||||
https://github.com/lxqt/%SUBDIR%/releases/download/${PORTVERSION}/ \ | https://github.com/lxqt/%SUBDIR%/releases/download/${PORTVERSION}/ \ | ||||
https://downloads.lxqt.org/downloads/%SUBDIR%/${PORTVERSION}/ | https://downloads.lxqt.org/downloads/%SUBDIR%/${PORTVERSION}/ | ||||
MASTER_SITE_LXQT_SUBDIR= ${_LXQT_PROJECT} | MASTER_SITE_LXQT_SUBDIR= ${_LXQT_PROJECT} | ||||
Show All 22 Lines | |||||
libfmqt_LIB_DEPENDS= libfm-qt.so:x11/libfm-qt | libfmqt_LIB_DEPENDS= libfm-qt.so:x11/libfm-qt | ||||
lxqt_LIB_DEPENDS= liblxqt.so:devel/liblxqt | lxqt_LIB_DEPENDS= liblxqt.so:devel/liblxqt | ||||
lxqt_USE_LXQT_REQ= qtxdg | lxqt_USE_LXQT_REQ= qtxdg | ||||
qtxdg_LIB_DEPENDS= libQt5Xdg.so:devel/libqtxdg | qtxdg_LIB_DEPENDS= libQt5Xdg.so:devel/libqtxdg | ||||
.if defined(USE_LXQT) | . if defined(USE_LXQT) | ||||
# First, expand all USE_LXQT_REQ recursively. | # First, expand all USE_LXQT_REQ recursively. | ||||
.for comp in ${_USE_LXQT_ALL} | . for comp in ${_USE_LXQT_ALL} | ||||
. for subcomp in ${${comp}_USE_LXQT_REQ} | . for subcomp in ${${comp}_USE_LXQT_REQ} | ||||
${comp}_USE_LXQT_REQ+= ${${subcomp}_USE_LXQT_REQ} | ${comp}_USE_LXQT_REQ+= ${${subcomp}_USE_LXQT_REQ} | ||||
. endfor | . endfor | ||||
.endfor | . endfor | ||||
# Then, use already expanded USE_LXQT_REQ to expand USE_LXQT. | # Then, use already expanded USE_LXQT_REQ to expand USE_LXQT. | ||||
.for comp in ${USE_LXQT} | . for comp in ${USE_LXQT} | ||||
. if empty(_USE_LXQT_ALL:M${comp}) | . if empty(_USE_LXQT_ALL:M${comp}) | ||||
IGNORE= cannot install: Unknown component ${comp} | IGNORE= cannot install: Unknown component ${comp} | ||||
. else | . else | ||||
_USE_LXQT+= ${${comp}_USE_LXQT_REQ} ${comp} | _USE_LXQT+= ${${comp}_USE_LXQT_REQ} ${comp} | ||||
. endif | . endif | ||||
.endfor | . endfor | ||||
# Remove duplicate components | # Remove duplicate components | ||||
USE_LXQT= ${_USE_LXQT:O:u} | USE_LXQT= ${_USE_LXQT:O:u} | ||||
.for comp in ${USE_LXQT} | . for comp in ${USE_LXQT} | ||||
. if defined(${comp}_BUILD_DEPENDS) | . if defined(${comp}_BUILD_DEPENDS) | ||||
BUILD_DEPENDS+= ${${comp}_BUILD_DEPENDS} | BUILD_DEPENDS+= ${${comp}_BUILD_DEPENDS} | ||||
. endif | . endif | ||||
. if defined(${comp}_LIB_DEPENDS) | . if defined(${comp}_LIB_DEPENDS) | ||||
LIB_DEPENDS+= ${${comp}_LIB_DEPENDS} | LIB_DEPENDS+= ${${comp}_LIB_DEPENDS} | ||||
. endif | . endif | ||||
. if defined(${comp}_RUN_DEPENDS) | . if defined(${comp}_RUN_DEPENDS) | ||||
RUN_DEPENDS+= ${${comp}_RUN_DEPENDS} | RUN_DEPENDS+= ${${comp}_RUN_DEPENDS} | ||||
. endif | . endif | ||||
.endfor | . endfor | ||||
.endif # end of defined(USE_LXQT) | . endif # end of defined(USE_LXQT) | ||||
.endif # end of !defined(_INCLUDE_USES_LXQT_MK) | .endif # end of !defined(_INCLUDE_USES_LXQT_MK) | ||||
.if defined(_POSTMKINCLUDED) && !defined(_INCLUDE_USES_LXQT_POST_MK) | .if defined(_POSTMKINCLUDED) && !defined(_INCLUDE_USES_LXQT_POST_MK) | ||||
_INCLUDE_USES_LXQT_POST_MK= yes | _INCLUDE_USES_LXQT_POST_MK= yes | ||||
.endif | .endif |