multimedia/mplayer2: unbreak after r417413
- Fix LICENSE - Add LICENSE_FILE - Record TIMESTAMP in distinfo - Unbreak build after disabling MANPAGES option on package builders Reviewed by: feld (mentor) Approved by: feld (mentor) Differential Revision: D8555
This commit is contained in:
parent
5d6f8dc70d
commit
c6229d3112
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=427182
@ -2,19 +2,19 @@
|
||||
|
||||
PORTNAME= mplayer2
|
||||
PORTVERSION= ${MPLAYER2_PORT_VERSION}
|
||||
PORTREVISION= 22
|
||||
PORTREVISION= 23
|
||||
CATEGORIES= multimedia audio
|
||||
MASTER_SITES= LOCAL/gblach/
|
||||
|
||||
MAINTAINER= cpm@FreeBSD.org
|
||||
COMMENT= Advanced general-purpose video player
|
||||
|
||||
LICENSE= GPLv2
|
||||
LICENSE= GPLv3
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
LIB_DEPENDS= libpng.so:graphics/png \
|
||||
libfreetype.so:print/freetype2 \
|
||||
libavcodec.so:multimedia/ffmpeg
|
||||
BUILD_DEPENDS= rst2man:textproc/py-docutils
|
||||
|
||||
USES= cpe gmake iconv ncurses pkgconfig python:3,build tar:xz
|
||||
HAS_CONFIGURE= yes
|
||||
@ -37,11 +37,18 @@ MPLAYER2_SNAPSHOT_DATE= 2013-04-28
|
||||
MPLAYER2_PORT_VERSION= 2.0.${MPLAYER2_SNAPSHOT_DATE:S/-//g}
|
||||
|
||||
OPTIONS_DEFINE= A52 ASS CACA CDIO DEBUG DV DVDREAD DVDNAV GIF IPV6 JACK LADSPA \
|
||||
LIBBLURAY LIRC MAD OPENGL PORTAUDIO PULSEAUDIO \
|
||||
LIBBLURAY LIRC MAD MANPAGES OPENGL PORTAUDIO PULSEAUDIO \
|
||||
RTC SDL SMB SPEEX THEORA V4L VDPAU X11 XINERAMA
|
||||
OPTIONS_DEFAULT=A52 ASS ENCA DVDREAD DVDNAV VDPAU X11
|
||||
OPTIONS_DEFAULT=A52 ASS ENCA DVDREAD DVDNAV MANPAGES VDPAU X11
|
||||
OPTIONS_SUB= yes
|
||||
|
||||
# XXX After r417413 poudriere requires textproc/py-docutils being built
|
||||
# with the same python version as USES=python:3 here but it's currently
|
||||
# not possible due to https://github.com/freebsd/poudriere/issues/259
|
||||
.if defined(PACKAGE_BUILDING)
|
||||
OPTIONS_EXCLUDE=MANPAGES
|
||||
.endif
|
||||
|
||||
OPTIONS_DEFINE_i386+= WIN32
|
||||
.if !defined(PACKAGE_BUILDING)
|
||||
# Depend on RESTRICTED package only when building manually
|
||||
@ -115,6 +122,9 @@ LIRC_CONFIGURE_OFF= --disable-lirc
|
||||
MAD_LIB_DEPENDS= libmad.so:audio/libmad
|
||||
MAD_CONFIGURE_OFF= --disable-mad
|
||||
|
||||
MANPAGES_BUILD_DEPENDS= rst2man:textproc/py-docutils
|
||||
MANPAGES_INSTALL_TARGET_OFF=install-no-man
|
||||
|
||||
OPENGL_USE= GL=gl XORG=glproto
|
||||
OPENGL_CONFIGURE_OFF= --disable-gl
|
||||
OPENGL_IMPLIES= X11
|
||||
@ -196,6 +206,7 @@ post-patch:
|
||||
-e 's|[[:space:]]gcc| ${CC}|' \
|
||||
-e 's|\$$\(CC\)|${CC}|' \
|
||||
-e 's|/usr/X11R6|${LOCALBASE}|'
|
||||
post-patch-MANPAGES-on:
|
||||
@${FIND} ${WRKSRC}/DOCS/man -name "mplayer.1" | ${XARGS} ${REINPLACE_CMD} -E -e \
|
||||
's|/usr/\\:local/\\:etc/\\:mplayer|${DATADIR:S/\//\/\\\:/g}|g ; \
|
||||
s|/dev/\\:(dvd[[:alnum:]]*[[:>:]])|${WITH_CDROM_DEVICE:S/dev\//dev\/\\\:/}|g ; \
|
||||
@ -214,10 +225,4 @@ post-install:
|
||||
${STAGEDIR}${PREFIX}/etc/mplayer/${conf}.conf.sample
|
||||
.endfor
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if defined(PACKAGE_BUILDING) && ${PYTHON_VER} != ${PYTHON_DEFAULT}
|
||||
IGNORE= you have python ${PYTHON_DEFAULT} set as the default, and this needs ${PYTHON_VER}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,3 @@
|
||||
TIMESTAMP = 1479421227
|
||||
SHA256 (mplayer2-2.0.20130428.tar.xz) = 03629270254ef8e06b7be8d25d532400a71cad07e5bdac1dd4cd64b33dbe69c9
|
||||
SIZE (mplayer2-2.0.20130428.tar.xz) = 1918584
|
||||
|
@ -2,4 +2,4 @@ bin/mplayer
|
||||
etc/mplayer/codecs.conf.sample
|
||||
etc/mplayer/input.conf.sample
|
||||
etc/mplayer/mplayer.conf.sample
|
||||
man/man1/mplayer.1.gz
|
||||
%%MANPAGES%%man/man1/mplayer.1.gz
|
||||
|
Loading…
Reference in New Issue
Block a user