pkgsrc/graphics/gmplayer/Makefile
dan 196730592c make audio capture for -tv work on NetBSD.
We don't provide FIONREAD for /dev/audio, so use the seek field
from AUDIO_GETINFO instead.

XXX: by my calculations, the number of samples in seek should be multiplied
by the sample size to get number of bytes to read, but this results in mencoder
being very choppy, presumably because its blocking for audio.  I've left the
multiplication in the patch, commented out.  The present patch works just fine,
so probably my calculations are wrong.

This bumps all of the mplayer variants, because -tv -dumpaudio
might be used even with the players.
2003-05-25 07:20:51 +00:00

66 lines
2 KiB
Makefile

# $NetBSD: Makefile,v 1.19 2003/05/25 07:20:51 dan Exp $
#
.include "../../graphics/mplayer-share/Makefile.common"
PKGNAME= gmplayer-${MPLAYER_PKG_VERSION}
PKGREVISION= 3
SKIN_SITES= http://www.mplayerhq.hu/MPlayer/Skin/ \
ftp://ftp.mplayerhq.hu/MPlayer/Skin/ \
${MASTER_SITE_LOCAL:=mplayer}
COMMENT= Software only MPEG-1/2/4 video decoder with a GTK+ interface
SKINS += default-1.7${EXTRACT_SUFX} \
AlienMind-1.0${EXTRACT_SUFX} \
BlueHeart-1.4${EXTRACT_SUFX} \
CornerMP-1.0${EXTRACT_SUFX} \
CornerMP-aqua-1.0${EXTRACT_SUFX} \
Cyrus-1.0${EXTRACT_SUFX} \
MidnightLove-1.5${EXTRACT_SUFX} \
WindowsMediaPlayer6-1.2${EXTRACT_SUFX} \
avifile-1.5${EXTRACT_SUFX} \
gnome-1.1${EXTRACT_SUFX} \
hayraphon-1.0${EXTRACT_SUFX} \
hwswskin-1.0${EXTRACT_SUFX} \
mentalic-1.1${EXTRACT_SUFX} \
neutron-1.4${EXTRACT_SUFX} \
phony-1.0${EXTRACT_SUFX} \
plastic-1.1.1${EXTRACT_SUFX} \
proton-1.1${EXTRACT_SUFX} \
slim-1.0${EXTRACT_SUFX} \
xanim-1.5${EXTRACT_SUFX} \
xine-lcd-1.0${EXTRACT_SUFX}
.if !defined(SITES_default-1.7.tar.bz2)
. for skin in ${SKINS}
SITES_${skin}= ${SKIN_SITES}
. endfor
.endif
DISTFILES+= ${DISTNAME}${EXTRACT_SUFX}
DISTFILES+= ${SKINS}
USE_BUILDLINK2= # defined
CONFIGURE_ARGS+= --enable-gui
CONFIGURE_ARGS+= --disable-mencoder
CONFIGURE_ARGS+= --confdir=${PREFIX}/share/mplayer
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mplayer ${PREFIX}/bin/gmplayer
${LN} -s ${PREFIX}/man/man1/mplayer.1 ${PREFIX}/man/man1/gmplayer.1
${INSTALL_DATA_DIR} ${PREFIX}/share/mplayer/Skin
.for SKIN in ${SKINS}
@${ECHO_MSG} "Installing skin ${SKIN}..."
@${GTAR} xCzf ${PREFIX}/share/mplayer/Skin/ ${DISTDIR}/${DIST_SUBDIR}/${SKIN}
.endfor
@${CHMOD} -R a+r ${PREFIX}/share/mplayer/Skin
@${CHMOD} a+rx ${PREFIX}/share/mplayer/Skin/*
.include "../../graphics/mplayer-share/Makefile.depends"
.include "../../audio/nas/buildlink2.mk"
.include "../../x11/gtk/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"
.include "../../graphics/mplayer-share/Makefile.cflags"