diff options
author | gblach <gblach@FreeBSD.org> | 2013-10-28 03:40:18 +0800 |
---|---|---|
committer | gblach <gblach@FreeBSD.org> | 2013-10-28 03:40:18 +0800 |
commit | 0c924a213b392fc2ab45309e9be8a02e2770fcff (patch) | |
tree | 5a08b090d7cf3a3c7d4e9c378e3f17f4db13f405 | |
parent | 75bbf4ce8177859a3c222673f6fcff987e4d1fe9 (diff) | |
download | freebsd-ports-gnome-0c924a213b392fc2ab45309e9be8a02e2770fcff.tar.gz freebsd-ports-gnome-0c924a213b392fc2ab45309e9be8a02e2770fcff.tar.zst freebsd-ports-gnome-0c924a213b392fc2ab45309e9be8a02e2770fcff.zip |
- Fix linking against lua
-rw-r--r-- | multimedia/mpv/Makefile | 4 | ||||
-rw-r--r-- | multimedia/mpv/files/patch-configure | 34 |
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 |