diff --git a/multimedia/mpv/Makefile b/multimedia/mpv/Makefile index 0c1e6d90c6ae..cf986b30ccd7 100644 --- a/multimedia/mpv/Makefile +++ b/multimedia/mpv/Makefile @@ -2,42 +2,43 @@ # $FreeBSD$ PORTNAME= mpv -PORTVERSION= 20130711 -PORTREVISION= 1 +PORTVERSION= 0.2.1 +PORTEPOCH= 1 CATEGORIES= multimedia audio -MASTER_SITES= LOCAL/gblach/ MAINTAINER= gblach@FreeBSD.org COMMENT= Free and open-source general-purpose video player -LICENSE= GPLv3 +LICENSE= GPLv2 -LIB_DEPENDS= ass:${PORTSDIR}/multimedia/libass \ - dvdread:${PORTSDIR}/multimedia/libdvdread +LIB_DEPENDS= libass.so:${PORTSDIR}/multimedia/libass \ + libdvdread.so:${PORTSDIR}/multimedia/libdvdread BUILD_DEPENDS= ffmpeg:${PORTSDIR}/multimedia/ffmpeg \ rst2man:${PORTSDIR}/textproc/py-docutils RUN_DEPENDS= ffmpeg:${PORTSDIR}/multimedia/ffmpeg -USE_XZ= yes -USES= gmake iconv pkgconfig +USE_GITHUB= yes +GH_ACCOUNT= mpv-player +GH_TAGNAME= v${PORTVERSION} +GH_COMMIT= 93ce083 + +USES= desktop-file-utils gmake iconv pkgconfig +USE_LUA= 5.1 USE_XORG= x11 xv xxf86vm HAS_CONFIGURE= yes CONFIGURE_ARGS= --prefix=${PREFIX} \ --mandir=${PREFIX}/man \ --cc=${CC} \ - --extra-cflags=' \ - -I${LOCALBASE}/include' \ - --extra-ldflags=' \ - -L${LOCALBASE}/lib' \ --disable-mng \ --disable-mpg123 \ --disable-alsa \ - --disable-portaudio + --disable-portaudio \ + --disable-pdf -OPTIONS_DEFINE= BS2B DEBUG LADSPA LIRC +OPTIONS_DEFINE= BS2B DEBUG LADSPA LCMS2 LIRC OPTIONS_GROUP= IN VO AO OPTIONS_GROUP_IN= CDIO LIBBLURAY V4L QUVI SMB -OPTIONS_GROUP_VO= OPENGL VDPAU XINERAMA +OPTIONS_GROUP_VO= CACA OPENGL VAAPI VDPAU XINERAMA OPTIONS_GROUP_AO= JACK PULSEAUDIO BS2B_DESC= Enable Bauer Stereophonic-to-Binaural DSP support @@ -46,15 +47,10 @@ IN_DESC= Input VO_DESC= Video Output AO_DESC= Audio Output - -MAN1= mpv.1 -MANCOMPRESSED= no - -NO_STAGE= yes .include -.if ${PORT_OPTIONS:MLIBBLURAY} -LIB_DEPENDS+= bs2b:${PORTSDIR}/audio/libbs2b +.if ${PORT_OPTIONS:MBS2B} +LIB_DEPENDS+= libbs2b.so:${PORTSDIR}/audio/libbs2b .else CONFIGURE_ARGS+= --disable-libbs2b .endif @@ -67,32 +63,38 @@ CONFIGURE_ARGS+= --enable-optimization="${CFLAGS}" \ .endif .if ${PORT_OPTIONS:MLADSPA} -RUN_DEPENDS+= ${LOCALBASE}/lib/ladspa/amp.so:${PORTSDIR}/audio/ladspa +LIB_DEPENDS+= ladspa/amp.so:${PORTSDIR}/audio/ladspa .else CONFIGURE_ARGS+= --disable-ladspa .endif +.if ${PORT_OPTIONS:MLCMS2} +LIB_DEPENDS+= liblcms2.so:${PORTSDIR}/graphics/lcms2 +.else +CONFIGURE_ARGS+= --disable-lcms2 +.endif + .if ${PORT_OPTIONS:MLIRC} -LIB_DEPENDS+= lirc_client:${PORTSDIR}/comms/lirc +LIB_DEPENDS+= liblirc_client.so:${PORTSDIR}/comms/lirc .else CONFIGURE_ARGS+= --disable-lirc .endif -.if ${PORT_OPTIONS:MLIBBLURAY} -LIB_DEPENDS+= cdio:${PORTSDIR}/sysutils/libcdio +.if ${PORT_OPTIONS:MCDIO} +LIB_DEPENDS+= libcdio.so:${PORTSDIR}/sysutils/libcdio .else CONFIGURE_ARGS+= --disable-libcdio .endif .if ${PORT_OPTIONS:MLIBBLURAY} -LIB_DEPENDS+= bluray:${PORTSDIR}/multimedia/libbluray +LIB_DEPENDS+= libbluray.so:${PORTSDIR}/multimedia/libbluray .else CONFIGURE_ARGS+= --disable-bluray .endif .if ${PORT_OPTIONS:MV4L} BUILD_DEPENDS+= ${LOCALBASE}/include/linux/videodev2.h:${PORTSDIR}/multimedia/v4l_compat -LIB_DEPENDS+= v4l2:${PORTSDIR}/multimedia/libv4l +LIB_DEPENDS+= libv4l2.so:${PORTSDIR}/multimedia/libv4l CONFIGURE_ARGS+= --enable-tv-v4l2 EXTRA_LIBS+= -lv4l2 .else @@ -100,26 +102,38 @@ CONFIGURE_ARGS+= --disable-tv-v4l2 .endif .if ${PORT_OPTIONS:MQUVI} -LIB_DEPENDS+= quvi:${PORTSDIR}/multimedia/libquvi +LIB_DEPENDS+= libquvi.so:${PORTSDIR}/multimedia/libquvi .else CONFIGURE_ARGS+= --disable-libquvi4 --disable-libquvi9 .endif .if ${PORT_OPTIONS:MSMB} -LIB_DEPENDS+= smbclient:${PORTSDIR}/net/samba-libsmbclient +LIB_DEPENDS+= libsmbclient.so:${PORTSDIR}/net/samba-libsmbclient .else CONFIGURE_ARGS+= --disable-smb .endif +.if ${PORT_OPTIONS:MCACA} +LIB_DEPENDS+= libcaca.so:${PORTSDIR}/graphics/libcaca +.else +CONFIGURE_ARGS+= --disable-caca +.endif + .if ${PORT_OPTIONS:MOPENGL} USE_XORG+= glproto -LIB_DEPENDS+= GL:${PORTSDIR}/graphics/libGL +LIB_DEPENDS+= libGL.so:${PORTSDIR}/graphics/libGL .else CONFIGURE_ARGS+= --disable-gl .endif +.if ${PORT_OPTIONS:MVAAPI} +LIB_DEPENDS+= libva.so:${PORTSDIR}/multimedia/libva +.else +CONFIGURE_ARGS+= --disable-vaapi +.endif + .if ${PORT_OPTIONS:MVDPAU} -LIB_DEPENDS+= vdpau:${PORTSDIR}/multimedia/libvdpau +LIB_DEPENDS+= libvdpau.so:${PORTSDIR}/multimedia/libvdpau .else CONFIGURE_ARGS+= --disable-vdpau .endif @@ -131,13 +145,13 @@ CONFIGURE_ARGS+= --disable-xinerama .endif .if ${PORT_OPTIONS:MJACK} -LIB_DEPENDS+= jack:${PORTSDIR}/audio/jack +LIB_DEPENDS+= libjack.so:${PORTSDIR}/audio/jack .else CONFIGURE_ARGS+= --disable-jack .endif .if ${PORT_OPTIONS:MPULSEAUDIO} -LIB_DEPENDS+= pulse:${PORTSDIR}/audio/pulseaudio +LIB_DEPENDS+= libpulse.so:${PORTSDIR}/audio/pulseaudio .else CONFIGURE_ARGS+= --disable-pulse .endif @@ -153,19 +167,16 @@ post-patch: ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} .endif @${REINPLACE_CMD} \ - -e 's|/dev/acd0|/dev/cd0|' \ -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' \ - -e 's|/dev/cdrom|/dev/cd0|g' \ - -e 's|/dev/dvd|/dev/cd0|g' + -e 's|/usr/local|${PREFIX}|g' post-install: - ${MKDIR} ${PREFIX}/etc/mpv - ${INSTALL_DATA} ${WRKSRC}/etc/example.conf ${PREFIX}/etc/mpv/mpv.conf.sample + ${MKDIR} ${STAGEDIR}${PREFIX}/etc/mpv + ${INSTALL_DATA} ${WRKSRC}/etc/example.conf ${STAGEDIR}${PREFIX}/etc/mpv/mpv.conf.sample .for conf in encoding-example-profiles input - ${INSTALL_DATA} ${WRKSRC}/etc/${conf}.conf ${PREFIX}/etc/mpv/${conf}.conf.sample + ${INSTALL_DATA} ${WRKSRC}/etc/${conf}.conf ${STAGEDIR}${PREFIX}/etc/mpv/${conf}.conf.sample .endfor .include diff --git a/multimedia/mpv/distinfo b/multimedia/mpv/distinfo index 77ce9c8d39da..a71a96af2a73 100644 --- a/multimedia/mpv/distinfo +++ b/multimedia/mpv/distinfo @@ -1,2 +1,2 @@ -SHA256 (mpv-20130711.tar.xz) = 07b49aeeb3145a2149a343d66e6d99a63e247cb1a6b590fe178f0ad8786c824a -SIZE (mpv-20130711.tar.xz) = 1292012 +SHA256 (mpv-0.2.1.tar.gz) = a1471b789d1ee613bb70536b84954d17f3ab764e9add624628cae982a5df5fe0 +SIZE (mpv-0.2.1.tar.gz) = 2475918 diff --git a/multimedia/mpv/pkg-plist b/multimedia/mpv/pkg-plist index a0eb10596173..ff4d462f7103 100644 --- a/multimedia/mpv/pkg-plist +++ b/multimedia/mpv/pkg-plist @@ -2,4 +2,17 @@ bin/mpv etc/mpv/encoding-example-profiles.conf.sample etc/mpv/input.conf.sample etc/mpv/mpv.conf.sample +man/man1/mpv.1.gz +share/applications/mpv.desktop +share/icons/hicolor/16x16/apps/mpv.png +share/icons/hicolor/32x32/apps/mpv.png +share/icons/hicolor/64x64/apps/mpv.png +@dirrmtry share/icons/hicolor/64x64/apps +@dirrmtry share/icons/hicolor/64x64 +@dirrmtry share/icons/hicolor/32x32/apps +@dirrmtry share/icons/hicolor/32x32 +@dirrmtry share/icons/hicolor/16x16/apps +@dirrmtry share/icons/hicolor/16x16 +@dirrmtry share/icons/hicolor +@dirrmtry share/icons @dirrmtry etc/mpv