aboutsummaryrefslogtreecommitdiff
path: root/multimedia/mpv
diff options
context:
space:
mode:
authorGrzegorz Blach <gblach@FreeBSD.org>2013-10-27 19:40:18 +0000
committerGrzegorz Blach <gblach@FreeBSD.org>2013-10-27 19:40:18 +0000
commit4a979219fa1bcacb125fe357b7136fbb000b8a0b (patch)
tree5a08b090d7cf3a3c7d4e9c378e3f17f4db13f405 /multimedia/mpv
parent1c8881a761185f2c48921b5fe5b958648b1147f4 (diff)
downloadports-4a979219fa1bcacb125fe357b7136fbb000b8a0b.tar.gz
ports-4a979219fa1bcacb125fe357b7136fbb000b8a0b.zip
Notes
Diffstat (limited to 'multimedia/mpv')
-rw-r--r--multimedia/mpv/Makefile4
-rw-r--r--multimedia/mpv/files/patch-configure34
2 files changed, 35 insertions, 3 deletions
diff --git a/multimedia/mpv/Makefile b/multimedia/mpv/Makefile
index cf986b30ccd7..c11432463db6 100644
--- a/multimedia/mpv/Makefile
+++ b/multimedia/mpv/Makefile
@@ -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'
diff --git a/multimedia/mpv/files/patch-configure b/multimedia/mpv/files/patch-configure
new file mode 100644
index 000000000000..542ea8ef3aee
--- /dev/null
+++ b/multimedia/mpv/files/patch-configure
@@ -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