[BACK]Return to options.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / lang / elk

File: [cvs.NetBSD.org] / pkgsrc / lang / elk / options.mk (download)

Revision 1.2, Fri Aug 17 22:27:15 2007 UTC (12 years, 6 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2008Q1-base, pkgsrc-2008Q1, pkgsrc-2007Q4-base, pkgsrc-2007Q4, pkgsrc-2007Q3-base, pkgsrc-2007Q3
Changes since 1.1: +1 -2 lines

Mark as DESTDIR save and fix modular Xorg build.

# $NetBSD: options.mk,v 1.2 2007/08/17 22:27:15 joerg Exp $

# Global and legacy options

PKG_OPTIONS_VAR=	PKG_OPTIONS.elk
PKG_SUPPORTED_OPTIONS= xaw motif
PKG_SUGGESTED_OPTIONS=

.include "../../mk/bsd.options.mk"

###
### x11 support
###
.if !empty(PKG_OPTIONS:Mxaw) || !empty(PKG_OPTIONS:Mmotif)
PLIST_SUBST+= WITHX11=""
.  if !empty(PKG_OPTIONS:Mxaw)
PLIST_SUBST+= WITHXAW=""
ELK_AWK="yes"
.    include "../../mk/xaw.buildlink3.mk"
.  else
PLIST_SUBST+= WITHXAW="@comment "
ELK_AWK="no"
.  endif
.  if !empty(PKG_OPTIONS:Mmotif)
.  include "../../mk/motif.buildlink3.mk"
PLIST_SUBST+= WITHMOTIF=""
.  else
PLIST_SUBST+= WITHMOTIF="@comment "
.  endif
.else
CONFIGURE_ARGS+=	--without-x
PLIST_SUBST+= WITHMOTIF="@comment "
PLIST_SUBST+= WITHX11="@comment "
PLIST_SUBST+= WITHXAW="@comment "
.endif