Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jul 2013 21:05:14 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r322576 - head/Mk/Uses
Message-ID:  <201307092105.r69L5EDX041237@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Tue Jul  9 21:05:14 2013
New Revision: 322576
URL: http://svnweb.freebsd.org/changeset/ports/322576

Log:
  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

Added:
  head/Mk/Uses/motif.mk   (contents, props changed)

Added: head/Mk/Uses/motif.mk
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/Mk/Uses/motif.mk	Tue Jul  9 21:05:14 2013	(r322576)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307092105.r69L5EDX041237>