Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/motif.mk
# handle dependency on motif | # handle dependency on motif | ||||
# | # | ||||
# Feature: motif | # Feature: motif | ||||
# Usage: USES=motif | # Usage: USES=motif | ||||
# | # | ||||
# If WANT_LESSTIF is defined in user make.conf then lesstif will be used | # If WANT_LESSTIF is defined in user make.conf then lesstif will be used | ||||
# instead of open-motif | # instead of open-motif | ||||
# | # | ||||
# MAINTAINER: ports@FreeBSD.org | # MAINTAINER: ports@FreeBSD.org | ||||
.if !defined(_INCLUDE_USES_MOTIF_MK) | .if !defined(_INCLUDE_USES_MOTIF_MK) | ||||
_INCLUDE_USES_MOTIF_MK= yes | _INCLUDE_USES_MOTIF_MK= yes | ||||
.if !empty(motif_ARGS) | . if !empty(motif_ARGS) | ||||
IGNORE= USES=motif takes no arguments | IGNORE= USES=motif takes no arguments | ||||
.endif | . endif | ||||
.if defined(WANT_LESSTIF) | . if defined(WANT_LESSTIF) | ||||
LIB_DEPENDS+= libXm.so:x11-toolkits/lesstif | LIB_DEPENDS+= libXm.so:x11-toolkits/lesstif | ||||
.else | . else | ||||
USE_XORG+= xpm | USE_XORG+= xpm | ||||
LIB_DEPENDS+= libXm.so.4:x11-toolkits/open-motif | LIB_DEPENDS+= libXm.so.4:x11-toolkits/open-motif | ||||
.endif | . endif | ||||
MOTIFLIB?= -L${LOCALBASE}/lib -lXm | MOTIFLIB?= -L${LOCALBASE}/lib -lXm | ||||
MAKE_ENV+= MOTIFLIB="${MOTIFLIB}" | MAKE_ENV+= MOTIFLIB="${MOTIFLIB}" | ||||
# We only need to include xorg.mk if we want USE_XORG modules | # We only need to include xorg.mk if we want USE_XORG modules | ||||
.if defined(USE_XORG) && !empty(USE_XORG) | . if defined(USE_XORG) && !empty(USE_XORG) | ||||
.include "${USESDIR}/xorg.mk" | .include "${USESDIR}/xorg.mk" | ||||
.endif | . endif | ||||
.endif | .endif |