Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Oct 2013 19:40:19 +0000 (UTC)
From:      Grzegorz Blach <gblach@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r331801 - in head/multimedia/mpv: . files
Message-ID:  <201310271940.r9RJeJu0003181@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gblach
Date: Sun Oct 27 19:40:18 2013
New Revision: 331801
URL: http://svnweb.freebsd.org/changeset/ports/331801

Log:
  - Fix linking against lua

Added:
  head/multimedia/mpv/files/patch-configure   (contents, props changed)
Modified:
  head/multimedia/mpv/Makefile

Modified: head/multimedia/mpv/Makefile
==============================================================================
--- head/multimedia/mpv/Makefile	Sun Oct 27 19:35:12 2013	(r331800)
+++ head/multimedia/mpv/Makefile	Sun Oct 27 19:40:18 2013	(r331801)
@@ -3,6 +3,7 @@
 
 PORTNAME=	mpv
 PORTVERSION=	0.2.1
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	multimedia audio
 
@@ -166,9 +167,6 @@ post-patch:
 		'/CFLAGS.*-D_LARGEFILE64_SOURCE/ s/-D_LARGEFILE64_SOURCE/-D_FILE_OFFSET_BITS=64/' \
 		${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
 .endif
-	@${REINPLACE_CMD} \
-		-e 's|-lncurses|/usr/lib/libncurses.so|' \
-		${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
 	@${FIND} ${WRKSRC}/DOCS/man -name '*.rst' | ${XARGS} ${REINPLACE_CMD} \
 		-e 's|/usr/local|${PREFIX}|g'
 

Added: head/multimedia/mpv/files/patch-configure
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/mpv/files/patch-configure	Sun Oct 27 19:40:18 2013	(r331801)
@@ -0,0 +1,34 @@
+--- configure.bak	2013-10-26 11:34:43.000000000 +0200
++++ configure	2013-10-26 11:43:57.000000000 +0200
+@@ -1459,7 +1459,7 @@
+ echocheck "terminfo"
+ if test "$_terminfo" = auto ; then
+   _terminfo=no
+-  for _ld_tmp in "-lncurses" "-lncursesw"; do
++  for _ld_tmp in "/usr/lib/libncurses.so" "-lncursesw"; do
+     statement_check term.h 'setupterm(0, 1, 0)' $_ld_tmp &&
+       libs_mplayer="$libs_mplayer $_ld_tmp" && _terminfo=yes && break
+   done
+@@ -1480,7 +1480,7 @@
+ echocheck "termcap"
+ if test "$_termcap" = auto ; then
+   _termcap=no
+-  for _ld_tmp in "-lncurses" "-ltinfo" "-ltermcap"; do
++  for _ld_tmp in "/usr/lib/libncurses.so" "-ltinfo" "-ltermcap"; do
+     statement_check term.h 'tgetent(0, 0)' $_ld_tmp &&
+       libs_mplayer="$libs_mplayer $_ld_tmp" && _termcap=yes && break
+   done
+@@ -3100,11 +3100,11 @@
+ if test "$lua" = auto ; then
+ 
+ lua=no
+-test_lua 51 "lua >= 5.1.0 lua < 5.2.0"
++test_lua 51 "lua-5.1 >= 5.1.0 lua-5.1 < 5.2.0"
+ test_lua 51deb "lua5.1 >= 5.1.0" # debian
+ test_lua luajit "luajit >= 2.0.0"
+ # assume all our dependencies (libquvi in particular) link with 5.1
+-test_lua 52 "lua >= 5.2.0"
++test_lua 52 "lua-5.2 >= 5.2.0"
+ test_lua 52deb "lua5.2 >= 5.2.0" # debian
+ 
+ fi



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