Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Jan 2014 13:19:01 +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: r339350 - head/devel/lutok
Message-ID:  <201401101319.s0ADJ14J009472@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Fri Jan 10 13:19:01 2014
New Revision: 339350
URL: http://svnweb.freebsd.org/changeset/ports/339350

Log:
  Port to lua 5.2
  Support stage which eliminate lots of hacks

Modified:
  head/devel/lutok/Makefile

Modified: head/devel/lutok/Makefile
==============================================================================
--- head/devel/lutok/Makefile	Fri Jan 10 13:10:34 2014	(r339349)
+++ head/devel/lutok/Makefile	Fri Jan 10 13:19:01 2014	(r339350)
@@ -3,24 +3,21 @@
 
 PORTNAME=	lutok
 PORTVERSION=	0.4
+PORTREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
 
 MAINTAINER=	asomers@FreeBSD.org
 COMMENT=	Lightweight C++ API for Lua
 
-LICENSE=	BSD
+LICENSE=	BSD3CLAUSE
 
 GNU_CONFIGURE=	yes
-USE_LUA=	5.1
 USE_LDCONFIG=	yes
-USES=		pkgconfig
+USES=		pkgconfig lua
 
 OPTIONS_DEFINE=	DOCS EXAMPLES
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
-
 CONFIGURE_ARGS+=	--docdir=${DOCSDIR}
 CONFIGURE_ARGS+=	--htmldir=${DOCSDIR}/html
 # The distfile contains prebuilt doxygen files.  Specify --without_doxygen so
@@ -33,15 +30,9 @@ CONFIGURE_ARGS+=	--without-atf
 # lutok's configure script search for one using pkgconfig files, it might pick
 # a different version.
 CONFIGURE_ARGS+=	LUA_CFLAGS="-I${LUA_INCDIR}"
-CONFIGURE_ARGS+=	LUA_LIBS="-L${LUA_LIBDIR} -llua -lm"
+CONFIGURE_ARGS+=	LUA_LIBS="-L${LUA_LIBDIR} -llua-${LUA_VER} -lm"
 
 MAKE_FLAGS+=	examplesdir=${EXAMPLESDIR}
-.if ! ${PORT_OPTIONS:MDOCS}
-MAKE_FLAGS+=	doc_DATA=
-.endif
-.if ! ${PORT_OPTIONS:MEXAMPLES}
-MAKE_FLAGS+=	examples_DATA=
-.endif
 
 PORTDOCS=	AUTHORS COPYING NEWS README html
 PORTEXAMPLES=	Makefile bindings.cpp hello.cpp interpreter.cpp raii.cpp
@@ -52,20 +43,4 @@ post-patch: .SILENT
 	@${REINPLACE_CMD} -e 's|@pkgconfigdir@|${PREFIX}/libdata/pkgconfig|' \
 		${WRKSRC}/Makefile.in
 
-# Eliminate empty directories
-remove-docsdir: .SILENT
-	${RMDIR} ${DOCSDIR}
-remove-examplesdir: .SILENT
-	${RMDIR} ${EXAMPLESDIR}
-
-.if ! ${PORT_OPTIONS:MDOCS}
-pre-install: .SILENT
-	${RM} -rf ${WRKSRC}/api-docs
-post-install: remove-docsdir
-.endif
-
-.if ! ${PORT_OPTIONS:MEXAMPLES}
-post-install: remove-examplesdir
-.endif
-
 .include <bsd.port.mk>



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