From cfb1fbad433520af6cf867c06083eab02ad385f6 Mon Sep 17 00:00:00 2001 From: rafan Date: Sun, 19 Aug 2012 11:29:30 +0000 Subject: - 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) (via email) --- devel/swig13/Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'devel') diff --git a/devel/swig13/Makefile b/devel/swig13/Makefile index 945616e6bbca..aa82c79c697e 100644 --- a/devel/swig13/Makefile +++ b/devel/swig13/Makefile @@ -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 -.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} -- cgit