1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/Mk/Uses/motif.mk
Baptiste Daroussin 8cea2b0147 Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched
This gives more time for tools to get updated, available in packages etc before
bothering users
2015-10-15 07:36:38 +00:00

31 lines
609 B
Makefile

# $FreeBSD$
#
# handle dependency on motif
#
# Feature: motif
# Usage: USES=motif
#
# If WANT_LESSTIF is defined in user make.conf then lesstif will be used
# instead of open-motif
#
# MAINTAINER: portmgr@FreeBSD.org
.if !defined(_INCLUDE_USES_MOTIF_MK)
_INCLUDE_USES_MOTIF_MK= yes
.if !empty(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