1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
- 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
This commit is contained in:
Matthias Andree 2013-01-05 22:47:04 +00:00
parent 0dc6f44549
commit b3b45538b9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=309971

View File

@ -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}.so.${LUA_VER_SH}"
# 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