Sync Mk with ports
[dports.git] / Mk / Uses / motif.mk
1 # $FreeBSD$
2 #
3 # handle dependency on motif
4 #
5 # Feature:      motif
6 # Usage:        USES=motif
7 #
8 # If WANT_LESSTIF is defined in user make.conf then lesstif will be used
9 # instead of open-motif
10 #
11 # MAINTAINER: portmgr@FreeBSD.org
12
13 .if !defined(_INCLUDE_USES_MOTIF_MK)
14 _INCLUDE_USES_MOTIF_MK= yes
15
16 .if !empty(motif_ARGS)
17 IGNORE= USES=motif takes no arguments
18 .endif
19
20 .if defined(WANT_LESSTIF)
21 LIB_DEPENDS+=           libXm.so:x11-toolkits/lesstif
22 .else
23 USE_XORG+=      xpm
24 LIB_DEPENDS+=           libXm.so.4:x11-toolkits/open-motif
25 .endif
26
27 MOTIFLIB?=      -L${LOCALBASE}/lib -lXm -lXp
28 MAKE_ENV+=      MOTIFLIB="${MOTIFLIB}"
29
30 .endif