mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-30 10:38:37 +00:00
New USES=motif that will handle the open-motif dependency.
If a user want to enforce lesstif in place of open-motif then the usual WANT_LESSTIF in make.conf will be respected
This commit is contained in:
parent
4f48d08c11
commit
9b17397fe0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=322576
30
Mk/Uses/motif.mk
Normal file
30
Mk/Uses/motif.mk
Normal file
@ -0,0 +1,30 @@
|
||||
# $FreeBSD$
|
||||
#
|
||||
# handle dependency on motif
|
||||
#
|
||||
# MAINTAINER: portmgr@FreeBSD.org
|
||||
#
|
||||
# Feature: motif
|
||||
# Usage: USES=motif
|
||||
#
|
||||
# If WANT_LESSTIF is defined in user make.conf then lesstif will be used
|
||||
# instead of open-motif
|
||||
|
||||
.if !defined(_INCLUDE_USES_MOTIF_MK)
|
||||
_INCLUDE_USES_MOTIF_MK= yes
|
||||
|
||||
.if defined(motif_ARGS)
|
||||
IGNORE= USES=motif takes no arguments
|
||||
.endif
|
||||
|
||||
.if defined(WANT_LESSTIF)
|
||||
LIB_DEPENDS+= libXm.so:${PORTSDIR}/x11-toolkits/lesstif
|
||||
.else
|
||||
USE_XORG+= xpm
|
||||
LIB_DEPENDS+= libXm.so.4:${PORTSDIR}/x11-toolkits/open-motif
|
||||
.endif
|
||||
|
||||
MOTIFLIB?= -L${LOCALBASE}/lib -lXm -lXp
|
||||
MAKE_ENV+= MOTIFLIB="${MOTIFLIB}"
|
||||
|
||||
.endif
|
Loading…
Reference in New Issue
Block a user