svn commit: r309971 - head/lang/lua

Matthias Andree mandree at FreeBSD.org
Sat Jan 5 22:47:05 UTC 2013


Author: mandree
Date: Sat Jan  5 22:47:04 2013
New Revision: 309971
URL: http://svnweb.freebsd.org/changeset/ports/309971

Log:
  Bugfix:
  - Record liblua's dependency on libm.so explicitly. [1]
  
  Assorted lint removals:
  - Convert to Options NG
  - Reduce old-style Makefile header
  - USE_GNOME=pkgconfig -> USE_PKGCONFIG=yes
  
  PR:		ports/174964
  Submitted by:	Matthew X. Economou

Modified:
  head/lang/lua/Makefile

Modified: head/lang/lua/Makefile
==============================================================================
--- head/lang/lua/Makefile	Sat Jan  5 21:34:25 2013	(r309970)
+++ head/lang/lua/Makefile	Sat Jan  5 22:47:04 2013	(r309971)
@@ -1,13 +1,9 @@
-# New ports collection makefile for: 	lua
-# Date created:				27 June 1999
-# Whom:					Richard Kiss
-#
+# Created by: Richard Kiss
 # $FreeBSD$
-#
 
 PORTNAME=	lua
 PORTVERSION=	5.1.5
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	lang
 MASTER_SITES=	http://www.lua.org/ftp/ \
 		ftp://ftp.ntua.gr/pub/lang/lua/ \
@@ -22,7 +18,7 @@ PATCH_WRKSRC=	${WRKSRC}/src
 USE_LUA=	5.1
 LUA_COMPS=	# only define variables
 ALL_TARGET=	freebsd
-USE_GNOME=	pkgconfig
+USE_PKGCONFIG=	yes
 USE_LDCONFIG=	yes
 MAKE_JOBS_SAFE=	yes
 MAKE_ENV=	LUA_SONAME="liblua-${LUA_VER}.so.${LUA_VER_SH}"
@@ -33,6 +29,9 @@ MAKE_ENV=	LUA_SONAME="liblua-${LUA_VER}.
 # have its settings when we get here.
 # See http://wiki.freebsd.org/MatthiasAndree/LuaLessonsLearnt
 MAKE_ARGS=	__MAKE_CONF=${NONEXISTENT}
+# liblua.so requires libm, so make sure it has an explicit dependency
+# so that applications need not second-guess lua's dependencies.
+LDFLAGS+=	-lm
 
 MAN1=		lua-${LUA_VER}.1 luac-${LUA_VER}.1
 DOCSDIR=	${PREFIX}/share/doc/${LUA_SUBDIR}
@@ -108,7 +107,7 @@ do-install:
 		${PREFIX}/man/man1/${f:C/.1$//}-${LUA_VER}.1
 .endfor
 # Documentation.
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	${MKDIR} ${DOCSDIR}
 	${MKDIR} ${DOCSDIR}/etc
 	${MKDIR} ${DOCSDIR}/test


More information about the svn-ports-head mailing list