svn commit: r302756 - head/devel/swig13

Rong-En Fan rafan at FreeBSD.org
Sun Aug 19 11:29:31 UTC 2012


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 at FreeBSD.org
+MAINTAINER=	ports at 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}



More information about the svn-ports-all mailing list