Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Aug 2012 11:29:30 +0000 (UTC)
From:      Rong-En Fan <rafan@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r302756 - head/devel/swig13
Message-ID:  <201208191129.q7JBTU5Z076220@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rafan
Date: Sun Aug 19 11:29:30 2012
New Revision: 302756
URL: http://svn.freebsd.org/changeset/ports/302756

Log:
  - Don't use implicitly declared dependency, use OPTIONS to declare it
  - While I'm here, give up for adoption as I no longer use it in my daily life
  
  Submitted by:	A.J. Kehoe IV (Nanoman) <nanoman at nanoman.ca> (via email)

Modified:
  head/devel/swig13/Makefile

Modified: head/devel/swig13/Makefile
==============================================================================
--- head/devel/swig13/Makefile	Sun Aug 19 09:42:08 2012	(r302755)
+++ head/devel/swig13/Makefile	Sun Aug 19 11:29:30 2012	(r302756)
@@ -10,7 +10,7 @@ PORTVERSION=	1.3.40
 CATEGORIES=	devel
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
 
-MAINTAINER=	rafan@FreeBSD.org
+MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Simplified Wrapper and Interface Generator
 
 USE_AUTOTOOLS=	autoconf:env libtool
@@ -28,17 +28,19 @@ CFLAGS+=	-fPIC -DPIC
 ALL_TARGET=	swig
 PLIST_SUB+=	VER="${VER}"
 
-WANT_LUA=	yes
-WANT_LUA_VER=	5.0+
+OPTIONS_DEFINE=	LUA
+LUA_DESC=	Enable Lua support
 
 .include <bsd.port.pre.mk>
 
-.if ${HAVE_LUA:Mlua-5.*} != ""
-USE_LUA=	yes
+.if ${PORT_OPTIONS:MLUA}
+USE_LUA=	5.0+
 LUA_COMPS=	lua:build
 CONFIGURE_ARGS+=--with-lua=${LUA_BINDIR}/lua \
 		--with-luaincl=${LUA_INCDIR} \
 		--with-lualib=${LUA_LIBDIR}
+.else
+CONFIGURE_ARGS+=--without-lua
 .endif
 
 OCTAVE_VER_CMD=	${LOCALBASE}/bin/octave-config -v 2>/dev/null || ${TRUE}



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